Repository navigation
fix: 原生模式用真实 agent 端到端跑通 (无 origin / 无 Docker) - #13
Merged
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
上一轮我说“现在还不能算能用”。这个 PR 把原生(非 Docker)路径修到能用真实 agent 从头跑到尾。详细过程与限制见
docs/reports/e2e-smoke-2026-10-25.md。验证(真实运行)
在一个只有本地提交、没有
origin、没有 Docker 的新仓库里,两个 TODO 函数:bun packages/cli/src/index.ts run→ 分析出 2 个任务 → 两个claude并行各在独立 worktree 里实现 → 按序合并到main(tier 1,无冲突)→ 退出码 0。git log里有两个 feat 提交,python断言add(2,3)==5、shout('hi')=='HI!'通过,worktree 和任务分支已清理。改了什么(每条都来自一次真实失败的运行)
origin不再崩溃;错误只打一行人话(FSC_DEBUG=1才有堆栈);启动不再倾倒整份配置 JSON;缺配置文件不再当成错误提示。analyzeCodebaseNative:在一次性的 detached worktree 里跑claude,不需要 Docker。原来的分析步骤写死了 Docker(apt-get、把~/.ssh拷进容器)。UnifiedScheduler(每任务一个 worktree,再按序合并)。原来走的是旧 Docker 时代的求解器加CodeCommitter,worktree 的结果根本没有被合并。fsc/<task>分支,LocalExecution又去建同名分支,每个任务都失败。移除执行路径里没用的池。claude-code→claude);未知 agent 报错,不再无声回退到没装的opencode;claude的参数去掉不存在的--cwd,加--permission-mode。fsc/<task>分支;有提交的拒绝并给出明确提示。claude参数。测试
tsc --noEmit:退出码 0bun test(packages/core):180 通过 / 0 失败(含新增 3 个;先前为 177)cargo test --workspace、cargo clippy -D warnings、cargo fmt --check:通过没有验证的(详见报告)
gemini/codex的参数里仍有--cwd,可能是错的,未测。<repo>-fsc-<task>),不在仓库内。🤖 Generated with Claude Code
https://claude.ai/code/session_016FSVfwwP6TVxGLUWatWM53