Skip to content

Harden resident target bootstrap - #2464

Open
miguelg719 wants to merge 4 commits into
feat/resident-transportfrom
feat/resident-target-safety
Open

Harden resident target bootstrap#2464
miguelg719 wants to merge 4 commits into
feat/resident-transportfrom
feat/resident-target-safety

Conversation

@miguelg719

@miguelg719 miguelg719 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add V3Context connection/disconnection hooks needed by the resident coordinator
  • restrict initial and future auto-attachment to supported web targets
  • defer broad page instrumentation until stagehand.init
  • safely resume and detach ignored paused targets
  • coalesce duplicate target attachment attempts and avoid retaining detached OOPIF sessions
  • avoid creating an unsolicited blank page during resident bootstrap

Scope

Stack 3/6, based on the browser-proxy resolver PR. This PR owns V3Context bootstrap and target-safety behavior only; it does not start the resident worker lifecycle.

Review focus

The safety boundary is isSupportedWebTarget plus the initial and future attachment paths in understudy/context.ts. Browser, worker, service-worker, background-page, and unrelated extension targets are excluded.

Validation

  • resident target-safety and V3Context lifecycle tests
  • complete server suite on this branch
  • complete TypeScript/package/rule suite at the stack tip

@changeset-bot

changeset-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5859b7c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@miguelg719
miguelg719 force-pushed the feat/resident-transport branch from ea6badf to f70bdfd Compare July 27, 2026 23:08
@miguelg719
miguelg719 force-pushed the feat/resident-target-safety branch from 66eabdd to 908323a Compare July 27, 2026 23:08
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