cursor-feedback 2.7.3 → 2.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.7.4](https://github.com/jianger666/cursor-feedback-extension/compare/v2.7.3...v2.7.4) (2026-07-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **cli:** spawn 补 --force——headless 下 --approve-mcps 只解决 MCP 加载,工具调用仍被审批静默拒绝,agent 发不出飞书卡片(实测 stream-json 确认「用户拒绝了 interactive_feedback」) ([2f20524](https://github.com/jianger666/cursor-feedback-extension/commit/2f205244d065742c3a39e1a181fcd8911cab6426))
11
+
5
12
  ### [2.7.3](https://github.com/jianger666/cursor-feedback-extension/compare/v2.7.2...v2.7.3) (2026-07-07)
6
13
 
7
14
 
@@ -41,8 +41,9 @@ exports.CliLauncher = void 0;
41
41
  * - 必须用非交互 print 模式(-p):交互式 TUI 会持久改写 cli-config.json 的模型选择。
42
42
  * - CLI 不读 IDE 的全局 User Rules,用户的个人规则要显式注入到 prompt 里
43
43
  * (从 ~/.cursor-feedback/cli-rules.md 读取,没有则只注入 cursor-feedback 沟通协议)。
44
- * - 必须带 --approve-mcpsMCP 批准状态按工作目录落盘,headless 会话无法弹批准框,
45
- * 不带这个 flag 时 cursor-feedback 工具根本不加载,agent 会卡死。
44
+ * - 必须带 --approve-mcps + --force:前者让 MCP 加载(批准状态按工作目录落盘,
45
+ * headless 无法弹批准框);后者放行工具【调用】——只有 --approve-mcps
46
+ * interactive_feedback 的每次调用仍会被审批拦下并静默拒绝,agent 发不出飞书卡片。
46
47
  * - mcp.json 的 env 值必须全是字符串:出现 boolean/number 时 CLI 会静默忽略整个
47
48
  * mcp.json(IDE 却能容忍),spawn 前做一次归一化。
48
49
  * - 拉起的 agent 会通过全局注册的 cursor-feedback MCP 发飞书卡片,用户在手机上
@@ -422,7 +423,10 @@ class CliLauncher {
422
423
  // --approve-mcps 必带:headless 无法弹批准框,MCP 不批准就不加载,agent 会找不到
423
424
  // cursor-feedback 工具而卡死。批准状态按工作目录存(~/.cursor/projects/<dir>/
424
425
  // mcp-approvals.json),逐目录 enable 不现实,只有这个 flag 对任意 cwd 生效。
425
- const args = ['-p', '--trust', '--approve-mcps', '--model', this.model(), prompt];
426
+ // --force 必带(2026-07-07 实测):--approve-mcps 只解决「MCP 加载」,每次工具
427
+ // 【调用】在 headless 下仍要审批,没有 --force 时 interactive_feedback 会被静默
428
+ // 拒绝——agent 完全无法给用户发飞书卡片,只能把结果打到 stdout 等会话结束。
429
+ const args = ['-p', '--trust', '--force', '--approve-mcps', '--model', this.model(), prompt];
426
430
  const isWin = process.platform === 'win32';
427
431
  // Windows 上 .cmd/.ps1 不能直接 spawn(Node 18.20+ 禁止),需经 cmd.exe 转发
428
432
  const viaCmdShell = isWin && /\.(cmd|bat|ps1)$/i.test(bin);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "cursor-feedback",
3
3
  "displayName": "Cursor Feedback",
4
4
  "description": "One Cursor conversation, unlimited AI interactions - Save your monthly request quota! Interactive feedback loop for AI chat via MCP",
5
- "version": "2.7.3",
5
+ "version": "2.7.4",
6
6
  "icon": "icon.png",
7
7
  "author": "jianger666",
8
8
  "license": "MIT",