claude-code-best/packages
18243133 5232696017 Fix/plan paste fixes (#1238)
* fix: 降低 paste 检测阈值,修复非 bracketed-paste 终端粘贴文本损坏

非 bracketed-paste 终端下,短粘贴(<800 chars)的 stdin chunk 作为独立
keystroke 走 useTextInput.onInput 路径,闭包中 cursor 未刷新导致多次插入
竞态。现将 ≥3 字符的非特殊键输入纳入 paste 累积模式,绕过逐 chunk 处理。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* @
fix: Plan模式三处缺陷修复 — ExploreAgent可用性 + 弹窗一致性 + 方案文件保护

1. areExplorePlanAgentsEnabled()移除GrowthBook A/B实验依赖(tengu_amber_stoat),
   始终返回true,确保Explore/Plan agent在BUILTIN_EXPLORE_PLAN_AGENTS开启时始终可用

2. ExitPlanMode clear-context路径补setNeedsPlanModeExitAttachment(true),
   确保清除上下文退出Plan模式后生成plan_mode_exit附件

3. Plan mode full/sparse指令强化Plan文件读取要求:
   "can read" -> "MUST use FileRead to read first before any changes",
   新增"do NOT overwrite"禁止覆盖,Phase 1指令强化并行Explore Agent引导

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@

---------

Co-authored-by: psj88520 <qq18243133@gmail.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-07 01:47:21 +08:00
..
@ant docs: 添加 ToolSearch 设计指南 + 禁用 turn-zero 工具推荐弹窗 2026-06-07 00:56:16 +08:00
acp-link feat: remote control 支持 auto bind 功能 (#300) 2026-06-04 23:53:13 +08:00
agent-tools feat: pull in Vite build system + complete packages/builtin-tools/ 2026-06-01 18:18:03 +08:00
audio-capture-napi feat: enable /voice mode with native audio binaries 2026-04-03 21:14:44 +08:00
builtin-tools Fix/plan paste fixes (#1238) 2026-06-07 01:47:21 +08:00
color-diff-napi fix: highlight 缓存改用 LRUCache 降低内存开销 2026-06-04 12:37:11 +08:00
image-processor-napi feat: 实现 4 个 NAPI 包 — modifiers/image-processor/audio-capture/url-handler 2026-04-01 01:07:42 +08:00
mcp-client feat: pull in Vite build system + complete packages/builtin-tools/ 2026-06-01 18:18:03 +08:00
modifiers-napi feat: 完成最新的可构建版本 2026-04-01 10:42:53 +08:00
remote-control-server fix: resolve all 14 test failures to 0 2026-06-05 01:17:04 +08:00
url-handler-napi feat: 实现 4 个 NAPI 包 — modifiers/image-processor/audio-capture/url-handler 2026-04-01 01:07:42 +08:00
weixin feat: pull in Vite build system + complete packages/builtin-tools/ 2026-06-01 18:18:03 +08:00
tsconfig.json feat: merge 4 upstream improvements (effort + sideQuery routing + agent hints + plan/paste fixes) 2026-06-02 02:29:54 +08:00