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/api | |
| 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/api')
| -rw-r--r-- | packages/api/src/agent-manager.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/api/src/agent-manager.ts b/packages/api/src/agent-manager.ts index e1d9bad..e4f284d 100644 --- a/packages/api/src/agent-manager.ts +++ b/packages/api/src/agent-manager.ts @@ -611,7 +611,10 @@ export class AgentManager { } // Notify the frontend about the new tab - this.emit({ type: "tab-created", id: tabId, title }, tabId); + this.emit( + { type: "tab-created", id: tabId, title, keyId: tabAgent.keyId, modelId: tabAgent.modelId }, + tabId, + ); // Start the child agent in the background this.processMessage( |
