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

View File

@@ -23,11 +23,14 @@
{
"path": "../../core/agent-default-model"
},
{
"path": "../../core/session"
},
{
"path": "../../llm/llm"
},
{
"path": "../../core/session"
"path": "../../preset/agent-presets"
},
{
"path": "../../support/invariants"