Address the two remaining review warnings on PR #106. - tools/post-execute: when a downstream listener/policy returns `block`, return early without loading or attaching workspace instructions. The registry turns a block into a final isError result, so reconciling off the original successful result leaked instructions from a rejected call and advanced nested/baseline tracking off a touch that never happened. - Disable workspaceContext in the Code Mode examples: fs tools run as run_code sub-dispatches and code-mode.ts drops sub-call additionalContext, so dynamic AGENTS.md updates are silently discarded there. Update the block regression test to assert no context is attached, and add a waterfall case proving accept still surfaces the discovered instructions.
39 lines
1.8 KiB
YAML
39 lines
1.8 KiB
YAML
# Code Mode REPLAY overlay: the same patched tree as code-mode.cordis.yml
|
|
# (registry in `mode: code` + the worker code runtime) with the keyless model
|
|
# swap from cordis.snapshot.yml (llm-deepseek disabled, llm-replay serving
|
|
# the recorded fixture). Patches do not compose across nested includes —
|
|
# an outer include's patch can only target entries in the file IT loads — so
|
|
# this file patches ./cordis.yml directly with the union of both overlays.
|
|
- id: base
|
|
name: '@cordisjs/plugin-include'
|
|
config:
|
|
path: ./cordis.yml
|
|
patches:
|
|
- id: llm-deepseek
|
|
name: '@deepseek-ai/dsh-llm-deepseek'
|
|
disabled: true
|
|
- id: acp-agent
|
|
name: '@deepseek-ai/dsh-acp-agent'
|
|
config:
|
|
model: deepseek-v4-flash
|
|
persistenceRoot: !!js process.env.DSH_SNAPSHOT_SESSIONS_ROOT ?? './.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
|
|
tools:
|
|
mode: code
|
|
persona: |
|
|
You are a coding assistant powered by the {{model}} model. Your working directory is {{cwd}}.
|
|
|
|
Verify your work by running the code or tests. Keep answers brief and factual.
|
|
- insert:
|
|
- id: code-runtime
|
|
name: '@deepseek-ai/dsh-code-runtime-worker'
|
|
- id: llm-replay
|
|
name: '@deepseek-ai/dsh-llm-replay'
|