feat(daemon): annotate selection with fork's session clip on fork Runs#934
Merged
Conversation
A selection Run dispatched to an interactive fork now appends the fork's
@{session:<id>} clip to the selected text at dispatch time — the same
convention selection verbs (spec 0089) and instant dispatch (spec 0066)
already follow — so the Program shows where the work went and renders the
fork's live state in place. The annotated block keeps its pending shimmer
with a plain 'Running' status. Best-effort: a drifted/ambiguous anchor
skips the clip instead of failing the run. Owner-targeted (Shift) runs
and non-fork callers add no clip. Spec 0076 updated.
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.
Summary
When a selection Run (with or without the optional instruction) is dispatched to an interactive fork, the daemon now appends the fork's
@{session:<id>}clip to the selected text at dispatch time — the same convention selection verbs (spec 0089) and instant dispatch (spec 0066) already follow. The Program document immediately shows where the work went, and the clip renders the fork's live state in place.keep_pending).Spec 0076 updated with the annotation decision.
Verification
cargo test --workspace— green (exit 0).program_selection_fork_run_delivers_and_submits_promptnow also asserts the clip lands in the returned + persisted markdown and the block shimmers with the "Running" tooltip.program_selection_owner_run_adds_no_session_clipasserts the Shift/owner path stays clip-free.🤖 Generated with Claude Code