Repository navigation
fix(browser): a credential-fill sign-in keeps the page readable - #775
Conversation
|
What: Independent review round 1 passes exact head Base reviewed: Findings, ranked
Requested risk checks
Proof limits and verdictNo tests, servers, sign-ins, repository edits, commits or pushes were performed. Suggested verification, not run: the two changed credential suites plus Verdict: PASS. No blocking finding remains. Elon record:
Review: GPT-6.1-sol through Codex in T3 Code, with a read-only delegated reviewer cross-check. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Other scenariosAll 64 scenario measurements match All 64 scenario measurements
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Review round 1 on #775 found profileKey only stored and copied once the login state was gone, and the new test's secret check missing the JSON-escaped password and accepting any submitted code. Delete profileKey; check the escaped form, the password POST body and the submitted code. Model and harness: Claude Opus 5.5 in Claude Code (T3 Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
What: Independent review round 2 passes exact head Reviewed the whole PR against base Ranked findings: None. No blocking or nonblocking actionable defect found. Round 1 resolutions verified:
Whole-PR risk checks:
Verification limits: Static review only. No tests, servers, sign-ins or repository mutations were performed. Changed files read from the worktree were verified byte-for-byte against the exact head. Author-reported test and check results were not independently reproduced; screenshot appearance, real-site behavior, mixed-version runtime behavior and paid evals remain unverified by this review. Verdict: PASS. Status: |
Review round 1 on #775 found profileKey only stored and copied once the login state was gone, and the new test's secret check missing the JSON-escaped password and accepting any submitted code. Delete profileKey; check the escaped form, the password POST body and the submitted code. Model and harness: Claude Opus 5.5 in Claude Code (T3 Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6a75e82 to
8f822e6
Compare
|
What: Rebased the PR's two commits ( Conflict resolution
Checks on
|
The login read block hid every tab of the browser profile after preview_fill_credential until preview_end_login closed the browser, so an agent could not see a passkey error or "Try another way" and resubmitted the password blindly (#772). The user decided on 2026-11-17 to stop hiding the page. Delete the per-profile login state and everything built on it: read refusals, masked session state, the result recheck loop, the fill and recording exclusion, preview_end_login and the endLogin operation, ServerBrowserContexts.closeContext, the login watch reason and the cookie copy's login refusal. Fill results still carry only vault data, now without the live page URL in their tool icon. Snapshots keep masking password fields. Closes #772 Model and harness: Claude Opus 5.5 in Claude Code (T3 Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round 1 on #775 found profileKey only stored and copied once the login state was gone, and the new test's secret check missing the JSON-escaped password and accepting any submitted code. Delete profileKey; check the escaped form, the password POST body and the submitted code. Model and harness: Claude Opus 5.5 in Claude Code (T3 Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8f822e6 to
6fead37
Compare
|
What:
|
|
Independent review on rebased head |
#775 removed the login gate, so the registry entry's purpose drops "tabs in a login". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… file (#802) * feat(server): agents save a value shown in a browser tab to a private file A computer-use agent could see a key on a dashboard but had no way to move it into a file: the server browser denies the clipboard and shares none with the host, so it asked the user to paste the key instead. preview_save_secret reads one located element in a server browser tab (an input's value, or an element's visible text) after checking its own frame is https, and writes it through SecretRequests.saveCaptured to a fresh 0600 file in the private files directory that the 24-hour sweep already clears, now including abandoned .partial files. The tool returns only the path, length and tab. Desktop-hosted tabs, non-https frames, Playwright protocol logging and calls forwarded from a linked environment are refused with fixed messages, and every Playwright failure on the path is replaced before the timeline, broker or logs see it. Closes #799 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(fork): preview-save-secret no longer claims a login refusal #775 removed the login gate, so the registry entry's purpose drops "tabs in a login". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(evals): fork secrets cases may cite a toolboxmd/chromeria Issue The secrets source rule accepted only review findings and pingdotgg/t3code Issues, so secret-browser-key-to-file, which cites the fork Issue by URL, failed run.test.ts. The case now cites #799 and the rule accepts that form. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(server): snapshot and evaluate point agents at preview_save_secret The paid eval of secret-browser-key-to-file failed 0/3: agents load preview tools by name, never loaded preview_save_secret, and read the revealed key with preview_evaluate or a snapshot. One sentence in each of those two descriptions names the tool; the rerun passed 3/3. The tool list grows by 200 bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
What changed: A credential-fill sign-in no longer hides the page. After
preview_fill_credential, snapshots, screenshots, URL, title,preview_wait_for, clicks and typing keep working in that tab and every other tab of the profile, for every agent, and the sign-in finishes in the tab where it started.preview_end_loginis removed.Why: On 2026-11-17 the read block left an agent blind to Stripe's passkey error and "Try another way" link, so it submitted the password four times and gave up (#772). Lukasz decided the same day: "No hiding of the page."
So what: Head is
6fead37: the approved6a75e82rebased onto currentmain(9af8bf3) with one mechanical conflict. Independent review passed on6a75e82(round 2); merging and deploying need the user's approval.Closes #772.
What the block protected, and why it goes
The read block came from the planner's redesign of #557 (comment of 2026-10-19, issuecomment-6278773329), shipped in PR #561. Its stated reason:
So it protected one thing: the typed vault values (username, password, one-time code) and any copy a page made of them, in snapshots, page text, scripts, URLs, titles, console, recordings and cookie exports, across the whole profile until the browser closed. It did not protect anything else: the session cookies were usable by every agent after
preview_end_login, and the guard in the cookie copy (login_in_progress) existed only to keep those same values from being exported mid-login. The user's decision on #772 supersedes that reason: sites mask password fields, a leaked password is reported and changed, and two-step verification means a password alone signs no one in.Records updated in this change: the
preview-credential-fillentry indocs/fork-features.md, the user guidedocs/user/browser-import.mdanddocs/user/browser.md, the tool description, and a superseding note on #557.How it works now
loginInProgress), the masked "Login in progress" session state and status fields, the popup URL suppression, the result recheck loop, the fill/recording exclusion and wait, theendLoginoperation andpreview_end_logintool,ServerBrowserContexts.closeContext, theloginwatch-termination reason and the cookie copy'slogin_in_progressrefusal.preview_end_loginis removed, not kept as a no-op. Its only callers were its own handler, tests and eval mocks; there is no client UI. A no-op would keep a tool, contract literal and presentation entry whose only job is to do nothing, and the tool list shrinks by 2,036 bytes (agentContextBudget.json). The Great Library itembrowser-login-passkey-promptthat describes the old flow is the planner's follow-up outside this repository.fillCredentialnow joins the operations that return without that icon, so the result holds only vault data.DOTTED_SCRIPTinServerBrowserPage.ts); nothing here changes that. The user guide now states what is not hidden: values the page itself shows, a value a site copies into its URL or title, and a field read withpreview_evaluate.Proof
Run on bestia in this worktree against the pinned Chrome for Testing 157.0.8103.78, with fresh test profiles; no real site, vault item or live T3 state was used. Commit
6e72153(rebased onorigin/main59484ac7ca0; the tests below ran on the same tree before the rebase, which only brought in an unrelatedwebResearchfix).a sign-in stays readable from the password through a one-time code step(CredentialLogin.integration.test.ts): a local test page asks for the password, then shows "This passkey can't be used on this device." with "Try another way", then a one-time-code step. It asserts the fill result is exactly{filled, item, field, site, tabId}, a snapshot right after the fill reads the page with the password masked, another agent's tab in the same profile snapshots normally, the error text is in a snapshot after one password POST, status shows the error page's URL and title, thetotpfill and Verify finish on/signedin the same tab, and that tab is the only session.a fill leaves its tab and related tabs readable and returns no value(ServerBrowser.test.ts): status, snapshot and evaluate work in the filled tab and its popup; the fill result holds no value.origin/main(2f1594ce545) source, both new tests fail withPreviewCredentialErrorloginInProgress; with the fix both pass.CallToolResultand audit line carry no value (this caught the tool-icon URL above), overlapping fill's refusal writes no page origin.Commands and results:
node scripts/fork-features.mjs check:fork-features: OK (66 features).bash scripts/fork-check.sh --upstream upstream:fork-check: OK.(both after the rebase).The first
check:changedrun failed on formatting, an unusedisBrowserControlInterruptedandAgentContextBudget.test.ts(mcpToolListJsonBytes256349 → 254313, the removed tool); all three are fixed in this commit.Upstream:
pingdotgg/t3codehas no credential fill (no code hits onupstream/main, no matching PRs or Issues), so there is nothing to port.Review
6e72153: pass with three non-blocking findings (comment). All fixed in6a75e82:expectNoSecretalso checks the JSON-escaped password; the sign-in test asserts exactly one password POST carrying the vault password and that/signedreceived the vault code; the deadprofileKeybookkeeping is deleted.6a75e82: pass, no findings (comment);review/independent=success.6fead37onorigin/main9af8bf374e: onlyagentContextBudget.jsonconflicted (mcpToolListJsonBytes: main's 257980 minus the same 2,036 bytes = 255944, confirmed byAgentContextBudget.test.ts);git range-diffshows no other change.6a75e82:CHROMERIA_TEST_CHROMIUM=<pinned chrome> pnpm exec vp test run apps/server/src/preview apps/server/src/mcp/toolkits/preview: 26 files passed, 1 skipped; 445 tests passed, 6 skipped. Server typecheck, lint, format andfork-check.shOK.Evals
The
preview_fill_credentialdescription changed andpreview_end_loginwas removed, so per the fork guide's eval scope the affected fork-owned cases are the threelogin-importcases (their mocks no longer listpreview_end_login). They were not run: they are paid model runs, and the evals README says the user decides how alogin-importrun is paid. Running them, three samples each, needs the user's approval.Elon record
preview_end_login,closeContext, the result recheck loop, the fill/recording exclusion, theloginInProgressandlogincontract literals and fields, and the cookie copy's login refusal. Not added: passkey support, bot-check solving, a no-op compatibility tool.origin/mainwithloginInProgressand passing here; the MCP result test catching the page URL in the fill's tool icon.Website impact: none; Chromeria has no product website. The user guide sections are the documentation change. No version bump: the repository forbids bumps (
AGENTS.md, Pull requests).Not done
Model and harness: Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code