Commit 04785c8
fix(gitagent-adapter): normalize the MERGED model in harden() too
The earlier normalizer (commit 9d9b249) only ran on the loader-side
model preference from agent.yaml. When a caller passes
options.model="claude-haiku-4-5-20251001" (bare) on the request body,
mergeEngineOptions overrides the prefixed value, and gitclaw's
parseModelString throws "Invalid model format". The throw is swallowed
inside gitclaw's query() setup — the iterator returns zero messages,
engine.turn.end fires in ~20ms with no yields, and the harness has
nothing to forward, so the client sees session_started → silence.
Surfaced on the live test page: posting a PDF to api.clawagent.sh with
runtime=bwrap + harness=gitagent + a bare model name hung for >1 min
with no error. EC2 journalctl showed engine.turn.end durationMs=18
and no LLM call ever happened. Same failure mode as issue #6 (silent
hang), this time at the model-normalization layer.
Fix: harden() now re-normalizes merged.model after merge, so bare
names get the "provider:" prefix regardless of where they came from.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent aa98c91 commit 04785c8
4 files changed
Lines changed: 29 additions & 12 deletions
File tree
- packages
- identity-gitagentprotocol/src/adapters
- runtime-e2b/assets
- runtime-local/assets
- runtime-vzvm/assets
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | | - | |
| 86 | + | |
| 87 | + | |
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139594 | 139594 | | |
139595 | 139595 | | |
139596 | 139596 | | |
139597 | | - | |
139598 | | - | |
| 139597 | + | |
| 139598 | + | |
| 139599 | + | |
139599 | 139600 | | |
139600 | | - | |
| 139601 | + | |
| 139602 | + | |
| 139603 | + | |
139601 | 139604 | | |
139602 | 139605 | | |
139603 | 139606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180713 | 180713 | | |
180714 | 180714 | | |
180715 | 180715 | | |
180716 | | - | |
180717 | | - | |
| 180716 | + | |
| 180717 | + | |
| 180718 | + | |
180718 | 180719 | | |
180719 | | - | |
| 180720 | + | |
| 180721 | + | |
| 180722 | + | |
180720 | 180723 | | |
180721 | 180724 | | |
180722 | 180725 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139594 | 139594 | | |
139595 | 139595 | | |
139596 | 139596 | | |
139597 | | - | |
139598 | | - | |
| 139597 | + | |
| 139598 | + | |
| 139599 | + | |
139599 | 139600 | | |
139600 | | - | |
| 139601 | + | |
| 139602 | + | |
| 139603 | + | |
139601 | 139604 | | |
139602 | 139605 | | |
139603 | 139606 | | |
| |||
0 commit comments