mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 03:54:43 -07:00
fix(core): properly support allowRedirect in policy engine (#23579)
This commit is contained in:
committed by
GitHub
parent
42a673a52c
commit
37857ab956
@@ -663,7 +663,10 @@ export function splitCommands(command: string): string[] {
|
||||
return [];
|
||||
}
|
||||
|
||||
return parsed.details.map((detail) => detail.text).filter(Boolean);
|
||||
return parsed.details
|
||||
.filter((detail) => !REDIRECTION_NAMES.has(detail.name))
|
||||
.map((detail) => detail.text)
|
||||
.filter(Boolean);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user