Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/server/src/mcp/McpHttpServer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,9 @@ it.effect("hides tools for links and refuses another environment while the beta
failureMode: "return",
}),
);
const settingsContext = yield* Layer.build(ServerSettings.layerTest());
const settingsContext = yield* Layer.build(
ServerSettings.layerTest({ linkedEnvironmentsEnabled: false }),
);
const settings = Context.get(settingsContext, ServerSettings.ServerSettingsService);
const serverLayer = McpHttpServer.layerMcpTransport(
McpHttpServer.toolkitRegistration(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4817,7 +4817,7 @@ it.effect.each([
yield* resumeSecondThread;
assert.equal((yield* Ref.get(state)).resumeCount, ++resumeCount);
// regression: #26722 a Linked environments change reloads only the idle thread's tools.
yield* settings.updateSettings({ linkedEnvironmentsEnabled: true });
yield* settings.updateSettings({ linkedEnvironmentsEnabled: false });
yield* resumeSecondThread;
assert.equal((yield* Ref.get(state)).resumeCount, ++resumeCount);
assert.deepEqual((yield* Ref.get(state)).unloadedNativeThreadIds, ["native-thread"]);
Expand Down Expand Up @@ -5534,7 +5534,7 @@ it.effect(
assert.equal((yield* Ref.get(state)).openCount, 1);

// regression: #26722 an exclusive runtime configures MCP at open, so it reopens.
yield* settings.updateSettings({ linkedEnvironmentsEnabled: true });
yield* settings.updateSettings({ linkedEnvironmentsEnabled: false });
yield* manager.open({
threadId: firstThreadId,
providerSessionId,
Expand Down
5 changes: 4 additions & 1 deletion apps/server/src/provider/ModelManifest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,10 @@ const layerService = (input: {
}) =>
ServerConfig.layerTest(process.cwd(), { prefix: input.prefix }).pipe(
Layer.provideMerge(NodeServices.layer),
Layer.provideMerge(ServerSettings.layerTest(input.settings ?? {})),
// Fetching follows provider update checks, which Closura builds turn off by default.
Layer.provideMerge(
ServerSettings.layerTest({ enableProviderUpdateChecks: true, ...input.settings }),
),
Layer.provideMerge(layerHttpClient(input.response)),
);

Expand Down
2 changes: 1 addition & 1 deletion docs/user/outside-agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ app (MCP)**, or use the button in **Settings → Sharing & access**. Pick the
app and follow the step for that app. Assistants like
Poke and Claude run in the cloud, so the wizard first asks you to sign in to T3
Connect and turn it on for the environment. To reach your other machines through
the same connection, turn on **Linked environments** in Labs and
the same connection, keep **Linked environments** on in Labs and
[link them](./remote-access.md#link-another-environment).

When the app opens the sign-in page, choose what it may do and approve with your
Expand Down
10 changes: 5 additions & 5 deletions docs/user/remote-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@ Link two machines, such as your laptop and a VPS, and agents on one can work on
the other: launch, message, wait on and stop its threads, answer their
questions, and manage its queues, projects and scheduled tasks.

Linked environments is a beta. Turn it on for both machines in **Settings →
Labs**; on mobile, **Settings → Labs** lists each connected machine. While it is
off on either machine, agents start nothing over a link between them. A task
already running on the other machine still finishes, and if that machine has it
off, its result arrives once it is back on.
Linked environments is a beta, on by default in Closura builds. It needs to be on
for both machines in **Settings → Labs**; on mobile, **Settings → Labs** lists
each connected machine. While it is off on either machine, agents start nothing
over a link between them. A task already running on the other machine still
finishes, and if that machine has it off, its result arrives once it is back on.

On the machine you will work from, open **Settings → Environments → Linked environments**,
choose **Link**, and pick the other machine or enter its address. The list
Expand Down
3 changes: 2 additions & 1 deletion docs/user/updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ provider at the same CLI.
After a successful provider CLI update, T3 Code refreshes model discovery for
every enabled instance of that provider using its own configuration. Connected
clients receive the refreshed catalogs automatically. Provider update checks
must be enabled to download the latest T3 Code model catalog.
must be enabled to download the latest T3 Code model catalog. Closura builds turn
them off by default; turn them on in **Settings → Maintenance**.

Provider updates do not restart running chats. An existing session can keep
using the previous CLI until it ends. If discovery fails, check the provider
Expand Down
10 changes: 7 additions & 3 deletions packages/contracts/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,10 @@ export const ServerSettings = Schema.Struct({
responseStreamingMode: ResponseStreamingMode.pipe(
Schema.withDecodingDefault(Effect.succeed("paragraph" as const)),
),
enableProviderUpdateChecks: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(true))),
// Closura: provider CLIs are pinned by the fleet, so stock update checks only add noise.
enableProviderUpdateChecks: Schema.Boolean.pipe(
Schema.withDecodingDefault(Effect.succeed(false)),
),
continueThreadsAfterServerUpdate: Schema.Boolean.pipe(
Schema.withDecodingDefault(Effect.succeed(true)),
),
Expand Down Expand Up @@ -1480,9 +1483,10 @@ export const ServerSettings = Schema.Struct({
guestSharingEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(false))),
/**
* Beta: links to the user's other machines, both ways. Off refuses new links, calls over links
* and tasks on another machine; tasks already running there finish.
* and tasks on another machine; tasks already running there finish. On by default in Closura
* builds: every fleet machine links to the others.
*/
linkedEnvironmentsEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(false))),
linkedEnvironmentsEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(true))),
/** Beta: Claude and Codex predict the next prompt after completed turns. Codex follows a change at once; open Claude threads after they restart. */
promptSuggestionsEnabled: Schema.Boolean.pipe(Schema.withDecodingDefault(Effect.succeed(false))),
sidebarAutoSettleKeepPullRequests: Schema.Boolean.pipe(
Expand Down
Loading