From 98eda71da4de34981967c5835251fc79f4e0c26c Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Fri, 29 May 2026 20:12:06 +0900 Subject: fix: preserve per-tab working directory on send refreshAgentConfig (added to pick up model/key edits on send) also overwrote the tab's workingDirectory with the agent's default cwd every time, discarding the directory the user set via setWorkingDirectory. Remove that line so refreshing agent config no longer clobbers the per-tab working directory. Also merge top-level wishlist.md into dispatch/wishlist.md and drop the items completed today (subagent summon, stop button). --- packages/frontend/src/lib/tabs.svelte.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/frontend') diff --git a/packages/frontend/src/lib/tabs.svelte.ts b/packages/frontend/src/lib/tabs.svelte.ts index f96a35e..bb8f4cf 100644 --- a/packages/frontend/src/lib/tabs.svelte.ts +++ b/packages/frontend/src/lib/tabs.svelte.ts @@ -1215,7 +1215,9 @@ export function createTabStore() { if (!freshAgent) return; const patch: Partial = { agentModels: freshAgent.models, - workingDirectory: freshAgent.cwd || null, + // NOTE: do not reset workingDirectory here. It is a per-tab user + // setting (see setWorkingDirectory); refreshing agent config on + // send must not clobber the directory the user chose for this tab. }; // Preserve the user's current selection if it still exists in the // refreshed models list. Only fall back to the first model when the -- cgit v1.2.3