Skip to content

fix(browse): stop faking extension runtime messaging - #2953

Closed
garrytan wants to merge 1 commit into
mainfrom
capy/fix-browse-stealth-runtime-apis
Closed

garrytan wants to merge 1 commit into
mainfrom
capy/fix-browse-stealth-runtime-apis

Conversation

@garrytan

Copy link
Copy Markdown
Owner

The bug

On pages without an installed extension, the stealth fallback invented callable chrome.runtime.connect and sendMessage functions. A site could mistake those stubs for a real extension and take an extension-only path that then throws. No specific SaaS login recovery is claimed from this synthetic reproduction.

The fix

Omit fabricated messaging methods from the fallback runtime while leaving a browser’s real existing extension APIs intact. The regressions compare stock Chromium with default stealth on a synthetic site and exercise an actual temporary MV3 extension to verify its native messaging functions survive.

Validation

  • Current main (06ed920a): pinned build and headed Chromium preflight passed; 55 focused tests passed.
  • Complete free suite: 25,507 pass, 0 fail, 59 skip across 1,010 files; both full shard logs copied and checksummed, source unchanged.
  • PR-profile live actors: browse-basic, browse-snapshot, and diagram-triplet executed and passed with zero skips. The selected browse/SKILL.md reference judge reuses a previously passing result after its complete 17,809-byte request, model, and rubric matched byte-for-byte; it was not resampled.
  • Complete staged diff: credential scan 0 high, 0 medium; independent review found no actionable defect.

The tests do not verify a production SaaS login, shipped gstack/GBrowser extension integration, or native macOS/Windows behavior. The dependent displayless-handoff repair will be a separate follow-up PR on this branch.

Open in Capy

@trunk-io

trunk-io Bot commented Sep 24, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS

3/3 recorded final results passed | 3 executed, 0 reused | $.24 total cost | reconcile exit: 0

Profile: pr / pr; selected behaviors: 3, judges: 1. Deferred to scheduled/release coverage: 14 behaviors and 0 changed prompt files. Deferred checks did not run and receive no PR-pass credit.

Shard Result Executed Reused Status Cost
e2e-browse/skill-e2e-bws 2/2 2 0 ✅ $0.22
llm-judge/skill-llm-eval 1/1 1 0 ✅ $0.02
Fail-closed reconciliation
[test:paid] report: 6/6 slices, 3 planned shards, tier=gate
[test:paid] coverage: profile=pr mode=pr; selected E2E=3, judges=1
[test:paid] deferred: 14 broad behaviors, 0 changed prompts without quick live coverage; these are not PR passes
  slice 1  passed             14s  test/skill-llm-eval.test.ts
  slice 2  passed             50s  test/skill-e2e-bws.test.ts
  slice 3  passed             31s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 3 executed, 0 reused; 3 passed, 0 failed (3 attempt records from 2 collectors)
[test:paid] report: every planned shard accounted and passed

Sliced lane: declared PR profile or broad fallback via scripts/test-paid-shards.ts (planner → 6 executors → fail-closed report). Reused scores retain their original provenance and expiry.

@capy-ai

capy-ai Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Superseded by #2959, the single integrated 14-family reliability-wave PR requested by Garry. This branch and its validation evidence are retained; no merge occurred.

@capy-ai capy-ai Bot closed this Sep 24, 2026
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