Repository navigation
Conversation: make state.events.append a default callback; remove manual appends in CodeActAgent - #57
Merged
Merged
Conversation
…ual appends in CodeActAgent; add tests - Compose callbacks to include default state appender - Stop duplicative state.events.append calls - Add unit tests ensuring single append behavior Fixes #51 Co-authored-by: openhands <openhands@all-hands.dev>
xingyaoww
commented
Sep 2, 2025
xingyaoww
commented
Sep 2, 2025
StressTestor
pushed a commit
to StressTestor/software-agent-sdk
that referenced
this pull request
Jun 1, 2026
…ual appends in CodeActAgent (OpenHands#57) Co-authored-by: openhands <openhands@all-hands.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What/Why
This change simplifies event handling and ensures consistent behavior across the codebase. Agents now emit events via on_event, and Conversation persists them to state by default. This addresses readability concerns and removes scattered state mutations.
Changes
Backward compatibility
Validation
Fixes
state.events.appendas a default callback function inConversation#51Notes
Co-authored-by: openhands openhands@all-hands.dev
@xingyaoww can click here to continue refining the PR