Skip to content

Fix critical handoff truncation bug#184

Open
SalimMessaad1 wants to merge 1 commit into
anthropics:mainfrom
SalimMessaad1:fix-handoff-logic
Open

Fix critical handoff truncation bug#184
SalimMessaad1 wants to merge 1 commit into
anthropics:mainfrom
SalimMessaad1:fix-handoff-logic

Conversation

@SalimMessaad1
Copy link
Copy Markdown

Implemented a bracket-depth parser to correctly handle nested JSON in handoff requests, replacing the broken Regex logic.

Changes:

  • Removed HANDOFF_RE which was truncating JSON at the first closing brace.
  • Added _extract_json_object to ensure full capture of nested objects and string literals.
  • Improved reliability of extract_handoff for complex agent payloads.

Fixes #99

Implemented a bracket-depth parser to correctly handle nested JSON in handoff requests, replacing the broken Regex logic
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.

Critical Bug: Broken cross-agent handoffs due to truncated JSON extraction in orchestrate.py

1 participant