Skip to content

Native Copy Thread preserves hosted environment and thread identity #267

Closed

Description

@rynfar

Native Sidebar Copy → Thread currently copies a title-labelled t3-context://v1/thread/... value without environment identity. Current web threadChipCopyTarget copies a hosted /threads/{environment}/{thread} URL with its structured thread clipboard fragment. The native workspace/keybinding path uses the same legacy formatter; the palette propagates to that path. This is one bounded SB-MENU gap under #242 and the hosted-link tracker #221, not acceptance of either whole tracker.

Acceptance:

  • Copy → Thread returns the hosted URL for the exact captured environment/thread, with web-compatible segment encoding and the existing structured thread record. Empty/missing/stale destinations fail closed; never substitute local or the current different environment for a captured target.
  • Cover sidebar/thread-menu and existing workspace/keybinding/palette callers of the formatter. Preserve current PR-reference priority where supported and all unrelated copy/path/branch/id behavior; record remaining parity: feat(server,web,mobile,desktop): Copy thread copies a link that opens the thread (pingdotgg/t3code#26290) #221 surfaces honestly.
  • Preserve paste-back through the existing composer import path, including record/environment identity, code-span exclusion, unknown/unreferenced records, cross-environment guards and collision handling. Scope any shared hosted-link matching to what this copied payload requires; do not build a general deep-link/runtime architecture.
  • Meaningful failing-first production behavior proof, focused tests for URL/fragment/import identity and adversarial cases, scoped full source/evidence bindings, independent exact-head/ACTUAL-base review, one root gate and merged-primary verification under existing safety limits. No actual clipboard read/write, live snooze/delete/visit/settings/provider writes, paid turns or real windows for proof. Use existing pre-clipboard/offscreen guard or a minimal harmless production-boundary spy which returns BEFORE the OS clipboard.

Allowed implementation: native core thread_actions.rs and adjacent existing/new narrowly named thread-reference helper/tests, minimal core composer records.rs/adjacent tests needed for copied hosted-link fragment import; app sidebar controller.rs CopyThread/copy-reference branches only, context_menu.rs captured CopyThread target only if essential, workspace copy_selected_reference, minimal composer clipboard export/adapter needed to reuse existing guarded writer and pure import boundary. Minimal existing module registration only if indispensable. Ledger SB-MENU cells only; retain partial and all other rows/UPSTREAM. No snooze resolver/calendar/controller deletion/bulk logic, AppState architecture, settings, server/contracts/web/dependencies/global renderer/multi-environment subscriptions, auth/scope widening or OS clipboard verification. If additional essential files/behavior are needed, report one source-backed blocker to root55 before edits.

#262 remains OPEN/partial: compiled standalone exact-source proof now confirms a sub-millisecond rounding mismatch in excluded core sidebar/settled.rs, plus whole-flow evidence gaps. This allocation does not authorize editing that resolver or bypassing it with an app duplicate. Sidebar remains 5/16 accepted; preserve SB-LIST/HEADER/UNDO/DRAFTS/TAGS and sustained sidebar priority until16/16. #221 stays open for any broader hosted-link entry/paste/opening gaps not completed here.

Factory root55 orchestrates only. Fresh isolated worker/worktree/private target after setup and one debug-cache clone JOIN0. Both normal bundles/f0USERACTIVE, Trevor and existing servers untouched. Only copied14658 Replaydev; explicit PRIVATE snapshot build JOIN0/hash BEFORE any app. No old266/264/263/261 proof reruns, target resurrection or idle archived-chat wakes. Raw formatter RED and structural/dependency/runtime limits remain honest.

Activity

  1. added
    parity
    native:bug
    status:in-progress
    status:review
    and removed
    status:in-progress
    on Nov 5, 2026
  2. rynfar commented on Nov 5, 2026

    @rynfar
    OwnerAuthor

    Implemented the bounded hosted Copy Thread slice in PR #268, head df40cf7c6c8da4ec569ad844957535658113b0ba.

    Sidebar/thread-menu and workspace/keybinding/palette propagation now copy the exact hosted environment/thread URL plus structured fragment through the guarded writer. Matching-fragment paste-back preserves identity and existing environment/collision protections. Compiled RED precedes GREEN; 1,410 default workspace tests, strict Clippy, theme, 42 parity tests, conformance, normal/private snapshot builds, and a synthetic offscreen pre-clipboard capture passed.

    SB-MENU remains partial, with no new accepted row. #221/#242 remain open for bare-link import without a fragment, broader hosted opening/landing/chat surfaces, palette PR-panel parity, and the whole menu checklist (Find/branch/filter, sharing/promotion, and remaining lifecycle acceptance). #262 is untouched.

    Full local proof, failures, source bindings and limitations: /private/tmp/native267-b55-evidence/REPORT.md, /private/tmp/native267-b55-evidence/INDEX.json. Scoped format/ledger checks remain RED; no real clipboard, real-thread visit, paid turn, real window, new server, main gate, merge, or cleanup was performed.

  3. rynfar commented on Nov 5, 2026

    @rynfar
    OwnerAuthor

    Merged PR #268 as 5056be35cf33ced5e8c342735cd9b064dde01e1f, exact reviewed/gated tree f9862599b108a40d14938b78fdfcf3896cf0cdbf. The bounded hosted Copy Thread slice preserves environment/thread identity and structured paste-back across menu and workspace/keybinding/palette propagation, with stale-target guards.

    Independent APPROVE matched DF40 against actual A569. Root55’s single gate passed 1,410 default tests plus the named injected calendar and snapshot deletion/Undo branches, strict Clippy, theme, 42 parity tests, conformance, normal and private snapshot builds. Formatting remains RED, including the ledger row; full raw evidence is retained locally. The merged private snapshot build joined before its hash was recorded and before the single offscreen run. That run captured the exact synthetic URL/fragment through the pre-OSclipboard guard; the one inspected PNG is an exact duplicate of the worker’s incidental new-thread frame and supplies no before/after visual proof.

    This closes only #267. SB-MENU remains partial; #221/#242/#262 remain open, sidebar acceptance remains 5/16 with no new accepted row, and the five accepted rows are preserved. Live clipboard, grants/relay/multi-device behavior, real-window performance and wider hosted-link/menu gaps remain unaccepted. No paid provider turn, real-thread visit, real window, new server, or scope widening.

  4. removed
    status:review
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:bugparity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions