The prompt for showing a file carried the model's own string, so an encoded address or a run of dot segments read as another name, and nothing was remembered for a file at all. The server now resolves the input before it asks: the prompt names the workspace file that opens, says which link led to it when one did, and always is kept for that file, so no other spelling of it asks again and none stands for another file. A link that points elsewhere by the time the answer comes is refused.
The server took a file named only .html for a page, which the desktop shows in the file panel, so tabs.open failed for want of a tab. A workspace address whose scheme or session ID was not in lower case named nothing, though the prefix it is compared with is written in lower case.
The server checks the path as it did for preview and sends the desktop the same preview action (navigate.path to move an existing tab). The permission check names the called operation and preview, so a deny of the old name still stops the path forms.
The browser skill still told the model about [browser.disconnected] for a session with no desktop, where the tools now throw [browser.not_attached] and tabs.list answers calmly; it now describes both. A comment still named the removed grace period, two connection helpers had no caller left, and the automation's configured-rules merge gets a line saying why it does not read hook denies.
Conflict in chromium.ts reload(): keep the held-restore retry from browser-ext-fix and drop the second navigation interrupt, as browser-deep-snapshot does: every reload now arrives through execute, which interrupts once, and a second interrupt would skip a hard reload of a held restore.
Confirmation review, the gap I reported. If the browser plugin was
removed (plugins: ["-opencode.browser"]) after a crash left a grant,
the grant's skill "browser" allow outranked a person's deny or ask on
their own skill named browser. Nothing sweeps a grant once the plugin
is gone.
The skill rule was not needed. The experimental.rules hook already
hides the built-in skill while the session holds no browser grant or
its agent is denied the browser. Allowed agents get the skill from
their own rules: the default agent rules allow "*".
Now:
- An attachment writes only browser "*" allow (BrowserMachine.GRANT).
- isGrant still matches the old skill allow. A revoke, the
reconcile on attach and the startup sweep therefore remove grants
written by earlier versions. The configured rules the hooks read
still leave that allow out.
- The hook checks for the browser grant itself (holdsGrant), so a
leftover skill allow does not count as attached.
- With no skill rule in any grant, the evaluate hook's skill branch
and the hook's "configured skill deny" check are removed. Core's
own rules decide every skill. A configured skill deny or ask is
final again.
Tests:
- grant fixtures drop the skill rule. The startup-sweep test uses the
old two-rule grant and still revokes it.
- A machine test: an old grant is revoked in full and replaced with
the new one.
- The truth table and skill tests pass unchanged: with no skill rule
in the grant, the built-in skill is listed and loads for an allowed
agent with a desktop, and is hidden otherwise.
- New: with the plugin removed, a person's deny on their own browser
skill holds against a grant left behind. An old-version grant there
still outranks it, and the test pins that as the remaining case.
Review finding L1, and the browser plugin moves to the deny-only hook.
The attachment's grant includes skill "browser" allow. It is the last
rule, so with skill "*": deny or ask and a desktop attached, the
built-in browser skill was listed and loaded without a prompt. This
was already the case at 9e20e99a4f.
A person's own skill named browser replaces the built-in (ConfigSkill
loads later). Before, it was hidden whenever no desktop was attached,
because of the agent-level default deny. It was also hidden whenever
the agent was denied the browser, even with an explicit skill allow.
Now:
- The agent-level default deny covers only browser "*". The skill
deny moves to the experimental.rules hook.
- The hook pushes a skill "browser" deny in two cases:
- the configured rules (agent, then session without the grant)
deny that skill;
- the registered browser skill is the built-in one (its path is
skill://browser/SKILL.md) and the session has no grant, or the
agent is denied the whole browser.
A person's own skill is denied only by their own rules.
- If the skill list cannot be read, the hook treats the skill as the
built-in one, so it hides the skill rather than shows it.
- The evaluate hook gets a branch for skill "browser": a configured
ask prompts despite the grant, unless the same save key was saved
before. This works as the ask for browser operations does.
- The browser deny is now event.deny.push({ action: "browser",
resource: "*" }) under the same condition as before. Call outcomes
for browser operations do not change. For an agent denied the
browser, a scheduled check's preflight now fails with core's
"Permission denied: browser" message instead of the plugin's
"[browser.denied] ...".
Tests (browser-permission.test.ts), review finding L3:
- A row pins the tool.use policy gap as it is today: listed, and
calls refused with "Blocked by configuration policy".
- With the plugin removed by "-opencode.browser" and a grant left in
the session, nothing is registered or listed.
- skill "*": deny hides the skill and the read tool refuses it.
skill browser: ask lists it and prompts.
- The read tool refuses the skill to an agent denied the browser.
- A person's own browser skill with an explicit allow stays listed
while the agent is denied the browser, attached or not.
- A scheduled code check runs the browser for an allowed agent and
refuses one denied the browser.
With the plugin's experimental.rules hook skipped, 12 of the 45 tests
in the file fail:
- the 7 that failed before;
- 2 no-desktop rows, whose skill hiding is now in the hook;
- the 3 new skill and scheduled-check tests.
When a desktop attaches, the plugin appends a session grant (browser
"*" allow, skill "browser" allow). The grant is evaluated after every
agent rule. The PR's permission.evaluate hook already refused the
calls of an agent whose configured rules deny the browser. But
Tool.snapshot still saw the grant last and listed about 45 browser
tools, plus the browser skill, to that agent. For agents without Code
Mode, such as explore, these tools were listed as direct tools.
Now an experimental.rules hook appends browser "*" deny and skill
"browser" deny after the session rules, but only when
deniesAll("browser") holds for the rules the evaluate hook already
uses: the agent's configured rules (config and agent definition,
before the plugin's default deny) followed by the session's rules
without the grant.
Calls do not change. If deniesAll holds, every browser operation is
already refused: the last rule that matches the action has resource
"*", so it is the rule that decides every operation. Core now refuses
the call itself, and refuse() still runs first in the tool and keeps
the "[browser.denied]" message. The only new refusal is reading the
browser skill (skill:// read) for such an agent. Before, the grant
allowed it.
Listing becomes:
- A configured or agent-level browser deny, or "*" deny: not listed.
This covers the tools, the Code Mode catalog and search, the skill,
and direct tools.
- ask, a deny of some operations or a pattern, or a deny followed by
an allow of one operation: listed, and decided per call as before.
- No desktop attached: not listed (the default deny), as before.
- Agent rules override global rules because they come later.
Subagents lose the inherited grant at their first prompt.
Startup sweeps stale grants. These rules are unchanged.
Each step calls SessionContext.select, so an agent switch, a session
rule change, a config reload, or an attach or detach updates the
listing on the next step. The Code Mode catalog cache is keyed by the
set of visible tool names.
Tests (browser-permission.test.ts) run the real plugin, permission
service and SessionContext:
- A 13-row truth table checks listing (catalog, skill, direct tools)
against the outcomes of tabs.list and tabs.open.
- Code Mode catalog, search and tools for a denied agent.
- Agent switch, session rule, config reload, and detach and re-attach
between steps.
- Subagents, including explore attached directly.
With the hook disabled, 7 of these tests fail.
locate returned the file's real path. In a workspace reached through a link, as macOS's tmpdir under /private is, that path lies outside the workspace's spelling: preview asked again for it, and the tool sent the desktop a ../../private path. It now names the physical file under the workspace as the session spells it and asks only when a link inside the workspace points elsewhere in it.
alert, confirm, prompt, Leave site? and HTTP sign-in show as a tab-scoped app dialog over the page; permission requests show as a bar above it. Only the window answers; the agent shares the dialog gate (first answer wins) and gets sign_in_required for a sign-in. Kept permission decisions are listed in Settings > Browser.