feat(gateway): support full /model switching in webchat sessions

This commit is contained in:
William Valentin
2026-02-18 16:55:38 -08:00
parent abd37342fa
commit a13aa3113e
4 changed files with 206 additions and 11 deletions
+13
View File
@@ -5559,6 +5559,19 @@
"docs/plans/state.json"
],
"test_status": "pnpm typecheck + pnpm test:run src/commands/registry.test.ts src/commands/builtin/index.test.ts passing"
},
"webchat-gateway-model-switch-support": {
"status": "completed",
"date": "2026-02-19",
"updated": "2026-02-19",
"summary": "Extended gateway command fast-path to support full /model syntax in WebChat sessions: /model <tier>, /model <tier> <provider/model>, and /model <tier> reset. Gateway now wires ModelRouter/runtime config into agent handlers so provider/model switching and strict-mode toggles match channel behavior.",
"files_modified": [
"src/gateway/handlers/agent.ts",
"src/gateway/server.ts",
"src/gateway/handlers/agent.test.ts",
"docs/plans/state.json"
],
"test_status": "pnpm test:run src/gateway/handlers/agent.test.ts src/gateway/server.test.ts + pnpm typecheck passing"
}
},
"overall_progress": {