Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
alex-w-99
marked this pull request as ready for review
December 5, 2026 02:09
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Executive Summary
Route
computer.*lifecycle events into one Claude session per computer and bump the bridge to0.2.35.computer.created,started,stopped,paused,resumed,failedanddeletedeach run one turn in acomputer:<computer_id>session, from a webhook subscription or a hosted delivery.id) runs once.Description
The server now emits
computer.*webhook events withdata.computer_id,identity_id,agent_handle,stateand an optionalfailure_category.InkboxGatewayrecognises thecomputer.prefix as an Inkbox event shape (so these are no longer ignored or treated as external events), dedups them on the envelopeid, and dispatches them to_on_computer_event. That builds a short prompt (event, computer id, state, failure category, event time, with bracket and whitespace sanitising) and runs it through the existing external-turn path in sessioncomputer:<computer_id>with a directive that the turn is a lifecycle notice and its reply is not delivered. The outbound send path drops text forcomputer:sessions the same way it already does forexternal:sessions. A managed hosted delivery waits for the turn before it settles.Version bumped in
pyproject.toml,inkbox_claude/__init__.pyanduv.lock; CHANGELOG and README updated.Reason
Computer events have no contact, so without a dedicated session key they would be dropped or mixed into unrelated conversations; one session per computer gives the agent a coherent history for each machine.
Decisions
computer_idonly, because the events carry no contact and every event about one computer should share context.idlike received messages, so a webhook retry does not run a second turn.computer.*itself; a hosted agent receives the events selected in its triggers, and self-hosted users opt in through their own subscription.Testing
computer.failedwebhook to/webhookwithdata.computer_id: one turn in sessioncomputer:<id>; the prompt names the event, computer, state and failure category; nothing is sent to any contact.id: deduped, no second turn. An event with nodata.computer_id:200withignored: no-computer-id.computer.*event: the delivery settles after the turn finishes.uv run pytest -q --ignore=tests/contract --ignore=tests/live: 1992 passed (includes the newtests/test_computer_events.py).uv run pytest -q tests/contract: 12 passed, 1 skipped.live-*.yml) not run.Related PRs
None.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.