fix(agent-loop): reclassify pending tool calls

This commit is contained in:
Tianyi Cui
2026-07-17 21:55:10 +08:00
parent 17fe9e5b1e
commit 62f6251bf9
7 changed files with 140 additions and 72 deletions

View File

@@ -822,8 +822,8 @@ function renderLifecycle(): string {
` Session-->>SDK: ${mermaidCode('session/event')} ${mermaidCode('assistant/chunk')}*`,
` Driver->>Hooks: ${mermaidCode('agent/step-result')} waterfall`,
` Driver->>Session: ${mermaidCode('assistant/message')}`,
' Driver->>Tools: group calls by executionMode',
' loop bounded rolling pool until group drains',
' Driver->>Tools: classify next call by executionMode',
' loop bounded rolling pool with reclassification before replenishing',
' opt capacity available for an unstarted call',
` Driver->>Session: ${mermaidCode('tool/call')} pending audit`,
' Driver->>Tools: ordered pre / pooled dispatch',