Repository navigation
feat(agents): the owner's phone sends count as the person, and the owner's unattended runs get the browser - #2366
Merged
Merged
Conversation
…ner's unattended runs get the browser A send from the owner's phone holds person once the remote bridge verified the sender in the signed roster (RunOutcome.sentByOwner), and remote turns are no longer unattended. Browser grants are now rooted by scheduled runs (not webhook deliveries), verified phone sends and agent messages, survive a restart by re-rooting from the stored run chain, and a webhook's restriction carries through its tree. The per-turn browser call and time caps and the group chat browser consent are removed.
…n't connect on Windows (#2347)
…rowser # Conflicts: # tests/known-failures.json
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The owner's own phone and unattended runs were treated like strangers:
Change
RunOutcome.sentByOwner), andstartedByPersoncounts aremoterun as the person only when it is set. The source string alone never does. An engine pairing can't reach this send path, and if it did it would not count. Remote turns are no longer unattended (isUnattendedSource,ExecutionPolicyService). Marked agent calls from another computer stay agent calls.scheduleruns, so they are told apart by the occurrence in the run's receipt (webhook:<id>,scheduledReceiptIsWebhook). A schedule run whose occurrence can't be read counts as a webhook's.browser.access.*methods are removed, following feat(browser): thread agents use the sidebar browser without asking, one step at a time, across their own tabs #1858. The Browser panel still opens the tab a thread agent waits for, now throughbrowser.tabRequests.docs/plans/tool-api.md§1.3 and §2.6,docs/agents-workflows-profiles-browser-architecture.md§10.8, and the glossary's "Browser grant".How to review
src/mms/platform/browserTreeGrants.ts: who roots a grant (rootOf,chainStartsHere) and the re-rooting after a restart. This is where the risk is.src/mms/run/approvalRights.ts,RemoteApi.ts,MmsBackend.ts,OrchestratorService.runRemoteTurn,RunEngine(sentByOwner).BrowserSessionManager.authorizeandsignal: the cap removal.MmsBrowserService,registerBrowserMethods.ts,createChatBrowserRuntime.ts,orchestrator/browser/dispatch.ts,BrowserPanel.tsx,ChatWorkspace.tsx.Kept on purpose
gui, and is unchanged.Verification
Tier 5 (auth and permissions, networking). Run on b0aaa5f (master merged in):
node scripts/verify.mjs <35 files> --typecheck all: both typechecks pass; 786 of 789 tests pass. The two known failures fail on master too (Two end-to-end browser tests fail on Windows #2349). The third,threadBrowsers.test.ts"a hold lasts while its window says it is there", is intermittent under load:node scripts/verify.mjs tests/threadBrowsers.test.tspasses on the same tree, and it passed in the earlier full run.node scripts/verify.mjs tests/net/bridge/remote/remote.test.ts tests/botBrowsers.test.ts: passes; its 33 failures are listed and fail on master the same way (Two remote Bridge tests fail on Windows: SIGKILL exit signal and a large thread list timing out #1980, A bot's browser view sometimes takes about 9 s to show its first picture #2239, Bot browser tests fail on Windows after the first one leaves its browser open #2351).tests/mmsPendingRequestLimit.test.ts(it readsbrowser.tabRequestsas a shared read) can't run on Windows: its fake service can't listen on its socket path, on master too (The request limit tests can't connect on Windows #2347).What observes each part of the claim:
person:tests/net/bridge/remote/remote.test.ts(a real v1 phone send recordsoutcome.sentByOwner),composer.test.ts(an engine caller is not passed on as the owner),orchestratorEngineSafety.test.ts(a remote turn without the fact holds nothing), and thestartedByPerson/holdsPersontable inapprovalRights.test.ts.agentDefinitions/shellApproval.test.ts.run/browserTreeGrants.test.ts.browserTreeGrants.test.ts.browserTreeGrants.test.ts.platformBrowserAutomation.test.ts(real Chrome).chatResourcesBrowser.test.ts(real Chrome), and the Browser panel still opens a waiting agent's tab throughbrowser.tabRequests:renderer/browserTabActivity.test.ts,renderer/agentBrowserTab.test.ts,platformBrowserDaemonComposition.test.ts.startedByPersonthe table covers).Notes
ChatBrowserAccess.tsxandBrowserAccessController.ts, which this PR removes. The cross-computer half of this work (other devices' switches, rate caps, read-only remote subagents, folder rules for Full control) is a separate PR.Refs #2202