Repository navigation
Description
Note
Filed by Claude Code (Haiku 5.5) at the request of the reporter. The reproduction and root cause were checked with unit tests on main.
Before submitting
- I searched existing issues and did not find a duplicate. The closest is [Bug]: With agent browser/device access off, the agent still sees every preview_* and device_* tool #17202, which quotes the same denial message but reports the opposite symptom (tools visible while access is off).
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Keep "Agent browser access" on globally (the default).
- In Settings, turn "Agent browser access" on for one project, so that project has a per-project browser override. Leave a second project with no browser override.
- Start a Claude Agent thread in the second project.
- Ask the agent to call
preview_statusorpreview_open.
Expected behavior
The second project has no override, so it inherits the global setting (on). The preview tools work.
Actual behavior
Every preview call fails at once:
MCP credential does not grant the preview capability: browser preview tools are off for this thread. Do not retry them. To check a page, use a headless browser from the shell, such as Playwright, or curl. The user can turn on "Agent browser access" in Settings; it applies when the agent session next starts.
Suspected cause: ProviderSessionManager.agentAccessSettings (apps/server/src/orchestration-v2/ProviderSessionManager.ts) sees a browser override anywhere on the server, so it looks up the thread's project through Effect.serviceOption(ProjectService). layerProduction in apps/server/src/orchestration-v2/runtimeLayer.ts does not supply ProjectService to the session manager, so the lookup returns None and the code takes the fail-closed branch. Every thread is denied, including threads that inherit the global "on".
Reproduced at main e78f580 with a local, uncommitted unit test that builds RuntimeLayer.layerProduction:
FAIL production MCP policy inherits enabled access with an unrelated project override
AssertionError: expected false to equal true
FAIL production MCP policy honors a project opt-in with an unrelated project override
AssertionError: expected false to equal true
A local change that provides layerProjectService to the whole production layer group makes all five policy cases pass. It has not been pushed or opened as a PR.
Impact
Major degradation or frequent failure
Version or commit
main @ e78f580 for the test and root cause. The version of the desktop build the reporter runs is not known.
Environment
Linux (Omarchy 4.0.6). Provider: Claude Agent. The agent reports the denial in several threads and projects.
Logs or stack traces
The denial appears as the tool_use_result of every mcp__t3-code__preview_* call in the affected threads, starting 09:57 on 2026-10-21 and continuing through the day.
Workaround
Remove the per-project "Agent browser access" override from every project that has one. Without any browser override left, the server uses the global setting. This follows from reading the code. It has not been confirmed in the Settings UI.
Related
- [Bug]: With agent browser/device access off, the agent still sees every preview_* and device_* tool #17202: same denial message and setting, opposite symptom.
Activity
L-Blondy commentedon Oct 23, 2026
Additional evidence from
t3 triageon 2026-10-23: the same denial occurs with the Codex provider on macOS, including in a fresh thread whose own project explicitly enables browser access.Environment
0.1.3-nightly.20261023.3566, verified against the live server version endpoint.24.6.0.0.1.3-nightly.20261023.3566.v0.1.3-nightly.20261023.3566, commit807319c276c6831b2c219640e9da5b38019a8f1d.Observed behavior and evidence
projectSettingsOverrides[projectId].enableAgentBrowserAccessistrue. Its legacyprojectAgentBrowserAccessOverrides[projectId]is alsotrue. The global field is omitted and defaults totruein this release.preview_status({})denied about 32 seconds after a fresh thread was created, at 11:23:50 UTC. Another thread in the same project contains three equivalentpreview_opendenials.Expected: the enabled project policy permits preview calls. Actual:
Diagnosis and limits
This confirms an enabled-policy/authorization mismatch and strongly matches this issue. In the inspected release,
ProviderSessionManagercapturesProjectServiceas an optional dependency; when browser overrides exist, a failed project lookup takes thebrowser: falsepath before applying the override. Credential creation then omits the preview capability.There is some
ProjectServiceprovisioning in the release's main runtime branch, so the precise live dependency-construction cause remains an inference. This investigation did not inspect the live service context or independently rebuild the production layer in a test. The persisted denial and saved settings are confirmed; the proposed wiring explanation is not independently proven here.Tool visibility despite denied authorization also overlaps #17202. No settings or source changes were made, and the override-removal workaround was not tested. No raw logs, credentials, private URLs, or thread/project identifiers are included here.
Investigated using
t3 triage --agent codex: OpenAI Codex CLI0.164.0, modelgpt-6-astra, medium reasoning effort (verified from the triage session metadata). Comment prepared and posted at the reporter's request by Codex in T3 Code, modelgpt-6.1-sol, high reasoning effort.smirea commentedon Oct 23, 2026
Note
Written by Claude Code (Fable 5.1) at the reporter's request, from a live investigation on the reporter's machine.
The same defect also denies the device tools, with a different message, and the override-removal workaround is confirmed to work.
Environment
0.1.2(stable, not nightly), macOS arm64, Darwin 27.0.0.expo-device-hub 0.15.3andagent-device 0.21.25installed and reported as running.enableDeviceSupport: true,enableAgentDeviceAccess: trueglobally, plus one project withprojectSettingsOverrides[<id>].enableAgentDeviceAccess: true(set through the Settings UI; the row showed the reset arrow). No browser overrides anywhere.Observed
Every fresh thread in that same project, including a brand-new probe thread started after both toggles were on and both tools installed, got:
from
mcp__t3-code__device_listanddevice_open. That isrequireDeviceAccessmapping the missingdevicecapability inapps/server(requireThreadMcpCapability("device")).Evidence that the project lookup never runs
In
server.trace.ndjson, theProviderSessionManagerV2.agentAccessSettingsspan for the probe thread's session open has exactly two children,serverSettings.materializeSettingsSecretsandProjectionStore.getThread, and noProjectService.getByIdchild, even though a device override exists. The siblingMcpSessionRegistry.issuethen mints a credential withoutdevice. That matches theserviceOption(ProjectService)→None→ fail-closed branch described above, now seen on the device path (deviceOverridden ? false : ...).Workaround confirmed
Deleting
enableAgentDeviceAccessfromprojectSettingsOverrides[<id>]insettings.json(global toggle left on) was picked up by the settings watcher without a restart. A fresh probe thread in the same project then got a fulldevice_listresult (local host ready, both tools at required versions, simulators listed). Existing sessions keep their old credential, so only new sessions recover.Suggestion for #23116
Since
agentAccessSettingsresolves browser and device in the same call, the fix there should cover this too. It may be worth adding a device-override case to the new production-layer regression so the device path is pinned as well.test(server): reproduce project browser access lost in production run…
cmdl-dev commentedon Nov 3, 2026
Still present on stable 0.1.6 (Linux x64, systemd
t3code.serviceinstall, with the 0.1.6 macOS desktop app as the client).main@ 61c3794 has the sameagentAccessSettingsbranch, so the nightlies are affected too.Settings: global
enableAgentBrowserAccess: false, with project overrides set totrueon two projects. Fresh threads in one of the projects whose override is on (Claude Agent and Codex) are denied withMCP credential does not grant the preview capabilityon their firstpreview_*call.Trace evidence: every
ProviderSessionManagerV2.agentAccessSettingsspan has only aProjectionStore.getThreadchild, never aProjectService.getByIdchild, thoughProjectService.getByIdspans do appear elsewhere in the same trace file. That fitsprojectServiceresolving toNoneinside the session manager and taking the fail-closed branch.Workaround until #23116 lands: clear every project-level browser override and set the global toggle to the value you want.
Written by Claude Code (Opus 5.5) via
t3 triage.Givdul commentedon Nov 3, 2026
Still present on nightly
0.1.7-nightly.20261103.4106(tag commite1e520c; macOS arm64, desktop app, local server version checked from the triage context). It also affects threads that agents start, not only top-level threads.Source at that tag:
ProviderSessionManager.ts:342still callsEffect.serviceOption(ProjectService).runtimeLayer.ts:133still buildslayerProviderSessionManagerProvidedwithoutlayerProjectService.Settings: global
enableAgentBrowserAccessunset (defaulttrue). One project hadprojectSettingsOverrides[<id>].enableAgentBrowserAccess: trueandenableAgentDeviceAccess: true.Probes: each is a fresh
delegate_taskchild callingpreview_open.Children started with
t3_thread_launchwere denied the same way. In this install, nopreview_*call has succeeded since 2026-11-02 12:08Z.Trace: every
ProviderSessionManagerV2.agentAccessSettingsspan lasts about 0.4 ms, exitsSuccess, and has only aProjectionStore.getThreadchild.Impact: the denial message suggests a shell browser such as Playwright. Affected agents therefore silently installed and ran Playwright, while the Settings UI showed browser access enabled. The cost is more than failed checks: the user's machine ends up running a browser stack they never chose.
Workaround confirmed: remove the browser and device keys from
projectSettingsOverrides[<id>]and the entry fromprojectAgentBrowserAccessOverrides. New sessions getpreviewright away. #23116 looks like the fix and is still waiting for review.Investigated following the
t3 triageplaybook (triage CLI0.1.7-nightly.20261103.4106). Written by Claude Code (Opus 5.5) in T3 Code at the reporter's request.paulcatamio commentedon Nov 8, 2026
Confirming the workaround works on nightly
0.1.8-nightly.20261108.4380(Linux, WSL2, Claude Agent).The global setting was unset (default on), and one project had a browser override set to on.
preview_openwas denied withMCP credential does not grant the preview capability, even though Settings showed Agent browser access as on.Clicking Reset it on the project override in Settings > Browser cleared the problem. New threads can use preview again. As others noted, the thread that was already running keeps its old credential.
Written by Claude Code at the request of the reporter of this comment.
zicochaos commentedon Nov 12, 2026
Still present on nightly
0.1.10-nightly.20261112.4580(Linux x64, systemdt3code.service), and on0.1.8-nightly.20261107.4301. We reproduced it with throwaway servers on both versions.Our use case is the opposite direction: we wanted to turn agent browser and device access off for a few projects (
falseoverrides) and keep the global default for everything else. As soon as onefalseoverride exists, every new session on the server loses that capability, including fresh projects and projects with an explicittrueoverride. Overriding only device access takes device access away from all sessions too. Removing every override restores access.At
40526f9the branch is inProviderSessionManager.agentAccessSettings(apps/server/src/orchestration-v2/ProviderSessionManager.ts:423-451). With any override present it looks the thread's project up throughprojectService. In our runs that lookup returnedOption.none(), so the session took the fail-closed path (browser: false,device: false) instead of reachingresolveProjectSettings. It looks like the project service layer is not provided to the session manager. Providing it should letresolveProjectSettingsapply the per-project value.