Repository navigation
fix(native): keep deletion fallback in the current project - #263
Merged
Merged
Conversation
5 tasks done
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.
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:
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.mdand/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.pngremains 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