diff options
| author | Adam Malczewski <[email protected]> | 2026-05-22 00:23:57 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-05-22 00:23:57 +0900 |
| commit | e43df9a50ed9ad25dc07a7d5ee90c66d14e8a16f (patch) | |
| tree | 62cb73fce55e8ffe5352619c2751cc307ceb6fd3 /packages/core/src | |
| parent | fb97d4cb72d0a90dde102b7001603716ee6e4c3b (diff) | |
| download | dispatch-e43df9a50ed9ad25dc07a7d5ee90c66d14e8a16f.tar.gz dispatch-e43df9a50ed9ad25dc07a7d5ee90c66d14e8a16f.zip | |
fix: child tabs now show correct key/model in Model Choice view
Include keyId and modelId in the tab-created WebSocket event so child
agent tabs inherit the parent's model selection on the frontend.
Diffstat (limited to 'packages/core/src')
| -rw-r--r-- | packages/core/src/types/index.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/core/src/types/index.ts b/packages/core/src/types/index.ts index bf312ae..8745bc7 100644 --- a/packages/core/src/types/index.ts +++ b/packages/core/src/types/index.ts @@ -40,7 +40,13 @@ export type AgentEvent = | { type: "done"; message: ChatMessage } | { type: "task-list-update"; tasks: TaskItem[] } | { type: "config-reload" } - | { type: "tab-created"; id: string; title: string }; + | { + type: "tab-created"; + id: string; + title: string; + keyId: string | null; + modelId: string | null; + }; // ─── Tool Types ────────────────────────────────────────────────── |
