Skip to content

fix(native): keep deletion fallback in the current project - #263

Merged
rynfar merged 3 commits into
nativefrom
nw/218-delete-fallback
Nov 5, 2026
Merged

rynfar merged 3 commits into
nativefrom
nw/218-delete-fallback

Conversation

@rynfar

@rynfar rynfar commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Deleting the open native thread could choose another project or a parked thread, lose its fallback when the deletion event beat the RPC reply, or leave a live Undo for a permanently deleted thread when the success reply arrived during reconnect.

Single and bulk deletion share the web selector over unfiltered environment shells/current mounted omitted rows: same physical project, current thread sort, descending-id ties, all co-deletions excluded, explicit settled and deletion-time effective-snooze exclusions. Capture remains after stop completion and before deletion. Replies re-read the survivor and reject genuine selection/mount/environment/connection changes. Only the eligible original selected deletion projects/sorts fallback candidates; background ids skip that work.

A bounded pending request holds its original selected mount across its own early deletion event. Completion retires ownership; failed/cancelled completion and disconnect or genuine navigation release a held deleted selection normally. Unowned deletion events still close normally. Successful same-scope deletion invalidates only the deleted thread's placement/archive Undo claims and emits Notice regardless of connection phase. Fallback navigation remains guarded by connected state and original ownership. Failure preserves Undo; stale-scope replies cannot mutate another environment's Undo.

R3 changes controller.rs only. The complete PR remains seven authorized paths, with exactly the previously allocated three AppState seams. All other ledger lines, the other 130 rows, UPSTREAM/intake audit and five accepted sidebar rows are preserved. SB-SECTIONS/SB-MENU remain partial; #242/#221 and other remaining dependencies stay open. Sidebar acceptance remains 5/16. Ordinary adjacent/history/archive behavior is preserved; no provider, server, contract, web, mobile or renderer change.

Validation:

  • The existing deterministic GPUI production-lifecycle case now seeds actual placement/archive claims, live unpin Undo, same-thread draft Undo and other-thread Undo. It observes actual AppEvent::Notice around the production completion boundary. Compiled RED against e59 reproduced the deleted claim remaining current after successful disconnect; GREEN covers selected/background reconnect, connected success, failure and stale reset scope, claim preservation and Notice delivery. The preceding fixture compilation failure is retained accurately.
  • Actual apply_batch event ordering and preparation/completion plans remain the single tested boundary. No manually assigned post-close mirror, sleeps, polling, transport mutation or actual route/visit execution.
  • Final strict workspace Clippy; workspace tests (98 client, 1236 core, 7 conformance, 62 app); two essential snapshot-feature cases; theme; 42 parity tests; client-runtime conformance; normal and explicit private snapshot builds pass after the last edit.
  • Actual Rustfmt over all six changed Rust files remains RED, including touched formatting; not every hunk is claimed inherited. Explicit workspace Vite+ 1.4 check:changed remains RED on ledger formatting, with its other checks passing. No unrelated formatting or repo-wide fallback. Command-local hook bypass preserves the bounded scope.

Immutable R3 proof and all raw rounds: /private/tmp/native-factory-2f5f764a/218-r3-evidence-batch52/INDEX.md. True validation/build HEAD is e59bfc9 with retained working changes; input bytes bind to the later published Git head, never a later-head-at-earlier-build claim. Actual native base remains b955bff.

All original 34 rounds/hook history and all 22 R1 rounds, INDEX files, seals and review files are preserved. Earlier evidence remains at /private/tmp/native-factory-2f5f764a/218-evidence-batch50/INDEX.md and /private/tmp/native-factory-2f5f764a/218-r1-evidence-batch51/INDEX.md.

No R3 app invocation or capture. The initial PNG /private/tmp/native-factory-2f5f764a/218-evidence-batch50/sidebar-smoke.png remains generic rendering at the initial head, not deletion/new-head proof. No paid/T3 provider turns, actual stop/delete/snooze/visit/settings-save writes, CUA/browser/clipboard, real windows or new T3 servers/containers. Only copied 14658 home supplied; copied-home and both normal user bundle hashes unchanged. No full-frame/performance/live grants/relay/multidevice or continuous-monitoring claims. Known #202/historical #185 remain separate. No merge, cleanup or reviewer wake.

Built with GPT-6.1 Sol in Codex

@rynfar
rynfar merged commit d4fe4c8 into native Nov 5, 2026
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