fix(policy): ensure user policies are loaded when policyPaths is empty (#22090)

This commit is contained in:
N. Taylor Mullen
2026-03-11 16:58:58 -07:00
committed by GitHub
parent 90b53f9a82
commit 7380424782
5 changed files with 139 additions and 2 deletions

View File

@@ -1039,7 +1039,9 @@ export const useGeminiStream = (
return;
}
const finishReasonMessages: Record<FinishReason, string | undefined> = {
const finishReasonMessages: Partial<
Record<FinishReason, string | undefined>
> = {
[FinishReason.FINISH_REASON_UNSPECIFIED]: undefined,
[FinishReason.STOP]: undefined,
[FinishReason.MAX_TOKENS]: 'Response truncated due to token limits.',