feat(work-items): run remote comments through continuations - #947
Closed
Neonforge98 wants to merge 1 commit into
Closed
feat(work-items): run remote comments through continuations#947Neonforge98 wants to merge 1 commit into
Neonforge98 wants to merge 1 commit into
Conversation
Collaborator
Author
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.
Problem
The durable Work Item dispatcher can hand a remote-root comment to the sender device, but the frontend does not yet claim that offer or execute it through the existing persistent conversation runtime. A transient transport error must also keep the exact durably prepared runner instead of silently rolling to a second Session.
Solution
Mount one app-root Work Item bridge that capability-gates and claims the Rust offer, then delegates all context loading, plane deltas, continuation selection, runner overlay, send/wait/tail publication, and plane signaling to the shared conversation runtime from #944 and #945. Add prepare-before-send and ack-after-accept callbacks to the shared runner, preserve the prepared runner on ambiguous transport failures, and require the deployed retry-safe conversation projection capability. Team Chat remains ordinary human chat and is not moved into the Agent conversation plane.
Potential risks
A cold capability probe can take up to 15 seconds; the parent PR now keeps the offer open for 20 seconds. A crash after durable prepare is safe and retryable, but explicit prepared-runner recovery and native/External CLI runtime selection are intentionally the next stacked PR. Until that layer lands, a missing prepared local Session can remain pending rather than changing runner identity.
Validation
Stacked on #946.