Skip to content

fix(native): copy hosted thread references with environment identity - #268

Merged
rynfar merged 1 commit into
nativefrom
nw/267-hosted-copy
Nov 5, 2026
Merged

rynfar merged 1 commit into
nativefrom
nw/267-hosted-copy

Conversation

@rynfar

@rynfar rynfar commented Nov 5, 2026

Copy link
Copy Markdown
Owner

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.md and /private/tmp/native267-b55-evidence/INDEX.json.

Fixes #267

Built with GPT-6.1 Sol in Codex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant