Skip to content

fix(browser): a credential-fill sign-in keeps the page readable - #775

Merged
lukemaj merged 2 commits into
mainfrom
fix/772-login-page-visible
Nov 18, 2026
Merged

lukemaj merged 2 commits into
mainfrom
fix/772-login-page-visible

Conversation

@lukemaj

@lukemaj lukemaj commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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_login is 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 approved 6a75e82 rebased onto current main (9af8bf3) with one mechanical conflict. Independent review passed on 6a75e82 (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:

Each round closed the reported leaks and the next round found new ones in the same machinery (lazy release, release races, group splits, entity tables); the bottleneck is the attempt to let agents keep reading a page that holds a secret, not any single bug.

Nothing in the requirement says the agent must read the login page while secrets are in it.

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-fill entry in docs/fork-features.md, the user guide docs/user/browser-import.md and docs/user/browser.md, the tool description, and a superseding note on #557.

How it works now

  • Deleted: the per-profile login state, the read refusals (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, the endLogin operation and preview_end_login tool, ServerBrowserContexts.closeContext, the login watch-termination reason and the cookie copy's login_in_progress refusal.
  • preview_end_login is 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 item browser-login-passkey-prompt that describes the old flow is the planner's follow-up outside this repository.
  • Kept: https only, the registrable-domain origin check before and after the vault read, the value typed and dropped, refusals with a fixed reason and no page data, the value-free audit line, server-browser-only fills, and linked callers refused the destination's vault.
  • Fill results carry no page URL. With the page readable, the generic tool icon would have attached the live page URL to the fill result; a page that copies a typed value into its URL would have put it in the result. fillCredential now joins the operations that return without that icon, so the result holds only vault data.
  • Masking: snapshots already mask password fields and CSS-masked text on every page (DOTTED_SCRIPT in ServerBrowserPage.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 with preview_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 on origin/main 59484ac7ca0; the tests below ran on the same tree before the rebase, which only brought in an unrelated webResearch fix).

  • New real-browser test 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, the totp fill and Verify finish on /signed in the same tab, and that tab is the only session.
  • New mocked test 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.
  • Failing before: with this branch's tests and origin/main (2f1594ce545) source, both new tests fail with PreviewCredentialError loginInProgress; with the fix both pass.
  • Kept real-browser tests: desktop tab refuses a fill, later fill names the vault host, MCP CallToolResult and audit line carry no value (this caught the tool-icon URL above), overlapping fill's refusal writes no page origin.

Commands and results:

CHROMERIA_TEST_CHROMIUM=<pinned chrome> pnpm exec vp test run apps/server/src/preview apps/server/src/mcp/toolkits/preview apps/server/src/mcp/McpHttpServer.test.ts apps/server/src/mcp/PreviewAutomationBroker.test.ts packages/contracts/src/settings.test.ts packages/shared/src/t3McpToolPresentation.test.ts
Test Files  31 passed | 1 skipped (32)
     Tests  559 passed | 6 skipped (565)   (run also included AgentContextBudget.test.ts)

CHROMERIA_TEST_CHROMIUM=<pinned chrome> pnpm exec vp run check:changed
pass: format, lint, knip 1/2, knip 2/2, graphql, typecheck (37 packages), test (12 files: 385 passed | 4 skipped)

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:changed run failed on formatting, an unused isBrowserControlInterrupted and AgentContextBudget.test.ts (mcpToolListJsonBytes 256349 → 254313, the removed tool); all three are fixed in this commit.

Upstream: pingdotgg/t3code has no credential fill (no code hits on upstream/main, no matching PRs or Issues), so there is nothing to port.

Review

  • Round 1 on 6e72153: pass with three non-blocking findings (comment). All fixed in 6a75e82: expectNoSecret also checks the JSON-escaped password; the sign-in test asserts exactly one password POST carrying the vault password and that /signed received the vault code; the dead profileKey bookkeeping is deleted.
  • Round 2 on 6a75e82: pass, no findings (comment); review/independent=success.
  • Rebased to 6fead37 on origin/main 9af8bf374e: only agentContextBudget.json conflicted (mcpToolListJsonBytes: main's 257980 minus the same 2,036 bytes = 255944, confirmed by AgentContextBudget.test.ts); git range-diff shows no other change.
  • Proof on 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 and fork-check.sh OK.

Evals

The preview_fill_credential description changed and preview_end_login was removed, so per the fork guide's eval scope the affected fork-owned cases are the three login-import cases (their mocks no longer list preview_end_login). They were not run: they are paid model runs, and the evals README says the user decides how a login-import run is paid. Running them, three samples each, needs the user's approval.

Elon record

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

  • Live sign-in on a real site (forbidden for this task; the local test page stands in).
  • The affected evals (paid; needs approval).
  • Merge, install and deployment (need the user's approval).

Model and harness: Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L labels Nov 17, 2026
@lukemaj

lukemaj commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

What: Independent review round 1 passes exact head 6e7215341531225470963619d86e9a30890c2b01, with three non-blocking findings.
Why: The change removes the superseded login read block while retaining fill-result secrecy, origin checks, authorization and existing password masking; no blocking regression was found.
So what: The author can address the optional cleanup and proof improvements below; this review does not claim tests were independently run or authorize delivery.

Base reviewed: 59484ac7ca085845409ceef93b0f9274ba4eec65. Read-only review of the Issue #772 and PR briefs, complete diff, relevant consumers, #557 history and PR #561. I did not author this change.

Findings, ranked

  1. P3, non-blocking: the new snapshot secrecy assertion has a false-negative oracle. apps/server/src/preview/CredentialLogin.integration.test.ts:359 calls expectNoSecret, whose implementation at lines 59-70 serializes the snapshot and then searches for the raw PASSWORD. That sentinel contains a double quote, which JSON escapes, so a snapshot containing the literal password can evade that comparison; URL decoding does not undo JSON escaping. Compare individual string leaves with the sentinel, or include its JSON-escaped representation. This is a test weakness, not evidence of a password leak: ServerBrowserPage.ts masking is unchanged and the existing lower-layer test at ServerBrowserPage.test.ts:399 checks dotted fields directly.

  2. P3, non-blocking: the sign-in fixture proves navigation rather than credential acceptance. apps/server/src/preview/CredentialLogin.integration.test.ts:113 advances after any password request, and /signed at line 142 returns success without checking the submitted code. The new test correctly exercises one password POST, readable passkey failure, TOTP invocation and same-tab completion, but would still navigate successfully with an incorrect code. Validate the two submitted bodies before advancing if this test is to prove successful authentication. The permissive final endpoint also existed on base.

  3. P3, non-blocking: obsolete profile identity bookkeeping survives the deletion. apps/server/src/preview/ServerBrowser.ts:1428 still computes profileKey; the field at line 452, adopted-page shape at line 806 and popup copy at line 2215 only store or propagate it. The quarantine was its behavioral consumer. These remaining declarations and assignments can be deleted without replacing them.

Requested risk checks

  • Historical protection: feat(preview): fill login forms from rbw without exposing the secret to agents #557's redesign and feat(preview): agents fill logins from an rbw vault without seeing the values #561 describe protection of typed vault values and page echoes across profile read paths. The cookie-export refusal was tied to that same login state. No independent protection for unrelated cookies, tokens or other agents' sessions was found. Existing cookie host selection, profile validation and caller authorization remain.
  • Result secrecy: fillCredential still returns the fixed {filled,item,field,site,tabId} shape. Its fixed refusals and audit remain value-free. The handlers.ts:124 early return is necessary: it prevents the generic tool icon from appending a live page URL containing a copied credential. Snapshot password masking remains in ServerBrowserPage.ts; raw script reads and page-visible echoes are explicitly described in the updated user guide and are within the accepted removal of the read block.
  • Authorization and sequencing: authorizedOperation retains the final grant check. SessionControl.action authorizes after queue admission, observing reads authorize before execution, and beforeTyping: authorize retains the check immediately before the write. Removed profile draining, recording exclusion, result rechecks and error suppression served the removed quarantine. No unrelated change in authority was found.
  • Removal and mixed versions: removing preview_end_login is reasonable for the current callers and approved alternative. It was server-only; web, mobile and desktop have no remaining caller or login-state consumer. Linked environments forward MCP calls rather than registering an older server's operation array with this broker, and older linked failures retain their destination error text. Removed optional status fields do not make old/new status payloads incompatible. No reachable blocking mixed-version failure from the removed reason literals was established by source inspection. Old environments retain their old login behavior until upgraded; this is not runtime verification of mixed versions.
  • References and surfaces: searched server, contracts, web, mobile, desktop, shared/client-runtime, agent guidance, evals and docs for the removed identifiers and blind-login guidance. No executable login block or obsolete end-login reference remains; the dead profileKey state above is the cleanup exception. Docs accurately describe continued reads and same-tab use. Eval mocks remove the retired tool; the paid evals remain unrun.
  • Test faithfulness: both new tests reach the broker snapshot path after a successful fill; base's executeTabOperation rejects that path with loginInProgress. Thus their claimed failing-before mechanism is credible by source inspection, but I did not reproduce the reported runs. The real-browser test covers the passkey-error and alternate-code sequence without a real account.

Proof limits and verdict

No tests, servers, sign-ins, repository edits, commits or pushes were performed. Suggested verification, not run: the two changed credential suites plus ServerBrowserPage.test.ts for readable flow and masking, and a base/head linked-environment matrix for status and legacy login/watch refusals. The PR's runtime and CI claims remain reported evidence, not independently reproduced evidence.

Verdict: PASS. No blocking finding remains.

Elon record:

  • Requirements and who asked: user, fix(browser): stop hiding the page during a credential-fill login #772 and this review brief: keep credential-fill pages readable, keep fill results value-free, inspect history and compatibility.
  • Deleted: rejected any requirement to preserve the superseded quarantine; identified its leftover profile bookkeeping rather than proposing replacement machinery.
  • Bottleneck: agents could not observe the site's next authentication prompt.
  • Checked myself: Issue/PR briefs and historical rationale, exact-head diff, authorization and result paths, masking tests, linked forwarding and cross-surface references; no runtime execution permitted.

Review: GPT-6.1-sol through Codex in T3 Code, with a read-only delegated reviewer cross-check.

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.4 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 186.2 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 45.8 KiB 45.8 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 45.8 KiB 45.8 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 188.1 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 46.4 KiB 46.4 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 46.4 KiB 46.4 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: 9af8bf3 · PR result: 6fead37 · Source CI: success

Scenario and decoded snapshot size

10 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.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

lukemaj added a commit that referenced this pull request Nov 17, 2026
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>
@lukemaj

lukemaj commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

What: Independent review round 2 passes exact head 6a75e823700391839db0a237f5653594bf125da6.
Why: The complete PR meets the approved readable-login behavior, and all three round 1 findings are addressed.
So what: This comment records the findings for a review/independent success status on that SHA; this review does not establish merge or deployment readiness.

Reviewed the whole PR against base 59484ac7ca085845409ceef93b0f9274ba4eec65, plus the 6e72153..6a75e82 delta, Issue #772, the 2026-10-19 planner redesign on #557, and PR #561. The independent reviewer did not author the change. Findings below are relayed from the delegated independent review.

Ranked findings: None. No blocking or nonblocking actionable defect found.

Round 1 resolutions verified:

  • CredentialLogin.integration.test.ts:63: including JSON.stringify(PASSWORD).slice(1, -1) closes the identified false-negative when searching serialized snapshots for the password sentinel.
  • CredentialLogin.integration.test.ts:381–405: assertions now require exactly one password POST with the complete form-encoded vault password, followed by /signed with code=826493. Although the fixture endpoints remain permissive, incorrect submitted credentials now fail the test’s independent assertions.
  • ServerBrowser.ts: the removed profileKey declarations and assignments had no behavioral consumer at round 1 head. Popup context adoption, profileId, opener identity and isolated-context handling remain; no needed profile behavior was removed.

Whole-PR risk checks:

  • The historical quarantine protected typed vault values and their page copies across read paths. I found no separate protection requirement for unrelated cookies, tokens or sessions. Removing its cookie-copy refusal does not remove host selection, profile validation or caller authorization.
  • Fill results retain the fixed value-free shape. handlers.ts:124 prevents a live page URL from being attached as a tool icon. HTTPS/domain checks, fixed refusals, audit behavior, server-only filling and destination-vault restrictions remain.
  • Queue admission, execution authorization, the check immediately before typing and final response authorization remain. Removed draining and result rechecks served the superseded quarantine.
  • Existing password/CSS-masked snapshot handling is unchanged. Screenshots retain browser-rendered masking. Page-visible echoes and explicit script reads are within the documented, approved removal of the read block.
  • The strengthened integration test still encounters base’s intended failure: its first snapshot after filling at line 365 reaches executeTabOperation’s loginInProgress refusal on base. The later POST assertions do not change that failing-before mechanism.
  • Removed login identifiers have no remaining executable consumers in the searched server, contracts, clients, shared packages, docs or evals. The eval delta removes only retired preview_end_login mocks.

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: success on 6a75e823700391839db0a237f5653594bf125da6.

lukemaj added a commit that referenced this pull request Nov 18, 2026
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>
@lukemaj
lukemaj force-pushed the fix/772-login-page-visible branch from 6a75e82 to 8f822e6 Compare November 18, 2026 10:07
@lukemaj

lukemaj commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

What: Rebased the PR's two commits (6e72153, 6a75e82) from old base 59484ac onto current main aa6604053c; new head 8f822e6.
Why: The nightly absorption rebuilt main with consolidation commits, so the branch conflicted.
So what: No code changed beyond one regenerated number; the new head has no review/independent status yet, and merging still needs the user's approval.

Conflict resolution

  • Only apps/server/src/provider/agentContextBudget.json conflicted. mcpToolListJsonBytes is a measured byte count: new main has 258042, the PR removes the same 2,036 bytes (preview_end_login), so it is now 256006. AgentContextBudget.test.ts passes with that value.
  • git range-diff 59484ac..6a75e82 origin/main..8f822e6: commit 1 differs only in that number; commit 2 is identical (=).
  • No reference to the removed identifiers (preview_end_login, endLogin, loginInProgress, login_in_progress, closeContext) was reintroduced by new main.

Checks on 8f822e6 (rocky, local)

  • bash scripts/fork-check.sh --upstream upstream: fork-check: OK.; node scripts/fork-features.mjs check: OK (67 features).
  • vp run check:changed: format, lint, knip, graphql, typecheck (42 packages) pass; test step 6 failed of 416, all environmental and not caused by this PR:
    • 3 need Playwright's headless shell, which is not installed on rocky (Executable doesn't exist ... chromium_headless_shell-1248). CI installs it.
    • 4 ServerBrowser.test.ts tests (manager-opened agent tabs retain authorization and capacity admission, authorization refusal after acquiring {desktop,context,cdp} ...) time out at 120 s; they time out identically on unmodified origin/main aa6604053c on this machine.
  • With the pinned Chrome for Testing 157.0.8103.78: CredentialLogin.integration.test.ts 5/5 pass, including a sign-in stays readable from the password through a one-time code step; ServerBrowser.test.ts -t "fill leaves its tab" passes; ServerLoginCookies, PageSubscriptions.integration, mcp/toolkits/preview, PreviewAutomationBroker, AgentContextBudget pass. ServerBrowserPage.test.ts masking tests were skipped locally (Playwright browser missing); CI runs them.

Rebase by Claude Opus 5.5 in Claude Code (T3 Code).

lukemaj and others added 2 commits November 18, 2026 11:08
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>
@lukemaj
lukemaj force-pushed the fix/772-login-page-visible branch from 8f822e6 to 6fead37 Compare November 18, 2026 10:09
@lukemaj

lukemaj commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

What: main moved to 9af8bf374e (#765, #763) during the checks above, so the two commits were rebased again; new head 6fead37.
Why: The PR conflicted again on the same measured number.
So what: Same mechanical resolution, no code change; the new head has no review/independent status, and merging needs the user's approval.

  • Conflict: agentContextBudget.json only; mcpToolListJsonBytes = 257980 − 2,036 = 255944. git range-diff: commit 1 differs only in that number, commit 2 identical. The new main commits share no other file with this PR besides docs/fork-features.md, which merged cleanly.
  • On 6fead37: fork-check: OK., fork-features: OK (67 features), apps/server typecheck exit 0; with pinned Chrome 157.0.8103.78, AgentContextBudget, CredentialLogin.integration, ServerLoginCookies, mcp/toolkits/preview, PreviewAutomationBroker: 7 files, 51 tests passed. The earlier full check:changed on 8f822e6 stands for format/lint/knip.

@lukemaj

lukemaj commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Independent review on rebased head 6fead377720e42f0d57757a682300d2c3281e17f (relayed unchanged; GPT-6.1 Sol via Prism, read-only): approve. All 21 non-budget files keep the approved edits; second commit unchanged; budget correct (257980 - 2036 = 255944); intervening main changes do not conflict with credential filling, login-state removal, tool descriptions or password masking. P3 nonblocking: docs/user/browser-import.md:54 still says profiles in a login are refused (predates the rebase; follow-up). Note: fill results stay value-free and password fields stay masked, but page echoes and explicit script reads are allowed, as documented at browser-import.md:115.

@lukemaj
lukemaj merged commit e2c5d6d into main Nov 18, 2026
34 checks passed
@lukemaj
lukemaj deleted the fix/772-login-page-visible branch November 18, 2026 10:20
lukemaj added a commit that referenced this pull request Nov 18, 2026
#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>
lukemaj added a commit that referenced this pull request Nov 18, 2026
… 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(browser): stop hiding the page during a credential-fill login

1 participant