Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
069132b
fix(acp-registry): refresh stale registry cache so installed agents u…
bedair81 Nov 22, 2026
c772959
fix(acp-registry): refresh stale index when uninstalled and guard col…
bedair81 Nov 22, 2026
b885ae3
Merge remote-tracking branch 'origin/main' into fix/acp-registry-refr…
juliusmarminge Nov 22, 2026
b0c43d6
test(acp-registry): leave binary install to the driver test
juliusmarminge Nov 22, 2026
f0aa4e7
test(acp-registry): share the installed-binary fixture between driver…
juliusmarminge Nov 22, 2026
65d098e
fix(acp-registry): keep cold disk loads lock-free and prefer in-memor…
bedair81 Nov 22, 2026
173e1f5
Merge branch 'main' into fix/acp-registry-refresh-stale-index
bedair81 Nov 22, 2026
bbf5710
fix(acp-registry): make registry refresh non-blocking, backed off, an…
bedair81 Nov 22, 2026
4a82474
fix(mobile): Refresh providers in Settings refetches models like web
juliusmarminge Nov 22, 2026
56c642d
fix(acp-registry): harden refresh backoff, invalidation races, metada…
bedair81 Nov 22, 2026
b13c268
fix(acp-registry): track launch identity, clear stale live state on u…
bedair81 Nov 22, 2026
6d8963a
fix(acp-registry): harden runtime identity, binary receipts, and live…
bedair81 Nov 22, 2026
c7c0ea1
fix(acp-registry): harden binary slots, offline fallback, and coordin…
bedair81 Nov 22, 2026
839ef7b
fix(acp-registry): harden fallback recovery, legacy baselines, and co…
bedair81 Nov 22, 2026
c77ffac
fix(acp-registry): harden fallback state, legacy baselines, archive e…
bedair81 Nov 22, 2026
d7626bc
Merge remote-tracking branch 'origin/main' into fix/acp-registry-refr…
bedair81 Nov 22, 2026
5da35d4
test(acp-registry): fix Effect DateTime and optional-chaining typeche…
bedair81 Nov 22, 2026
1efb73d
fix(acp-registry): harden fallback backoff, broken slot recovery, and…
bedair81 Nov 22, 2026
39133b0
fix(acp-registry): harden baseline recovery, receipt writes, and runt…
bedair81 Nov 22, 2026
19b5767
fix(acp-registry): guard shared tools scans, interruptible fenced loc…
bedair81 Nov 22, 2026
1d7ed70
fix(acp-registry): version launch-option sidecars, scope legacy scans…
bedair81 Nov 22, 2026
10241a2
fix(acp-registry): track probed runtime auth failures, harden sidecar…
bedair81 Nov 22, 2026
58228c5
fix(acp-registry): stamp receipt installId, coordinate sidecar syncs,…
bedair81 Nov 22, 2026
33fe92c
fix(acp-registry): separate pending launch options from committed rev…
bedair81 Nov 22, 2026
52ce3d0
fix(acp-registry): harden logout auth retention, cache invalidation, …
bedair81 Nov 22, 2026
2a9b357
fix(acp-registry): simplify auth rejection handling, preserve pending…
bedair81 Nov 22, 2026
b33706d
fix(acp-registry): harden recovery ordering, atomic auth rejection, a…
bedair81 Nov 22, 2026
58a0eb5
fix(acp-registry): fix sidecar recovery-id chains and refresh auth co…
bedair81 Nov 22, 2026
c105975
fix(acp-registry): retire superseded pending options on fallback and …
bedair81 Nov 22, 2026
75eb3a1
test(acp-registry): pin cross-chain recovery-id retirement and failed…
bedair81 Nov 22, 2026
af96550
test(acp-registry): verify old-chain pending options before cross-cha…
bedair81 Nov 22, 2026
27cd474
Merge branch 'main' into fix/acp-registry-refresh-stale-index
bedair81 Nov 23, 2026
42af1b7
Merge branch 'main' into fix/acp-registry-refresh-stale-index
bedair81 Nov 23, 2026
0632db7
Merge branch 'main' into fix/acp-registry-refresh-stale-index
bedair81 Nov 24, 2026
b16dc33
Merge branch 'main' into fix/acp-registry-refresh-stale-index
Nov 24, 2026
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
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function EnvironmentDetail({ environmentId }: { readonly environmentId: Environm
return;
const result = await refreshProviders({
environmentId,
input: { reloadSecrets: true },
input: { refreshModels: true, reloadSecrets: true },
});
if (AsyncResult.isFailure(result)) throw squashAtomCommandFailure(result);
setNotice(gt("Provider status refreshed."));
Expand Down
75 changes: 75 additions & 0 deletions apps/server/src/provider/AcpRegistryProbe.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ import * as Layer from "effect/Layer";
import { ProviderInstanceId } from "@t3tools/contracts";
import { AcpRegistrySettings } from "@t3tools/provider-acp-registry/settings";
import { describe, expect, it } from "@effect/vitest";
import * as Deferred from "effect/Deferred";
import * as Effect from "effect/Effect";
import * as Fiber from "effect/Fiber";
import * as FileSystem from "effect/FileSystem";
import * as Schema from "effect/Schema";
import * as TestClock from "effect/testing/TestClock";
import * as EffectAcpErrors from "effect-acp/errors";

import type * as AcpSessionRuntime from "@t3tools/provider-acp/server/AcpSessionRuntime";
Expand Down Expand Up @@ -362,6 +365,9 @@ describe("ACP Registry probe", () => {
const catalog = AcpRegistrySupport.AcpRegistryCatalog.of({
search: () => Effect.die("unused search"),
prepare: () => Effect.die("unused prepare"),
refreshIndex: () => Effect.die("unused refreshIndex"),
currentIndexRevision: () => Effect.succeed(0),
invalidateIndex: () => Effect.die("unused invalidateIndex"),
inspect: () => Effect.die("unused inspect"),
uninstallManagedBinary: () => Effect.die("unused uninstall"),
resolve: () =>
Expand Down Expand Up @@ -423,6 +429,9 @@ describe("ACP Registry probe", () => {
const catalog = AcpRegistrySupport.AcpRegistryCatalog.of({
search: () => Effect.die("unused search"),
prepare: () => Effect.die("unused prepare"),
refreshIndex: () => Effect.die("unused refreshIndex"),
currentIndexRevision: () => Effect.succeed(0),
invalidateIndex: () => Effect.die("unused invalidateIndex"),
inspect: () => Effect.die("unused inspect"),
uninstallManagedBinary: () => Effect.die("unused uninstall"),
resolve: () =>
Expand Down Expand Up @@ -492,6 +501,9 @@ await import(pathToFileURL(agentPath).href);
const catalog = AcpRegistrySupport.AcpRegistryCatalog.of({
search: () => Effect.die("unused search"),
prepare: () => Effect.die("unused prepare"),
refreshIndex: () => Effect.die("unused refreshIndex"),
currentIndexRevision: () => Effect.succeed(0),
invalidateIndex: () => Effect.die("unused invalidateIndex"),
inspect: () => Effect.die("unused inspect"),
uninstallManagedBinary: () => Effect.die("unused uninstall"),
resolve: () =>
Expand Down Expand Up @@ -571,4 +583,67 @@ await import(pathToFileURL(agentPath).href);
).reason,
).toBe("probe_failed");
});

it.effect(
"does not count slow catalog resolution against the 60s ACP probe timeout and forwards failedTarget",
() =>
Effect.gen(function* () {
const resolveStarted = yield* Deferred.make<void>();
const failedTarget: AcpRegistrySupport.AcpRegistryFailedTarget = {
version: "2.0.0",
launchIdentity: "v2-identity",
indexRevision: 4,
};
const catalog = AcpRegistrySupport.AcpRegistryCatalog.of({
search: () => Effect.die("unused search"),
prepare: () => Effect.die("unused prepare"),
refreshIndex: () => Effect.die("unused refreshIndex"),
currentIndexRevision: () => Effect.succeed(0),
invalidateIndex: () => Effect.die("unused invalidateIndex"),
inspect: () => Effect.die("unused inspect"),
uninstallManagedBinary: () => Effect.die("unused uninstall"),
resolve: () =>
Deferred.succeed(resolveStarted, undefined).pipe(
Effect.andThen(Effect.sleep("2 minutes")),
Effect.as({
agent: {
id: "mock-agent",
name: "Mock Agent",
version: "1.0.0",
description: "ACP probe timeout-split test agent",
distribution: { npx: { package: "mock-agent@1.0.0" } },
},
distribution: "npx" as const,
launchIdentity: "v1-identity",
fallback: true,
failedTarget,
spawn: {
command: "node",
args: [mockAgentPath],
env: { ...process.env, T3_ACP_AVAILABLE_COMMANDS: "status" },
},
}),
),
});
const probeFiber = yield* probeAcpRegistryConfiguration({
instanceId,
settings: decodeSettings({ agentId: "mock-agent" }),
cwd: process.cwd(),
environment: {},
}).pipe(
Effect.provideService(AcpRegistrySupport.AcpRegistryCatalog, catalog),
Effect.forkScoped({ startImmediately: true }),
);
yield* Deferred.await(resolveStarted);
yield* TestClock.adjust("2 minutes");
const result = yield* Fiber.join(probeFiber);
expect(result.probe.ready).toBe(true);
expect(result.resolved).toMatchObject({
distribution: "npx",
launchIdentity: "v1-identity",
fallback: true,
failedTarget,
});
}).pipe(Effect.scoped, Effect.provide(Layer.mergeAll(NodeServices.layer, NodeCrypto.layer))),
);
});
12 changes: 12 additions & 0 deletions docs/user/providers-acp.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ version published by the Registry. Their commands are available in a new server
sign-in and direct use. Removing an agent's last provider instance removes T3-managed binary files
but keeps package installs. To use an existing local binary, set **Executable override** explicitly.

T3 Code refreshes the Registry index in the background and automatically installs new versions of
prepared, T3-managed Registry agents alongside earlier versions, deferring background updates while
that agent is starting a session. If a newly published version of a T3-managed binary agent fails
to download, verify, or unpack, T3 Code keeps running the newest previously installed version until
the update succeeds (versions installed before T3 Code added this fallback can't be used for it).
Agents using **Executable override** keep running the configured executable—update those
overrides directly on the server—while Registry refreshes can still pick up updated Registry
metadata, arguments, and environment variables. Refreshing providers (in **Settings → Providers** on
web and desktop, or **Refresh providers** in environment settings on mobile) requests a fresh
Registry check right away for unprepared or unavailable agents, and after the agent's status check
finishes for installed agents.

## Signing in

Open the agent's account section in **Settings → Providers** on web or desktop. Choose
Expand Down
Loading
Loading