Skip to content

Refactor error handling and fix state persistence in LlmAgent#144

Open
dewitt wants to merge 2 commits intomainfrom
pr/5-error-handling
Open

Refactor error handling and fix state persistence in LlmAgent#144
dewitt wants to merge 2 commits intomainfrom
pr/5-error-handling

Conversation

@dewitt
Copy link
Collaborator

@dewitt dewitt commented Feb 13, 2026

This PR refactors runAndHandleError to support native Error objects and fixes a state-loss bug in generateRequestConfirmationEvent.

  • Updates runAndHandleError to catch and process Error objects from the model or plugins.
  • Fixes generateRequestConfirmationEvent to properly persist actions (including state delta) when suspending for confirmation.
  • Also includes a fix for AgentFile.load race condition in adk-devtools (needed for CI).

Reference: docs/adk-ts-improvements.md.

Fixes #143.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor error handling and fix state persistence in LlmAgent

1 participant

Comments