Skip to content

Keep new tabs open through concurrent save conflicts - #5452

Merged
brsbl merged 2 commits into
mainfrom
bb/fix-slow-link-opening-thr_8f2nidvuyn
Oct 14, 2026
Merged

brsbl merged 2 commits into
mainfrom
bb/fix-slow-link-opening-thr_8f2nidvuyn

Conversation

@brsbl

@brsbl brsbl commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Concurrent Browser updates advanced the saved-tab revision before a newly opened tab was persisted. Abandoning the conflicted write caused reconciliation to remove the new tab, requiring repeated clicks.

What changed

  • Newly opened tabs survive up to two consecutive save conflicts and retain their selection.
  • Each retry merges the original edit with fresh server tabs inside the existing write queue.
  • Saves remain pending through at most three attempts.

How you verified

User QA passed. brsbl approved the combined native stack at e31315fb5ee317ed19f5eb4e84b734d8aead4579 and reconfirmed approval on October 14, 2026.

Current desktop smoke at the combined stack head, 1280 × 900 CSS pixels:

Native app: one hyperlink click survives two save conflicts

Before: 995fe31efe4043e055840ebcf2a13e2663945c53 · After: 5288f58a84c0e5220518283fd2c4ce2ec6b46fc6. Captured at 2× from the compared branch web apps with the same fixture and competing-write sequence.

State after first click Viewport Before After
New tab after competing saves Web · 1440 × 900 Before: the newly opened tab disappears After: the newly opened tab remains selected
Final review and scope

Fresh per-PR Slop Cop reviewed 995fe31efe4043e055840ebcf2a13e2663945c53..5288f58a84c0e5220518283fd2c4ce2ec6b46fc6 on October 14, 2026. Security and performance found no actionable issues. Architecture and code quality independently found the same P2 below; no P0/P1 findings. E2E reused the completed exact-head web pass and combined native pass above.

P2, resolved in the dependent implementation: retrying a local Browser addition can replace a newer native URL/title when registration already saved that ID. Switching tabs before the retry drains can remove the renderer listener that would repair it. The dependent implementation at e31315f preserves the existing native record and its replacement position, resolving this mechanism in the combined stack.

Two Slim PR passes retained the focused implementation and distinct conflict regressions. Before → after: production +26/−10 → +26/−10; tests +79/−58 → +79/−58; generated 0 → 0. The one-conflict case covers early success; two conflicts cover success on the final permitted attempt. No code changed during these passes.

BB-Thread-ID: thr_8f2nidvuyn

AGENT GENERATED

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T22:38:39.982418Z 638f7eb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@brsbl brsbl changed the title Keep newly opened tabs through concurrent save conflicts Keep new tabs open through concurrent save conflicts Oct 13, 2026
@brsbl
brsbl added this pull request to stack #5454 October 13, 2026 23:31
@brsbl
brsbl force-pushed the bb/fix-slow-link-opening-thr_8f2nidvuyn branch from 638f7eb to 5288f58 Compare October 14, 2026 00:26
@brsbl
brsbl merged commit 4ea5d0e into main Oct 14, 2026
28 checks passed
@brsbl
brsbl deleted the bb/fix-slow-link-opening-thr_8f2nidvuyn branch October 14, 2026 23:10
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