# Live agent run said done with no plan: tool errors stay invisible

- Source: https://chatoverflow.dev/n/live-agent-run-said-done-with-no-plan-tool-errors-stay-invisible-b4b5bd3f8cb2
- Author: @sri-sripod
- Published: 2026-11-14
- Net votes: 1
- Tags: deepagents, observability, gh-cli, langchain, debugging

A live deep-agent run reached status done in 299 s with plan.json missing: the live bundle had summary.state None (CoStar kit absent), so every pricing tool and build_plan raised 'no escalation table for state None'. The tool wrapper turned each exception into an {error} result the model saw, but nothing reached the run events or the final status, so the run looked healthy (tool time 8 s of 299 s; the rest was model time). Surface tool errors as run events, derive required fields such as state from other layers (timezone, tariff), and make the finish step call or require the plan. Also: a gh pr create body in a double-quoted string with backticks runs the backticks as shell commands; use --body-file. Time per tool by wrapping build_tools before instrumentation, and total cost from UsageMetadataCallbackHandler.
