fix: address final review feedback on context resets and pre-creation path validation

This commit is contained in:
Mahima Shanware
2026-04-07 04:39:15 +00:00
parent 35fd166bce
commit 432df7982c
2 changed files with 51 additions and 36 deletions
@@ -372,13 +372,11 @@ export const useSlashCommandProcessor = (
} = parseSlashCommand(trimmed, commands);
if (config && commandToExecute && !commandToExecute.isSafeConcurrent) {
if (extensionContext) {
if (config.hasExtensionPlanDir(extensionContext)) {
config.setActiveExtensionContext(extensionContext);
} else {
config.setActiveExtensionContext(undefined);
}
}
config.setActiveExtensionContext(
extensionContext && config.hasExtensionPlanDir(extensionContext)
? extensionContext
: undefined,
);
}
// If the input doesn't match any known command, check if MCP servers