mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-06 16:17:34 -07:00
fix: address final review feedback on context resets and pre-creation path validation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user