You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[ ] Subtask 12.2.1: Capture fallback chain attempts in runtime
514
-
-[ ] Subtask 12.2.2: Store latest trace per command/session
515
-
-[ ] Subtask 12.2.3: Expose trace to doctor and debug commands
512
+
-[x] Task 12.2: Implement resolution tracing
513
+
-[x] Subtask 12.2.1: Capture fallback chain attempts in runtime
514
+
-[x] Subtask 12.2.2: Store latest trace per command/session
515
+
-[x] Subtask 12.2.3: Expose trace to doctor and debug commands
516
+
-[x] Notes: Extended `scripts/model_routing_schema.py` with requested/attempted/selected runtime trace payloads and added persisted latest-trace support plus `/model-routing trace` in `scripts/model_routing_command.py`.
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -455,8 +455,11 @@ Use:
455
455
/model-routing status
456
456
/model-routing set-category deep
457
457
/model-routing resolve --category deep --override-model openai/gpt-5.3-codex --json
458
+
/model-routing trace --json
458
459
```
459
460
461
+
`/model-routing resolve` now emits a structured fallback trace (`requested -> attempted -> selected`) and persists the latest trace for `/model-routing trace` debug introspection.
Copy file name to clipboardExpand all lines: opencode.json
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@
131
131
"template": "!`python3 \"$HOME/.config/opencode/my_opencode/scripts/hooks_command.py\" doctor --json`\nShow only the command output."
132
132
},
133
133
"model-routing": {
134
-
"description": "Manage model routing (status|set-category|resolve)",
134
+
"description": "Manage model routing (status|set-category|resolve|trace)",
135
135
"template": "!`python3 \"$HOME/.config/opencode/my_opencode/scripts/model_routing_command.py\" $ARGUMENTS`\nShow only the command output."
136
136
},
137
137
"model-routing-status": {
@@ -154,6 +154,10 @@
154
154
"description": "Resolve effective model settings in JSON",
155
155
"template": "!`python3 \"$HOME/.config/opencode/my_opencode/scripts/model_routing_command.py\" resolve $ARGUMENTS --json`\nShow only the command output."
156
156
},
157
+
"model-routing-trace": {
158
+
"description": "Show latest routing trace in JSON",
159
+
"template": "!`python3 \"$HOME/.config/opencode/my_opencode/scripts/model_routing_command.py\" trace --json`\nShow only the command output."
160
+
},
157
161
"keyword-mode": {
158
162
"description": "Detect and apply keyword-triggered execution modes",
159
163
"template": "!`python3 \"$HOME/.config/opencode/my_opencode/scripts/keyword_mode_command.py\" $ARGUMENTS`\nShow only the command output."
0 commit comments