diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-08-11 13:51:59 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-08-11 13:51:59 +0900 |
| commit | b5ccecca01007f2a2459265df6d749fbfd31aa84 (patch) | |
| tree | ffa633db5df1809b1c0adcfb35e66aa5b97f8c46 /src/Agent.App/Agent.App.csproj | |
| parent | 7aa4ff5d8403e4c1480faafce0af8d3549276c9f (diff) | |
Fix: AgentRuntime tool failure handling and PlannerService fallback graph persistence
AgentRuntime.ExecutePlannerTaskAsync:
- Add PlannerValidationException and FileNotFoundException to the tool
execution catch clause so that 'Completed tasks are immutable' and
'Approved path does not exist' errors are returned as tool results
instead of propagating as unhandled task failures.
- Treat task_update as a metadata tool: its failures no longer add to
unresolvedToolFailures, so the LLM is not forced into an infinite
retry loop when task_update receives invalid arguments.
- Skip throwing InvalidOperationException for RetryAllowed=false
failures originating from metadata tools (task_update), preventing
unnecessary replan cycles caused by graph bookkeeping errors.
- Improve the 'No tasks were executed' fallback message: when replan
was attempted but no tasks could execute, report that the sandbox
policy denied required operations.
PlannerService.PlanAsync:
- Persist fallback TaskGraph to session.TaskGraphs[taskId] in all
three fallback paths (ChatStructuredAsync exception, empty/null plan,
BuildTaskGraph exception) so that BeginTask's TryAdd does not create
an empty graph that shadows the fallback.
Diffstat (limited to 'src/Agent.App/Agent.App.csproj')
0 files changed, 0 insertions, 0 deletions
