Repository navigation
fix(native): copy hosted thread references with environment identity - #268
Merged
Merged
Conversation
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.
Native Copy → Thread copied a legacy chip link without an environment. It now copies the hosted URL and structured thread fragment for the exact destination, matching the web contract. Sidebar/thread menus capture the environment and connection; missing, vanished, disconnected, or replaced destinations fail closed. Workspace, keybinding, and palette propagation share the same guarded writer. Copy remains a read action; path/branch/id and existing PR copy paths are unchanged.
Paste-back recognizes matching hosted links carried with a valid fragment, preserves exact environment/thread identity, excludes code spans/fences and unreferenced or mismatched records, and reuses existing environment/collision rules. A snapshot-only fixture in the copy adapter assigns a synthetic selection directly, avoiding real-thread routing/visits during proof.
Validation: compiled behavioral RED first (legacy output and failed hosted import), then 1,410 passing default native workspace tests; strict workspace/all-target Clippy; theme check; 42 parity tests; scoped conformance from client-runtime; normal and private snapshot builds. The final compiled/tested/runtime source hashes bind exactly to this commit, despite building from the dirty a569046 base before publication. The essential snapshot-only adapter was compiled and exercised offscreen, without repeating the default tests under the snapshot feature.
The single offscreen run used a throwaway copy of the copied14658 home with only last-thread omitted, a separate empty T3CODE_HOME, and --new-thread. The private snapshot build reached JOIN0 and was hashed before launch. Its synthetic Copy action captured the exact URL/fragment in the existing guard before OS clipboard access; it sent no thread/provider action. The original worker home is unchanged. The incidental PNG shows the new-thread surface, not a visual before/after claim:
/private/tmp/native267-b55-evidence/copy267.png.Scoped Rust/ledger formatter checks remain RED, with baseline and final raw output retained. The broad staged hook was explicitly bypassed because it reformats the full inherited ledger, outside this assignment. No full-file reformat or repo-wide check was run.
SB-MENU stays partial; all other ledger bytes and UPSTREAM are preserved, including the five accepted sidebar rows. #221/#242 remain open: bare-link import without a fragment, broader hosted opening/landing/chat surfaces, palette PR-panel parity, and the remaining menu checklist are not claimed. Live grant/relay/multi-device, real clipboard writes, provider turns, full-frame performance, and real-window behavior were not verified. No #262 resolver/row changes, main gate, merge, or cleanup.
Full report, source bindings, immutable round sources/patches and untruncated logs:
/private/tmp/native267-b55-evidence/REPORT.mdand/private/tmp/native267-b55-evidence/INDEX.json.Fixes #267
Built with GPT-6.1 Sol in Codex