Skip to content

fix(native): keep side-chat diffs in the parent panel - #119

Merged
rynfar merged 3 commits into
nativefrom
nw/58-sidechat-diff
Nov 3, 2026
Merged

rynfar merged 3 commits into
nativefrom
nw/58-sidechat-diff

Conversation

@rynfar

@rynfar rynfar commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Side-chat file changes did not offer Open diff, and replacing the side-chat pane dropped the source stream needed to refresh a running change. Inherited file changes can also belong to an original thread whose shell is absent from loaded pages or families.

Open diff selects the tool before activating the parent's Diff tab. The existing secondary-thread machinery follows one source while its diff is visible, including after the child tab closes. Unknown and archived source shells remain readable; thread.removed also represents archive. Explicit deletion from a shell, a thread event, or a projection snapshot cancels reads and the source stream. A bounded deletion marker prevents late frames or shell refreshes from reviving that active source. Optional deletedAt decoding supports older snapshots. Main-thread snapshot installation follows web threads.ts unchanged; snapshot deletion is interpreted by source ownership and the shared diff guard. Permission checks, stale-result cancellation, the six-entry cache, parent selection and review-comment destinations are preserved. TR-DIFF is done.

Validation: source-lifetime, unloaded-original eligibility and snapshot-only deletion regressions each failed before their fixes. The snapshot case uses the production decoder and checks omitted deletedAt, archived snapshots and deletion without a shell or deletion event. Nine focused tests and 1,109 native workspace tests passed (998 core, 74 client, 7 conformance, 30 app). Clippy with warnings denied, native build, theme, 42 parity tests, conformance generation, and vp run check:changed fork/native passed. Rebased on df70579cb8.

Local offscreen evidence at 73119ec7e4 (intentionally not uploaded):

  • Prior side-chat gate restored in the temporary fixture: /private/tmp/native-factory-2f5f764a/58-side-before.png
  • New control: /private/tmp/native-factory-2f5f764a/58-side-offer.png
  • Actual Open diff click, child tab removed, settled source patch in parent: /private/tmp/native-factory-2f5f764a/58-side-clicked.png

Runtime trace: /private/tmp/native-factory-2f5f764a/58-side-clicked.log. An existing Replay thread on server 14658 was presented as a child locally; the trace shows live detail loaded, source retained after child-tab removal, a synthetic settlement refetched, then source released on scope switch. Fixture and tracing code is excluded. Snapshot-deletion regression logs: /private/tmp/native-factory-2f5f764a/58-snapshot-delete-failing-first.log and /private/tmp/native-factory-2f5f764a/58-snapshot-delete-regression.log. Current wire probe: /private/tmp/native-factory-2f5f764a/58-snapshot-delete-probe.log.

No known remaining gap in #58's scope. Runtime limits: settlement was synthetic; unloaded-source and snapshot-deletion follow-ups are tested through the decoded guard model, without new end-to-end captures. Real reconnect/snapshot fallback, permission revocation, deletion, environment switching, remote/relay and review-comment insertion remain unverified end to end. No server mutations, paid turns, real-window input, clipboard writes, server/contract changes, or onboarding edits.

Closes #58.

Built with GPT-6.1 Sol in Codex

@rynfar rynfar mentioned this pull request Nov 3, 2026
@rynfar

rynfar commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

Exact-head orchestrator gate GREEN at 73119ec7e4460f9e84053a7b3ba532e54e8d2a28, integrated onto native5ebb180f55: Clippy(all targets), all1,098 native tests, theme, parity and conformance PASS(exit0). Trial merge aborted cleanly. Transcript /private/tmp/native-factory-2f5f764a/gate-119-initial.log. Fresh independent Sol xhigh review is still pending; this is not merge approval.

@rynfar

rynfar commented Nov 3, 2026

Copy link
Copy Markdown
Owner Author

Independent Sol review of exact head 73119ec7e4460f9e84053a7b3ba532e54e8d2a28 found one P2, verified against source by the parent: right_panel/state.rs:166 rejects an inherited tool target whose original thread has no locally loaded shell; diff/mod.rs:282 suppresses its detail request independently. Shell omission is not deletion. Family loading only follows the selected fork, so a loaded fork with an omitted older source never resolves this. Returned to the original implementer with a failing-before regression and requirements to retain permission/deletion/lifetime behavior. Initial 1,098-test gate is GREEN but is not merge approval. A new fix head requires same-reviewer re-review and a fresh parent gate. Other lifecycle/remote paths remain unverified end to end.

@rynfar rynfar mentioned this pull request Nov 3, 2026
2 tasks done
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