Repository navigation
improve(browser): narrow dashboard lifetime rechecks - #147892
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 12:48 AM ET / 04:48 UTC. ClawSweeper reviewWhat this changesThe Browser plugin rechecks known dashboard tabs by storage key instead of decoding every tracked tab, with regression coverage for cleanup cost, identity changes, and corrupt rows. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, focused optimization absent from the fetched main revision. No introduced correctness or security defect was found. Priority: P2 Review scores
Verification
How this fits togetherBrowser dashboards let users and agents share a managed browser tab. The Browser plugin reconciles saved dashboard definitions with SQLite tab records to retain, stop, or release the corresponding browser target. flowchart TD
A[Dashboard requests and cleanup events] --> B[Current dashboard definition]
B --> C[Browser lifetime owner]
C --> D[Discover tracked tabs]
C --> E[Recheck selected SQLite row]
D --> F[Validate identity and current ownership]
E --> F
F --> G[Retain or close managed tab]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +10, Tests +133. Total +143 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep selected-tab validation within the existing Browser owner, using keyed reads while preserving full discovery and fingerprinted cleanup. Do we have a high-confidence way to reproduce the issue? Not applicable as a functional bug reproduction: source confirms repeated full-store enumeration, and the PR reports a failing pre-change row-budget regression; this review did not execute benchmarks. Is this the best way to solve the issue? Yes: reusing the existing keyed-store lookup removes unnecessary materialization without adding storage, caching, configuration, or a competing owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 93841b3e826d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit 'e3d8d0078369b21223c70028c4502c89f1420897': (51 commits) fix: background requests delay opening chats (#147845) chore(i18n): refresh native locales (#147899) feat: start remote sessions without a repository (#147773) fix(slack): retire probe sockets after timeout (#147846) refactor(agents): share theme ANSI color encoding (#147838) improve(memory): bound vector recall decision counts (#147900) improve(browser): narrow dashboard lifetime rechecks (#147892) test(discord): compact lifecycle matrices (#147855) fix(agents): use exact model rows for harness support (#147849) test(agents): compact embedded lifecycle matrices (#147856) test(agents): compact embedded admission matrices (#147853) test(cli): compact node management matrices (#147854) feat(artifacts): select assistant-delivered files by run (#147682) improve: reduce event-loop work when recording prompts (#147876) fix: preserve readable generated image and video filenames (#147833) fix(ci): skip SDK rendering for identical revisions (#147572) fix: prevent false process failures and stalled background waits (#147871) fix(ui): restore live updates when retrying chat history (#147865) fix(ui): preserve text and image order in assistant replies (#147731) refactor(qa-lab): reuse approval result formatter (#147867) ...
Co-authored-by: Peter Steinberger <[email protected]>
Related: #146197
What Problem This Solves
Browser dashboard cleanup repeatedly decodes all tracked tabs when it only needs to recheck one known tab.
User Impact
Dashboard lifetime checks fetch the selected tab directly, preserving current ownership checks and UI behavior. Unrelated malformed stored rows no longer block these selected-tab rechecks; discovery still reports them. Selected corrupt JSON still fails, with the diagnostic operation now labeled
lookup.Why This Change Was Made
Six existing identity-specific rechecks pass their captured key through the same record and key validator. Discovery, cleanup claims, conditional writes and current-authority assertions remain unchanged. No migration or operator action is required.
Evidence