summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-05-29 20:12:06 +0900
committerAdam Malczewski <[email protected]>2026-05-29 20:12:06 +0900
commit98eda71da4de34981967c5835251fc79f4e0c26c (patch)
tree7d5edc7546ca4ddae9a51f785065e875a84b899e /packages
parente02b65aa65093f183a0aacb82e88ef7e434c0b74 (diff)
downloaddispatch-98eda71da4de34981967c5835251fc79f4e0c26c.tar.gz
dispatch-98eda71da4de34981967c5835251fc79f4e0c26c.zip
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).
Diffstat (limited to 'packages')
-rw-r--r--packages/frontend/src/lib/tabs.svelte.ts4
1 files changed, 3 insertions, 1 deletions
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<Tab> = {
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