Skip to content

fix(preview): serialize concurrent profile clears - #831

Merged
Mjones13 merged 1 commit into
mainfrom
fix/browser-profile-clear-2d8c70e7-20261102
Nov 3, 2026
Merged

Mjones13 merged 1 commit into
mainfrom
fix/browser-profile-clear-2d8c70e7-20261102

Conversation

@Mjones13

@Mjones13 Mjones13 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Concurrent clears of the same Preview browser profile could delete its storage before the original context finished closing. Reuse the existing clear operation so both callers wait for one context close and storage removal.

Ports the focused upstream repair and original regression from T3 Code #23434. The context lifecycle stays in the existing shared owner; boundary records map the retained regression.

Validation: all 10 ServerBrowserContexts tests pass on isolated Linux with Node 26.12.1 and Vite+ 1.4.0; affected server typecheck, changed-file lint/formatting, and strict boundary check pass. The new regression fails on the original implementation for premature deletion. Independent Sol Max review found no issues. No real browser profiles or installed runtime were used.

Implementation: GPT-6.1 Sol (high), Codex harness in Jones Code.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Reuse the in-flight profile clear so concurrent callers wait for the same context closure before storage removal. Port the focused upstream repair and regression from b0410a4 (pingdotgg/t3code#23434), retaining shared context-pool ownership and boundary coverage.

Co-authored-by: Aditya Garud <153842990+yashranaway@users.noreply.github.com>
@Mjones13
Mjones13 merged commit aa8c60e into main Nov 3, 2026
30 checks passed
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