GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(server): let users withhold browser access from agents by juliusmarminge · Pull Request #7083 · pingdotgg/t3code

feat(server): let users withhold browser access from agents #7083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
juliusmarminge merged 4 commits into main from browser-agent-access
Aug 17, 2026
+293 −25
Merged

feat(server): let users withhold browser access from agents #7083

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit Hold shift + click to select a range
5e93541
feat(server): let users withhold browser access from agents
juliusmarminge Aug 15, 2026
9989fdf
test(server): cover the agent browser access gate
juliusmarminge Aug 15, 2026
324e3be
fix(server): revoke the MCP credential when agent browser access is w…
juliusmarminge Aug 16, 2026
0d31f11
fix(web): include agent browser access in Restore defaults
juliusmarminge Aug 17, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Next Next commit
feat(server): let users withhold browser access from agents
Agents could always drive the preview browser, with no way to say no. Adds
Settings → Integrations → Browser → Agent browser access, on by default.

Turning it off withholds the MCP credential in `prepareMcpSession`. That is
the only place a credential is minted and the `/mcp` endpoint accepts nothing
else, so one branch covers all five providers and any external MCP client —
every adapter already treats a missing session as "no MCP server".

The Codex developer instructions describing `preview_*` drop out with the
tools. That is derived from the session's actual MCP configuration via the
existing `hasConfiguredMcpServer`, not from a second read of the setting, so
the prompt cannot describe tools the turn doesn't have. Leaving the text in
would be worse than saying nothing: it steers the model away from Playwright
and agent-browser, so it would talk the agent out of its only remaining
browser automation.

An unreadable settings file denies rather than propagating the error, which
would mean adding ServerSettingsError to a union every caller handles. Denying
is the safe direction: an explicit "off" silently becoming "on" would violate
the user's choice, while the reverse costs one toolset and is visible at once.

The toggle applies to sessions started from then on; a running agent keeps the
tools it was given, which the UI states rather than implying otherwise.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge @claude
juliusmarminge and claude committed Aug 17, 2026
commit 5e93541498f3e8c172bba6ad54b2ac742d625705

There are no files selected for viewing

32 changes: 26 additions & 6 deletions 32 apps/server/src/provider/CodexDeveloperInstructions.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,19 @@ For browser work, first call \`preview_status\`. If no automation-capable previe
Do not switch to global browser skills, Chrome, Node REPL browser automation, standalone Playwright, or agent-browser merely because the preview is initially closed or a first call fails. Use an alternative browser system only when the T3 preview tools are absent, the user explicitly requests another browser, or \`preview_open\` returns an explicit unsupported/unavailable error. A failed T3 preview tool call should be inspected and retried with corrected arguments when the error is actionable.
`;

export const CODEX_PLAN_MODE_DEVELOPER_INSTRUCTIONS = `<collaboration_mode># Plan Mode (Conversational)
/**
* The browser block is omitted entirely when the preview tools aren't attached.
* Describing `preview_*` tools that aren't in the turn's tool list would be
* worse than saying nothing: the instructions actively steer the model away
* from Playwright and agent-browser, so leaving them in would talk it out of
* the only browser automation it still has.
*/
const browserToolInstructions = (browserToolsAvailable: boolean): string =>
browserToolsAvailable ? T3_CODE_BROWSER_TOOL_INSTRUCTIONS : "";

export const codexPlanModeDeveloperInstructions = (
browserToolsAvailable: boolean,
): string => `<collaboration_mode># Plan Mode (Conversational)

You work in 3 phases, and you should *chat your way* to a great plan before finalizing it. A great plan is very detailed-intent- and implementation-wise-so that it can be handed to another engineer or agent to be implemented right away. It must be **decision complete**, where the implementer does not need to make any decisions.

Expand Down Expand Up @@ -139,10 +151,12 @@ Do not ask "should I proceed?" in the final output. The user can easily switch o
Only produce at most one \`<proposed_plan>\` block per turn, and only when you are presenting a complete spec.

If the user stays in Plan mode and asks for revisions after a prior \`<proposed_plan>\`, any new \`<proposed_plan>\` must be a complete replacement. If the user indicates that the prior plan is not acceptable but does not provide enough information to produce a complete replacement, address the concern and continue planning without producing a \`<proposed_plan>\` block. If the follow-up neither requires changes nor calls the plan into question (e.g. clarifying question), answer it before the block, then reproduce the prior \`<proposed_plan>\` unchanged.
${T3_CODE_BROWSER_TOOL_INSTRUCTIONS}
${browserToolInstructions(browserToolsAvailable)}
</collaboration_mode>`;

export const CODEX_DEFAULT_MODE_DEVELOPER_INSTRUCTIONS = `<collaboration_mode># Collaboration Mode: Default
export const codexDefaultModeDeveloperInstructions = (
browserToolsAvailable: boolean,
): string => `<collaboration_mode># Collaboration Mode: Default

You are now in Default mode. Any previous instructions for other modes (e.g. Plan mode) are no longer active.

Expand All @@ -153,7 +167,7 @@ Your active mode changes only when new developer instructions with a different \
Use the \`request_user_input\` tool only when it is listed in the available tools for this turn.

In Default mode, strongly prefer making reasonable assumptions and executing the user's request rather than stopping to ask questions. If you absolutely must ask a question because the answer cannot be discovered from local context and a reasonable assumption would be risky, ask the user directly with a concise plain-text question. Never write a multiple choice question as a textual assistant message.
${T3_CODE_BROWSER_TOOL_INSTRUCTIONS}
${browserToolInstructions(browserToolsAvailable)}
</collaboration_mode>`;

export interface CodexRuntimeInfo {
Expand All @@ -169,11 +183,17 @@ function toSingleLine(value: string): string {
export function buildCodexDeveloperInstructions(
interactionMode: ProviderInteractionMode,
runtime: CodexRuntimeInfo,
/**
* Whether the `t3-code` MCP server is attached to this turn. Callers derive
* it from the session's actual MCP configuration rather than re-reading the
* setting, so the prompt cannot claim tools the turn doesn't have.
*/
browserToolsAvailable = true,
): string {
const base =
interactionMode === "plan"
? CODEX_PLAN_MODE_DEVELOPER_INSTRUCTIONS
: CODEX_DEFAULT_MODE_DEVELOPER_INSTRUCTIONS;
? codexPlanModeDeveloperInstructions(browserToolsAvailable)
: codexDefaultModeDeveloperInstructions(browserToolsAvailable);
return `${base}

<runtime_info>In case you're asked: you are running in T3 Code through the Codex harness, as ${toSingleLine(runtime.model)} with ${toSingleLine(runtime.reasoningEffort)} reasoning effort. No need to mention this otherwise.</runtime_info>`;
Expand Down
38 changes: 32 additions & 6 deletions 38 apps/server/src/provider/Layers/CodexSessionRuntime.test.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import * as EffectCodexSchema from "effect-codex-app-server/schema";

import {
buildCodexDeveloperInstructions,
CODEX_DEFAULT_MODE_DEVELOPER_INSTRUCTIONS,
CODEX_PLAN_MODE_DEVELOPER_INSTRUCTIONS,
codexDefaultModeDeveloperInstructions,
codexPlanModeDeveloperInstructions,
} from "../CodexDeveloperInstructions.ts";
import { codexSessionAppServerArgs } from "./codexLaunchArgs.ts";
import {
Expand Down Expand Up @@ -255,7 +255,7 @@ describe("buildCodexDeveloperInstructions", () => {
reasoningEffort: "high",
});

NodeAssert.ok(instructions.startsWith(CODEX_DEFAULT_MODE_DEVELOPER_INSTRUCTIONS));
NodeAssert.ok(instructions.startsWith(codexDefaultModeDeveloperInstructions(true)));
NodeAssert.match(instructions, /T3 Code/);
NodeAssert.match(instructions, /Codex harness/);
NodeAssert.match(instructions, /as gpt-5\.3-codex with high reasoning effort/);
Expand All @@ -267,7 +267,7 @@ describe("buildCodexDeveloperInstructions", () => {
reasoningEffort: "medium",
});

NodeAssert.ok(instructions.startsWith(CODEX_PLAN_MODE_DEVELOPER_INSTRUCTIONS));
NodeAssert.ok(instructions.startsWith(codexPlanModeDeveloperInstructions(true)));
NodeAssert.match(instructions, /as gpt-5\.3-codex with medium reasoning effort/);
});

Expand Down Expand Up @@ -298,15 +298,41 @@ describe("buildCodexDeveloperInstructions", () => {
describe("T3 browser developer instructions", () => {
it("prefers the product-native preview tools in both collaboration modes", () => {
for (const instructions of [
CODEX_DEFAULT_MODE_DEVELOPER_INSTRUCTIONS,
CODEX_PLAN_MODE_DEVELOPER_INSTRUCTIONS,
codexDefaultModeDeveloperInstructions(true),
codexPlanModeDeveloperInstructions(true),
]) {
NodeAssert.match(instructions, /t3-code/);
NodeAssert.match(instructions, /preview_status/);
NodeAssert.match(instructions, /preview_open/);
NodeAssert.match(instructions, /Do not switch to global browser skills/);
}
});

it("omits the browser block entirely when the preview tools are not attached", () => {
for (const instructions of [
codexDefaultModeDeveloperInstructions(false),
codexPlanModeDeveloperInstructions(false),
]) {
NodeAssert.doesNotMatch(instructions, /preview_status/);
NodeAssert.doesNotMatch(instructions, /preview_open/);
NodeAssert.doesNotMatch(instructions, /T3 Code collaborative browser/);
// Steering away from other browser automation must go with the tools;
// keeping it would leave the model talked out of its only option.
NodeAssert.doesNotMatch(instructions, /Do not switch to global browser skills/);
// The rest of the collaboration mode is untouched.
NodeAssert.match(instructions, /<collaboration_mode>/);
NodeAssert.match(instructions, /<\/collaboration_mode>/);
}
});

it("tracks the turn's MCP configuration rather than defaulting to on", () => {
const runtime = { model: "gpt-5.3-codex", reasoningEffort: "high" };
NodeAssert.match(buildCodexDeveloperInstructions("default", runtime, true), /preview_open/);
NodeAssert.doesNotMatch(
buildCodexDeveloperInstructions("default", runtime, false),
/preview_open/,
);
});
});

describe("hasConfiguredMcpServer", () => {
Expand Down
17 changes: 13 additions & 4 deletions 17 apps/server/src/provider/Layers/CodexSessionRuntime.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ function buildCodexCollaborationMode(input: {
readonly interactionMode?: ProviderInteractionMode;
readonly model?: string;
readonly effort?: EffectCodexSchema.V2TurnStartParams__ReasoningEffort;
readonly browserToolsAvailable?: boolean;
}): EffectCodexSchema.V2TurnStartParams__CollaborationMode | undefined {
if (input.interactionMode === undefined) {
return undefined;
Expand All @@ -351,10 +352,11 @@ function buildCodexCollaborationMode(input: {
settings: {
model,
reasoning_effort: reasoningEffort,
developer_instructions: buildCodexDeveloperInstructions(input.interactionMode, {
model,
reasoningEffort,
}),
developer_instructions: buildCodexDeveloperInstructions(
input.interactionMode,
{ model, reasoningEffort },
input.browserToolsAvailable ?? true,
),
},
};
}
Expand All @@ -371,6 +373,8 @@ export function buildTurnStartParams(input: {
readonly serviceTier?: CodexServiceTier;
readonly effort?: EffectCodexSchema.V2TurnStartParams__ReasoningEffort;
readonly interactionMode?: ProviderInteractionMode;
/** Defaults to true so callers that predate the agent-access gate are unchanged. */
readonly browserToolsAvailable?: boolean;
}): Effect.Effect<
CodexTurnStartParamsWithCollaborationMode,
CodexErrors.CodexAppServerProtocolParseError
Expand All @@ -391,6 +395,7 @@ export function buildTurnStartParams(input: {
...(input.interactionMode ? { interactionMode: input.interactionMode } : {}),
...(input.model ? { model: input.model } : {}),
...(input.effort ? { effort: input.effort } : {}),
browserToolsAvailable: input.browserToolsAvailable ?? true,
});

return decodeCodexTurnStartParamsWithCollaborationMode({
Expand Down Expand Up @@ -1822,6 +1827,10 @@ export const makeCodexSessionRuntime = (
...(input.serviceTier ? { serviceTier: input.serviceTier } : {}),
...(input.effort ? { effort: input.effort } : {}),
...(input.interactionMode ? { interactionMode: input.interactionMode } : {}),
// Derived from the session's own MCP configuration rather than the
// setting, so the prompt describes the tools this turn actually
// has even if the setting changed after the session started.
browserToolsAvailable: hasConfiguredMcpServer(options.appServerArgs),
Comment thread

@macroscopeapp macroscopeapp Bot Aug 17, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium Layers/CodexSessionRuntime.ts:1833

When MCP is configured through launchArgs, the spawned session has the preview_* tools but the generated developer instructions omit them because this check reads only options.appServerArgs. Use the resolved appServerArgs value here.

🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @apps/server/src/provider/Layers/CodexSessionRuntime.ts around line 1833:

When MCP is configured through `launchArgs`, the spawned session has the `preview_*` tools but the generated developer instructions omit them because this check reads only `options.appServerArgs`. Use the resolved `appServerArgs` value here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
});
const rawResponse = yield* client.raw.request("turn/start", params);
const response = yield* decodeV2TurnStartResponse(rawResponse).pipe(
Expand Down
51 changes: 44 additions & 7 deletions 51 apps/server/src/provider/Layers/ProviderService.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import * as ProviderEventLoggers from "./ProviderEventLoggers.ts";
import * as AnalyticsService from "../../telemetry/AnalyticsService.ts";
import * as McpProviderSession from "../../mcp/McpProviderSession.ts";
import * as McpSessionRegistry from "../../mcp/McpSessionRegistry.ts";
import * as ServerSettings from "../../serverSettings.ts";
const isModelSelection = Schema.is(ModelSelection);

/**
Expand Down Expand Up @@ -215,16 +216,52 @@ const makeProviderService = Effect.fn("makeProviderService")(function* (

const registry = yield* ProviderAdapterRegistry.ProviderAdapterRegistry;
const directory = yield* ProviderSessionDirectory.ProviderSessionDirectory;
const serverSettings = yield* ServerSettings.ServerSettingsService;
const runtimeEventPubSub = yield* PubSub.unbounded<ProviderRuntimeEvent>();
const nowIso = Effect.map(DateTime.now, DateTime.formatIso);
/**
* Attach the `t3-code` MCP server to the session that is about to start.
*
* This is the only place a credential is minted, so withholding one here is
* what disables agent browser access everywhere: every adapter already
* treats a missing session as "no MCP server", and the `/mcp` endpoint
* accepts nothing but tokens issued from this path.
*/
/**
* Deny on an unreadable settings file rather than letting the read failure
* escape: adding `ServerSettingsError` to `ProviderServiceError` would widen
* a union every caller handles, for a branch that only decides whether one
* optional toolset is attached. Denying is the safe direction — an explicit
* "off" silently becoming "on" would violate the user's stated choice,
* whereas the reverse costs an agent one toolset and is visible immediately.
*/
const agentBrowserAccessEnabled = serverSettings.getSettings.pipe(
Effect.map((settings) => settings.enableAgentBrowserAccess),
Effect.catch((cause) =>
Effect.logWarning(
"Could not read server settings; withholding agent browser access for this session.",
{ cause },
).pipe(Effect.as(false)),
),
);

const prepareMcpSession = (threadId: ThreadId, providerInstanceId: ProviderInstanceId) =>
McpSessionRegistry.issueActiveMcpCredential({ threadId, providerInstanceId }).pipe(
Effect.tap((credential) =>
credential
? Effect.sync(() => McpProviderSession.setMcpProviderSession(credential.config))
: Effect.void,
),
);
Effect.gen(function* () {
if (!(yield* agentBrowserAccessEnabled)) {
Comment thread

@macroscopeapp macroscopeapp Bot Aug 15, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a backend behavior change (a session may now start with no MCP credential, and a stale provider session is cleared), but the only new tests cover prompt text in CodexSessionRuntime.test.ts. Consider adding a focused test in ProviderService.test.ts using ServerSettings.ServerSettingsService.layerTest({ enableAgentBrowserAccess: false }) asserting that startSession issues no credential and clears the thread's MCP provider session, plus the enabled counterpart — the existing suite already wires a test settings layer, so it is a small addition.

Posted via Macroscope — Effect Service Conventions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
// A stale session from before the toggle flipped would otherwise keep
// its tools for the rest of its life.
yield* Effect.sync(() => McpProviderSession.clearMcpProviderSession(threadId));
Comment thread
macroscopeapp[bot] marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

return undefined;
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

}
const credential = yield* McpSessionRegistry.issueActiveMcpCredential({
threadId,
providerInstanceId,
});
if (credential) {
yield* Effect.sync(() => McpProviderSession.setMcpProviderSession(credential.config));
}
return credential;
});
const clearMcpSession = (threadId: ThreadId) =>
McpSessionRegistry.revokeActiveMcpThread(threadId).pipe(
Effect.tap(() => Effect.sync(() => McpProviderSession.clearMcpProviderSession(threadId))),
Expand Down
48 changes: 47 additions & 1 deletion 48 apps/web/src/components/settings/IntegrationsSettings.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
DEFAULT_BROWSER_AUTO_SHOW_FLOATING_PREVIEW,
DEFAULT_BROWSER_VIEWPORT,
DEFAULT_PREVIEW_APPEARANCE,
DEFAULT_UNIFIED_SETTINGS,
DEFAULT_PREVIEW_ZOOM_FACTOR,
FILL_PREVIEW_VIEWPORT,
PREVIEW_VIEWPORT_MAX_AREA,
Expand Down Expand Up @@ -39,7 +40,11 @@ import {
} from "../ui/select";
import { Switch } from "../ui/switch";
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { useClientSettings, useUpdatePrimarySettings } from "~/hooks/useSettings";
import {
useClientSettings,
usePrimarySettings,
useUpdatePrimarySettings,
} from "~/hooks/useSettings";

import {
SettingResetButton,
Expand Down Expand Up @@ -350,6 +355,44 @@ function BrowserAppearanceSetting({ disabled }: { readonly disabled: boolean })
);
}

function AgentBrowserAccessSetting() {
const settings = usePrimarySettings();
const updateSettings = useUpdatePrimarySettings();

return (
<SettingsRow
{...searchableSetting("agent-browser-access")}
description="Let agents open and drive the preview browser. When off, the browser tools and the instructions describing them are withheld from agent sessions. Your own browser panel is unaffected."
status={
settings.enableAgentBrowserAccess
? undefined
: "Applies to sessions started from now on; a running agent keeps the tools it was given."
}
resetAction={
settings.enableAgentBrowserAccess !== DEFAULT_UNIFIED_SETTINGS.enableAgentBrowserAccess ? (
<SettingResetButton
label="agent browser access"
onClick={() =>
updateSettings({
enableAgentBrowserAccess: DEFAULT_UNIFIED_SETTINGS.enableAgentBrowserAccess,
})
}
/>
) : null
Comment thread
cursor[bot] marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

}
Comment thread
Comment on lines +371 to +382

@macroscopeapp macroscopeapp Bot Aug 17, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This row offers a per-setting reset, but enableAgentBrowserAccess isn't part of the page-level Restore defaults flow. getChangedBrowserSettingLabels (SettingsPanels.logic.ts) and the restoreDefaults patch (SettingsPanels.tsx) cover the four browser client defaults in this same section but not this toggle, so "Restore defaults" leaves agent access off and never mentions it in the confirmation dialog — inconsistent with every other reset-able row here.

Smallest fix: add enableAgentBrowserAccess to the changed-label list (e.g. "Agent browser access", plus the memo dependency) and to the updateSettings({ ... }) restore patch. If bulk restore should deliberately not re-grant agent access, a one-line comment stating that would keep the exception intentional.

Posted via Macroscope — UI Consistency

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
control={
<Switch
checked={settings.enableAgentBrowserAccess}
onCheckedChange={(checked) =>
updateSettings({ enableAgentBrowserAccess: Boolean(checked) })
}
aria-label="Allow agent browser access"
/>
}
/>
);
}

function BrowserAutoShowFloatingPreviewSetting({ disabled }: { readonly disabled: boolean }) {
const autoShow = useClientSettings((settings) => settings.browserAutoShowFloatingPreview);
const updateSettings = useUpdatePrimarySettings();
Expand Down Expand Up @@ -425,6 +468,9 @@ export function IntegrationsSettingsPanel() {
return (
<SettingsPageContainer>
<SettingsSection id="browser" title="Browser">
{/* Server-authoritative, so it stays editable on every client and sits
outside the block covering the desktop-only defaults. */}
<AgentBrowserAccessSetting />
{previewDefaultsDisabled ? (
<DesktopOnlyBrowserDefaults>{previewDefaults}</DesktopOnlyBrowserDefaults>
) : (
Expand Down
6 changes: 6 additions & 0 deletions 6 apps/web/src/components/settings/settingsSearch.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ export const SETTINGS_SEARCH_ITEMS = [
title: "Providers",
to: "/settings/providers",
},
{
id: "agent-browser-access",
title: "Agent browser access",
to: "/settings/integrations",
targetId: "browser",
},
{
id: "browser-default-viewport",
title: "Default browser viewport",
Expand Down
13 changes: 13 additions & 0 deletions 13 packages/contracts/src/settings.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,18 @@ export const ServerSettings = Schema.Struct({
Schema.withDecodingDefault(Effect.succeed(false)),
),
enableProviderUpdateChecks: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(true))),
/**
* Whether agents may drive the in-app preview browser. Turning this off
* withholds the MCP credential, so the `t3-code` server (and with it every
* `preview_*` tool) is never attached to a provider session, and the prompt
* text describing those tools is dropped along with them. The user's own
* browser panel is unaffected — this gates agent access only.
*
* Server-authoritative rather than client-local: tool injection and prompt
* construction both happen on the server, and the answer must not differ
* between a desktop window and a phone attached to the same server.
*/
enableAgentBrowserAccess: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(true))),
backgroundActivity: BackgroundActivitySettings,
// Legacy flat fields retained for old settings files and old clients. New
// consumers should resolve `backgroundActivity` instead.
Expand Down Expand Up @@ -747,6 +759,7 @@ export const ServerSettingsPatch = Schema.Struct({
// Server settings
enableLegacyTokenStreaming: Schema.optionalKey(Schema.Boolean),
enableProviderUpdateChecks: Schema.optionalKey(Schema.Boolean),
enableAgentBrowserAccess: Schema.optionalKey(Schema.Boolean),
backgroundActivity: Schema.optionalKey(
Schema.Struct({
schemaVersion: Schema.optionalKey(Schema.Literal(1)),
Expand Down
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.
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.