fix(headless): compose the one-shot agent from the preset roster again

The agent-default-model refactor moved the headless runner off the
api-proxy create path onto a direct agents.create, which silently dropped
the preset composition the stack had put on every dsh run session: the
header lost its agentPreset and the agent ran on the host composition
alone. Resolve the default preset up front (optional service — a roster-
less composition keeps the pre-preset behavior), record it on the header,
and mount it in setup where a broken composition still fails the run.
This commit is contained in:
Yichen Jiang
2026-08-09 21:05:49 +08:00
parent 4cd15909ac
commit 14bd07fd90
4 changed files with 24 additions and 3 deletions

3
pnpm-lock.yaml generated
View File

@@ -1342,6 +1342,9 @@ importers:
'@deepseek-ai/dsh-agent-default-model':
specifier: workspace:^
version: link:../../core/agent-default-model
'@deepseek-ai/dsh-agent-presets':
specifier: workspace:^
version: link:../../preset/agent-presets
'@deepseek-ai/dsh-invariants':
specifier: workspace:^
version: link:../../support/invariants