mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-26 17:14:33 +00:00
server-v2 binds the main agent via profile:setModel without a cwd, so the profile cwd is empty and planFilePathFor() produced a relative path like plan/<id>.md. The plan-mode guard compares that against the Write tool's workDir-resolved absolute path with strict equality, so it denied every write to the plan file; the relative path also landed in process.cwd() instead of the session workDir, breaking ExitPlanMode. Make the plan path always absolute, falling back to the session workDir (the same root the file tools resolve against) when the profile cwd is empty. |
||
|---|---|---|
| .. | ||
| acp-adapter | ||
| agent-core | ||
| agent-core-v2 | ||
| kaos | ||
| kap-server | ||
| kosong | ||
| migration-legacy | ||
| minidb | ||
| node-sdk | ||
| oauth | ||
| pi-tui | ||
| protocol | ||
| server | ||
| server-e2e | ||
| telemetry | ||