Fix Code Mode workspace context propagation

This commit is contained in:
Yichen Jiang
2026-07-13 13:56:45 +08:00
parent c748f30055
commit 768c79fd45
51 changed files with 1040 additions and 265 deletions

View File

@@ -19,14 +19,8 @@
model: deepseek-v4-flash
resumeSessionId: !!js process.env.RESUME_SESSION_ID
persistenceRoot: './.sessions'
# Disabled in Code Mode: fs tools run as run_code sub-dispatches and
# code-mode.ts deliberately drops sub-call `additionalContext`, so the
# nested/changed/removed AGENTS.md notices this feature emits after
# read/write/edit are discarded before the loop can append them.
# Enabling it would only ship the baseline prefix while silently
# dropping the dynamic updates, so keep it off until sub-dispatch
# context propagation lands.
workspaceContext: false
workspaceContext:
maxBytes: 65536
tools:
mode: code
welcome: 'code-mode agent ready. Give it a multi-tool task.'