claude-code-best/src
18243133 b67e9f9d38
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-05-18 21:57:15 +08:00
..
__tests__ style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
assistant chore: 清理 src 下 113 项未使用导入和死代码 2026-05-05 20:05:15 +08:00
bootstrap docs: 合并性能分析报告并优化内存管理 2026-05-02 09:11:12 +08:00
bridge chore: 清理 src 下 113 项未使用导入和死代码 2026-05-05 20:05:15 +08:00
buddy feat: /login支持codex订阅登录 2026-05-08 20:35:34 +08:00
cli fix: 替换 extractMemories 的 require() 为动态 import() 修复 Vite 构建崩溃 2026-05-14 17:44:47 +08:00
commands Revert "feat: 添加 /goal 命令,支持长时间运行任务的目标管理 (#1222)" (#1236) 2026-05-17 10:06:09 +08:00
components Fix/plan paste fixes (#1238) 2026-05-18 21:57:15 +08:00
constants Revert "feat: 添加 /goal 命令,支持长时间运行任务的目标管理 (#1222)" (#1236) 2026-05-17 10:06:09 +08:00
context chore: 清理 src 下 113 项未使用导入和死代码 2026-05-05 20:05:15 +08:00
coordinator feat: 工具层及 mcp 大重构 (#252) 2026-04-13 09:52:05 +08:00
daemon chore: 清理 src 下 113 项未使用导入和死代码 2026-05-05 20:05:15 +08:00
entrypoints feat: ai 的随机修复 2026-05-05 19:36:38 +08:00
environment-runner style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
hooks Fix/plan paste fixes (#1238) 2026-05-18 21:57:15 +08:00
jobs Feat/integrate lint preview (#285) 2026-04-16 20:59:29 +08:00
keybindings feat: 添加 Provider Registry、StatusLine、Cache Stats 和其他增强 2026-05-09 23:04:35 +08:00
memdir refactor: 精简系统提示词 — 合并沟通风格段落、精简 memory/工具描述、截断 gitStatus 2026-05-09 17:14:41 +08:00
migrations fix: 禁用 opus[1m] 自动迁移,尊重用户手动删除 [1m] 后缀的选择 2026-05-07 09:33:56 +08:00
moreright style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
native-ts/file-index style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
outputStyles feat: build 2026-03-31 19:22:47 +08:00
plugins feat: 接入内建 weixin channel(同 #301 重构版本) (#303) 2026-04-19 21:33:27 +08:00
proactive feat: harden autonomy lifecycle, OOM bounds, and provider-boundary finalization 2026-04-29 14:04:27 +08:00
query fix: 替换 extractMemories 的 require() 为动态 import() 修复 Vite 构建崩溃 2026-05-14 17:44:47 +08:00
remote style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
schemas chore: 清理仓库审计问题——修正 CLAUDE.md、删除冗余 yoga-layout、清除 621 个未使用的类型 stub (#354) 2026-04-25 08:54:18 +08:00
screens docs: 添加 ToolSearch 设计指南 + 禁用 turn-zero 工具推荐弹窗 2026-05-09 16:45:56 +08:00
self-hosted-runner style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
server style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
services Revert "feat: 添加 /goal 命令,支持长时间运行任务的目标管理 (#1222)" (#1236) 2026-05-17 10:06:09 +08:00
skills docs: 添加 ToolSearch 设计指南 + 禁用 turn-zero 工具推荐弹窗 2026-05-09 16:45:56 +08:00
ssh feat: 实现 SSH Remote — 本地 REPL + 远端工具执行 2026-04-24 14:25:56 +08:00
state Merge pull request #416 from znygugeyx-ctrl/feat/subagent-fork-render 2026-05-06 09:57:52 +08:00
tasks docs: 添加 ToolSearch 设计指南 + 禁用 turn-zero 工具推荐弹窗 2026-05-09 16:45:56 +08:00
types feat: 添加 Local Vault 加密存储服务 2026-05-09 23:04:07 +08:00
upstreamproxy feat: 问就是封包 2026-03-31 23:32:58 +08:00
utils Fix/plan paste fixes (#1238) 2026-05-18 21:57:15 +08:00
vim feat: build 2026-03-31 19:22:47 +08:00
voice feat: 集成豆包 ASR 语音识别后端,支持 /voice doubao 切换 (#357) 2026-04-25 13:57:30 +08:00
commands.ts Revert "feat: 添加 /goal 命令,支持长时间运行任务的目标管理 (#1222)" (#1236) 2026-05-17 10:06:09 +08:00
context.ts refactor: 精简系统提示词 — 合并沟通风格段落、精简 memory/工具描述、截断 gitStatus 2026-05-09 17:14:41 +08:00
cost-tracker.ts feat: ACP 协议版本 remote control (#293) 2026-04-18 21:54:22 +08:00
costHook.ts feat: build 2026-03-31 19:22:47 +08:00
dialogLaunchers.tsx style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
history.ts feat: 添加服务层增强与零散改进 2026-04-22 22:38:10 +08:00
interactiveHelpers.tsx chore: 清理 src 下 113 项未使用导入和死代码 2026-05-05 20:05:15 +08:00
main.tsx docs: 添加 ToolSearch 设计指南 + 禁用 turn-zero 工具推荐弹窗 2026-05-09 16:45:56 +08:00
projectOnboardingState.ts feat: build 2026-03-31 19:22:47 +08:00
query.ts Revert "feat: 添加 /goal 命令,支持长时间运行任务的目标管理 (#1222)" (#1236) 2026-05-17 10:06:09 +08:00
QueryEngine.ts chore: 清理 src 下 113 项未使用导入和死代码 2026-05-05 20:05:15 +08:00
replLauncher.tsx fix: 添加 React Error Boundary 防止生产环境渲染崩溃 2026-05-09 22:02:04 +08:00
setup.ts feat: 添加服务层增强与零散改进 2026-04-22 22:38:10 +08:00
Task.ts feat: build 2026-03-31 19:22:47 +08:00
tasks.ts feat: build 2026-03-31 19:22:47 +08:00
Tool.ts docs: 添加 ToolSearch 设计指南 + 禁用 turn-zero 工具推荐弹窗 2026-05-09 16:45:56 +08:00
tools.ts Revert "feat: 添加 /goal 命令,支持长时间运行任务的目标管理 (#1222)" (#1236) 2026-05-17 10:06:09 +08:00