Repository navigation
feat(acp): an adapter's incident is an event, not only a sentence - #22
Merged
Merged
Conversation
The antigravity adapter marks a stream event or step it cannot translate in
the protocol's extension slot, as a typed `openhands.unrecognised` field,
beside the sentence it puts in the assistant's text. One hop later the bridge
kept the chunk's text and let the field go, so "surfaced as a typed error
rather than dropped" was true on the wire and false in the conversation —
nothing downstream could count it.
`ACPAdapterIncidentEvent` is the machine-readable half, emitted live from
`session_update` the way a tool call is: adapter, what ('event' or 'step'),
the unrecognised kind, and the sentence. It is persisted with the rest of the
conversation and not sent to the LLM. The field is read tolerantly, since a
chunk from an older protocol package carries no extension slot.
Co-authored-by: openhands <openhands@all-hands.dev>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Oct 26, 2026
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.
What
The antigravity adapter marks a stream event or step it has no translation
for in the protocol's extension slot — a typed
openhands.unrecognisedfieldon the
agent_message_chunk— beside the sentence it puts in the assistant'stext (#20, #21). One hop later,
_OpenHandsACPBridge.session_updatekept thechunk's text and let the field go. So "an unrecognised event is surfaced as a
typed error rather than dropped" was true on the wire and false in the
conversation: nothing downstream could count it, and the user's
[unrecognised step: 'system_message']×7 could only ever be read by aperson.
ACPAdapterIncidentEventis the machine-readable half, in theconversation's own event stream:
Emitted live from
session_updatethe way a tool call is, guarded the sameway (a sink that is gone or that raises cannot take the turn down). Persisted
with the rest of the conversation; not sent to the LLM; shown by the
visualizer. The extension slot is read with
getattr, since a chunk from anolder protocol package — or a test's narrower stand-in — carries none.
Canvas consumes it (zeroday-ninja/OpenHands, next PR): first sighting of each
(conversation, adapter, what, kind)becomes a runtime-scoped lesson with thenew
adapter_incidenttrigger (zeroday-ninja/automation#79) and a line inMEMORY.md, and the chat shows a notice that says whether it was filed.
Verification
🤖 Generated with Claude Code