Update packages/core/src/agents/agent-scheduler.ts

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Fatih Uzulmez 2026-04-16 23:03:19 -07:00 committed by GitHub
parent 155b071e27
commit d8bb1f6326
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,7 @@ export async function scheduleAgentTools(
config,
// Fork the promptId if this is a subagent or child call to isolate history
promptId: parentCallId
? `${config.promptId}-${parentCallId}`
? config.promptId + '-' + parentCallId.replace(/[^a-zA-Z0-9-_]/g, '')
: config.promptId,
toolRegistry,
promptRegistry: promptRegistry ?? config.getPromptRegistry(),