Skip to content

fix(harness): application_update carries update_type; session:end may be transferred - #27

Merged
davehorton merged 2 commits into
mainfrom
fix/harness-event-types
Oct 30, 2026
Merged

davehorton merged 2 commits into
mainfrom
fix/harness-event-types

Conversation

@davehorton

Copy link
Copy Markdown
Contributor

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's agent:update type can't use type, because the envelope already uses it. The SDK typed it as type, so onEvent.application_update handlers read 'event'. They now get update_type.
  • session:end: the reasons gain transferred, which feature-server sends when a harness transfer bridges.

New test: an application_update reaches its handler with update_type and data. 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

davehorton and others added 2 commits October 29, 2026 17:23
… 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>
@davehorton
davehorton merged commit f236e71 into main Oct 30, 2026
1 check passed
@davehorton
davehorton deleted the fix/harness-event-types branch October 30, 2026 03:13
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.

1 participant