Repository navigation
fix(harness): application_update carries update_type; session:end may be transferred - #27
Merged
Merged
Conversation
… be transferred
feature-server sends application_update as {name, update_type, data}: the
message's own type is already 'event', so the SDK's {type} field read as
'event' in a handler. session:end's reasons gain 'transferred'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wn destination Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Found while writing the harness docs against feature-server's code.
application_update: feature-server sends{type: 'event', name: 'application_update', update_type, data}. The application'sagent:updatetype can't usetype, because the envelope already uses it. The SDK typed it astype, soonEvent.application_updatehandlers read'event'. They now getupdate_type.session:end: the reasons gaintransferred, which feature-server sends when a harness transfer bridges.New test: an
application_updatereaches its handler withupdate_typeanddata. 158 tests pass.This is a breaking change to a type, but the old field never carried the right value. Needs a publish.
🤖 Generated with Claude Code