From 1a7f468610a4bcf50862f009565d4c34e48e9415 Mon Sep 17 00:00:00 2001 From: anthonykim1 Date: Wed, 17 Dec 2025 11:02:49 -0800 Subject: [PATCH 1/2] Dont tear down shell startup when switched to command --- src/features/terminal/terminalManager.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/features/terminal/terminalManager.ts b/src/features/terminal/terminalManager.ts index 79e31769..42cc99b8 100644 --- a/src/features/terminal/terminalManager.ts +++ b/src/features/terminal/terminalManager.ts @@ -135,10 +135,8 @@ export class TerminalManagerImpl implements TerminalManager { } } else { traceVerbose( - `Auto activation type changed to ${actType}, we are cleaning up shell startup setup`, + `Auto activation type changed to ${actType}, not tearing down shell startup scripts on activation type switch; scripts are only removed via explicit revert.`, ); - // Teardown scripts when switching away from shell startup activation - await Promise.all(this.startupScriptProviders.map((p) => p.teardownScripts())); this.shellSetup.clear(); } } From fb3bbc6c0936840639168b1a753da7707ac9e28e Mon Sep 17 00:00:00 2001 From: anthonykim1 Date: Wed, 17 Dec 2025 11:52:07 -0800 Subject: [PATCH 2/2] Don't touch this.shellSetup.clear() --- src/features/terminal/terminalManager.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/features/terminal/terminalManager.ts b/src/features/terminal/terminalManager.ts index 42cc99b8..d9a3d594 100644 --- a/src/features/terminal/terminalManager.ts +++ b/src/features/terminal/terminalManager.ts @@ -137,7 +137,6 @@ export class TerminalManagerImpl implements TerminalManager { traceVerbose( `Auto activation type changed to ${actType}, not tearing down shell startup scripts on activation type switch; scripts are only removed via explicit revert.`, ); - this.shellSetup.clear(); } } }),