From cec8b349e5e21e082cdf6e03c470bfaa55565a15 Mon Sep 17 00:00:00 2001
From: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
Date: Fri, 20 Nov 2026 13:28:54 -0800
Subject: [PATCH 1/3] feat: link a machine through another one that already
links to it
A machine this client is not connected to could only be linked with a
pairing code fetched from it by hand. When another environment holds a
full-access link to it, that environment now gets the code: a person
with access management on it asks, the linked machine mints an ordinary
link pairing code, and the new link is made with the access they pick.
Co-Authored-By: Claude Fable 5.2
---
.../src/environment/ServerEnvironment.ts | 1 +
.../src/observability/RpcInstrumentation.ts | 1 +
.../server/src/peer/PeerClientPairing.test.ts | 59 +++++-
apps/server/src/peer/PeerClientPairing.ts | 186 +++++++++++-------
apps/server/src/ws.ts | 2 +
.../components/settings/EnvironmentsMap.tsx | 11 +-
.../settings/LinkedEnvironmentsSettings.tsx | 119 ++++++++---
.../settings/environmentsMap.logic.test.ts | 26 +++
.../settings/environmentsMap.logic.ts | 47 ++++-
apps/web/src/i18n/translations/de.json | 19 +-
apps/web/src/i18n/translations/en.json | 19 +-
apps/web/src/i18n/translations/es.json | 19 +-
apps/web/src/i18n/translations/fr.json | 19 +-
apps/web/src/i18n/translations/ja.json | 19 +-
apps/web/src/i18n/translations/ko.json | 19 +-
apps/web/src/i18n/translations/pt-BR.json | 19 +-
apps/web/src/i18n/translations/ru.json | 19 +-
apps/web/src/i18n/translations/sv.json | 19 +-
apps/web/src/i18n/translations/zh.json | 19 +-
docs/user/remote-access.md | 7 +
.../client-runtime/src/state/peerLinks.ts | 5 +
.../contracts/src/clientRpcPermissions.ts | 1 +
packages/contracts/src/environment.ts | 2 +
packages/contracts/src/peerLink.ts | 16 ++
packages/contracts/src/rpc.ts | 9 +
25 files changed, 499 insertions(+), 183 deletions(-)
diff --git a/apps/server/src/environment/ServerEnvironment.ts b/apps/server/src/environment/ServerEnvironment.ts
index 2208e70b983e..b29f9c874f12 100644
--- a/apps/server/src/environment/ServerEnvironment.ts
+++ b/apps/server/src/environment/ServerEnvironment.ts
@@ -299,6 +299,7 @@ export const make = Effect.gen(function* () {
linkFence: true,
linkThreadStream: true,
linkClientPairing: true,
+ linkPairingForLink: true,
mcpApprovalCodes: true,
peerLinkPairingCodes: true,
mcpHostedApproval: true,
diff --git a/apps/server/src/observability/RpcInstrumentation.ts b/apps/server/src/observability/RpcInstrumentation.ts
index 96351b39b631..8ee73918171c 100644
--- a/apps/server/src/observability/RpcInstrumentation.ts
+++ b/apps/server/src/observability/RpcInstrumentation.ts
@@ -74,6 +74,7 @@ const RPC_AGGREGATES = {
[WS_METHODS.peerLinksThreadHistoryPage]: "peerLinks",
[WS_METHODS.peerLinksThreadItem]: "peerLinks",
[WS_METHODS.peerLinksPairClient]: "peerLinks",
+ [WS_METHODS.peerLinksPairLink]: "peerLinks",
[WS_METHODS.serverGetSettings]: "server",
[WS_METHODS.serverUpdateSettings]: "server",
[WS_METHODS.serverSearchAcpRegistry]: "server",
diff --git a/apps/server/src/peer/PeerClientPairing.test.ts b/apps/server/src/peer/PeerClientPairing.test.ts
index a9bd0f63454d..17a5df1cb75f 100644
--- a/apps/server/src/peer/PeerClientPairing.test.ts
+++ b/apps/server/src/peer/PeerClientPairing.test.ts
@@ -43,7 +43,10 @@ import {
} from "./PeerLinks.testkit.ts";
const laptop = descriptorOf("environment-laptop", "Laptop");
-const box = descriptorOf("environment-box", "Box", { linkClientPairing: true });
+const box = descriptorOf("environment-box", "Box", {
+ linkClientPairing: true,
+ linkPairingForLink: true,
+});
const NoTools = Toolkit.make();
const serveBox = (descriptor: ExecutionEnvironmentDescriptor = box) =>
@@ -254,6 +257,60 @@ it.effect("pairs no client while Linked environments is off on either side", ()
).pipe(Effect.provide(NodeHttpServer.layerTest)),
);
+it.effect("a full-access link gets a pairing code that links another environment to the box", () =>
+ Effect.scoped(
+ Effect.gen(function* () {
+ const b = yield* serveBox();
+ const a = yield* makeLaptop;
+ yield* linkTo(a.links, b, "full-access");
+ const phone = yield* a.client([AuthAccessWriteScope]);
+
+ const result = yield* a.pairing.requestForLink(
+ { environmentId: box.environmentId, access: "approval-required" },
+ phone,
+ );
+ if (result.type !== "credential") return yield* Effect.die(result);
+ expect(result).toMatchObject({ environmentId: box.environmentId, urls: [b.url] });
+
+ // A third environment links with it, at the access the code was minted for.
+ const desk = yield* Layer.build(
+ layerLinkingEnvironment(descriptorOf("environment-desk", "Desk")),
+ );
+ const linked = yield* Context.get(desk, PeerLinks.PeerLinks).link({
+ url: b.url,
+ pairingCode: result.credential,
+ access: "approval-required",
+ });
+ expect(linked).toMatchObject({
+ environmentId: box.environmentId,
+ access: "approval-required",
+ });
+ }),
+ ).pipe(Effect.provide(NodeHttpServer.layerTest)),
+);
+
+it.effect("a linked environment from before link pairing is never asked for one", () =>
+ Effect.scoped(
+ Effect.gen(function* () {
+ const b = yield* serveBox(
+ descriptorOf("environment-box", "Box", { linkClientPairing: true }),
+ );
+ const a = yield* makeLaptop;
+ yield* linkTo(a.links, b, "full-access");
+ const phone = yield* a.client([AuthAccessWriteScope]);
+
+ // It would read the request as a client's and hand back a client pairing.
+ expect(
+ yield* a.pairing.requestForLink(
+ { environmentId: box.environmentId, access: "auto" },
+ phone,
+ ),
+ ).toMatchObject({ type: "unsupported", reason: "version" });
+ expect(yield* Ref.get(b.bearers)).toEqual([]);
+ }),
+ ).pipe(Effect.provide(NodeHttpServer.layerTest)),
+);
+
it.effect("a linked environment from before client pairing is never asked", () =>
Effect.scoped(
Effect.gen(function* () {
diff --git a/apps/server/src/peer/PeerClientPairing.ts b/apps/server/src/peer/PeerClientPairing.ts
index 045b369cfe2f..da10e3d78d15 100644
--- a/apps/server/src/peer/PeerClientPairing.ts
+++ b/apps/server/src/peer/PeerClientPairing.ts
@@ -8,6 +8,7 @@ import {
type PeerLinkClientPairingRequest,
type PeerLinkClientPairingResult,
PeerLinkError,
+ type PeerLinkLinkPairingInput,
} from "@t3tools/contracts";
import * as Context from "effect/Context";
import * as DateTime from "effect/DateTime";
@@ -72,6 +73,14 @@ export class PeerClientPairing extends Context.Service<
readonly scopes: ReadonlyArray;
},
) => Effect.Effect;
+ /**
+ * Gets a pairing code from an environment this one links to, for the client to link another
+ * environment there with. The client made the request, so it is named beside the code.
+ */
+ readonly requestForLink: (
+ input: PeerLinkLinkPairingInput,
+ client: { readonly sessionId: AuthSessionId },
+ ) => Effect.Effect;
}
>()("t3/peer/PeerClientPairing") {}
@@ -106,6 +115,23 @@ const makeIssuer = Effect.gen(function* () {
message: "Only a full-access link may pair a client here.",
});
}
+ const via = caller.label.startsWith(PeerLinks.LINK_CLIENT_NAME_PREFIX)
+ ? caller.label.slice(PeerLinks.LINK_CLIENT_NAME_PREFIX.length)
+ : caller.label;
+ const refusedByPolicy = (error: { readonly message: string }) =>
+ Effect.fail(new PeerClientPairingRefused({ reason: "policy", message: error.message }));
+ if (request.link !== undefined) {
+ // A link pairing code, as this machine's own Sharing & access would mint: the full-access
+ // caller could mint it by running the CLI here, so no access level is more than it holds.
+ const issued = yield* auth
+ .issuePairingCredential({
+ access: request.link.access,
+ purpose: "peer-link",
+ label: `Link · via ${via}`,
+ })
+ .pipe(Effect.catchTags({ ManagedPolicyRefusedError: refusedByPolicy }));
+ return { credential: issued.credential, expiresAt: issued.expiresAt };
+ }
// Never more than the client holds where it asked, nor more than a pairing code grants.
const scopes = AuthStandardClientScopes.filter((scope) => request.scopes.includes(scope));
if (scopes.length === 0) {
@@ -114,9 +140,6 @@ const makeIssuer = Effect.gen(function* () {
message: "The client holds no access a pairing could carry.",
});
}
- const via = caller.label.startsWith(PeerLinks.LINK_CLIENT_NAME_PREFIX)
- ? caller.label.slice(PeerLinks.LINK_CLIENT_NAME_PREFIX.length)
- : caller.label;
const clientLabel = Array.from(request.clientLabel).slice(0, CLIENT_LABEL_MAX_LENGTH).join("");
const issued = yield* auth
.createPairingLink({
@@ -124,12 +147,7 @@ const makeIssuer = Effect.gen(function* () {
ttl: CLIENT_PAIRING_TTL,
label: `${clientLabel} · via ${via}`,
})
- .pipe(
- Effect.catchTags({
- ManagedPolicyRefusedError: (error) =>
- Effect.fail(new PeerClientPairingRefused({ reason: "policy", message: error.message })),
- }),
- );
+ .pipe(Effect.catchTags({ ManagedPolicyRefusedError: refusedByPolicy }));
return { credential: issued.credential, expiresAt: issued.expiresAt };
});
@@ -157,75 +175,93 @@ const make = Effect.gen(function* () {
Effect.orElseSucceed(() => "T3 Code client"),
);
- const request: PeerClientPairing["Service"]["request"] = Effect.fn("PeerClientPairing.request")(
- function* (input, client) {
- if (!(yield* links.enabled)) {
- return yield* new PeerLinkError({
- reason: "disabled",
- message: PeerLinks.LINKED_ENVIRONMENTS_OFF,
- });
- }
- const stored = yield* links.get(input.environmentId);
- if (Option.isNone(stored)) {
- return yield* new PeerLinkError({
- reason: "unknown_link",
- message: "This environment is no longer linked to that one.",
- });
- }
- const { environmentId, label, urls, access, expiresAt } = stored.value;
- if (DateTime.isLessThanOrEqualTo(expiresAt, yield* DateTime.now)) {
- return yield* new PeerLinkError({
- reason: "expired",
- message: `The link to ${label} expired. Link it again with a new pairing code from ${label}.`,
- });
- }
- const unsupported = (
- reason: Extract["reason"],
- name = label,
- ): PeerLinkClientPairingResult => ({
- type: "unsupported",
- environmentId,
- label: name,
- urls,
- reason,
+ /** Asks the linked environment for a pairing; `payload` says for whom. */
+ const ask = Effect.fn("PeerClientPairing.ask")(function* (
+ input: { readonly environmentId: PeerLinkClientPairingInput["environmentId"] },
+ sessionId: AuthSessionId,
+ payload: (clientLabel: string) => PeerLinkClientPairingRequest,
+ ) {
+ if (!(yield* links.enabled)) {
+ return yield* new PeerLinkError({
+ reason: "disabled",
+ message: PeerLinks.LINKED_ENVIRONMENTS_OFF,
+ });
+ }
+ const stored = yield* links.get(input.environmentId);
+ if (Option.isNone(stored)) {
+ return yield* new PeerLinkError({
+ reason: "unknown_link",
+ message: "This environment is no longer linked to that one.",
});
- // The linked environment refuses this too; asking would only spend a round trip.
- if (access !== "full-access") return unsupported("link_access");
- const resolved = yield* links.resolve(input.environmentId).pipe(Effect.option);
- if (Option.isNone(resolved)) return unsupported("unreachable");
- const peer = resolved.value;
- if (peer.capabilities.linkClientPairing !== true) {
- return unsupported("version", peer.link.label);
- }
- const api = yield* HttpApiClient.make(ClientPairingApi, { baseUrl: peer.url }).pipe(
- Effect.provideService(HttpClient.HttpClient, httpClient),
+ }
+ const { environmentId, label, urls, access, expiresAt } = stored.value;
+ if (DateTime.isLessThanOrEqualTo(expiresAt, yield* DateTime.now)) {
+ return yield* new PeerLinkError({
+ reason: "expired",
+ message: `The link to ${label} expired. Link it again with a new pairing code from ${label}.`,
+ });
+ }
+ const unsupported = (
+ reason: Extract["reason"],
+ name = label,
+ ): PeerLinkClientPairingResult => ({
+ type: "unsupported",
+ environmentId,
+ label: name,
+ urls,
+ reason,
+ });
+ // The linked environment refuses this too; asking would only spend a round trip.
+ if (access !== "full-access") return unsupported("link_access");
+ const resolved = yield* links.resolve(input.environmentId).pipe(Effect.option);
+ if (Option.isNone(resolved)) return unsupported("unreachable");
+ const peer = resolved.value;
+ const request = payload(yield* clientLabelOf(sessionId));
+ if (
+ peer.capabilities.linkClientPairing !== true ||
+ // One from before this would read the request as a client's and pair the client instead.
+ (request.link !== undefined && peer.capabilities.linkPairingForLink !== true)
+ ) {
+ return unsupported("version", peer.link.label);
+ }
+ const api = yield* HttpApiClient.make(ClientPairingApi, { baseUrl: peer.url }).pipe(
+ Effect.provideService(HttpClient.HttpClient, httpClient),
+ );
+ return yield* api.peerLink
+ .clientPairing({
+ headers: { authorization: `Bearer ${peer.token}` },
+ payload: request,
+ })
+ .pipe(
+ Effect.timeout(PeerLinks.probeTimeout(peer.url)),
+ Effect.map((issued): PeerLinkClientPairingResult => ({
+ type: "credential",
+ environmentId,
+ label: peer.link.label,
+ urls,
+ credential: issued.credential,
+ expiresAt: issued.expiresAt,
+ })),
+ // No cause is logged or returned: a response this version cannot read may hold the credential.
+ Effect.catchTags({
+ HttpClientError: () => Effect.succeed(unsupported("unreachable", peer.link.label)),
+ TimeoutError: () => Effect.succeed(unsupported("unreachable", peer.link.label)),
+ }),
+ Effect.orElseSucceed(() => unsupported("refused", peer.link.label)),
);
- return yield* api.peerLink
- .clientPairing({
- headers: { authorization: `Bearer ${peer.token}` },
- payload: { scopes: client.scopes, clientLabel: yield* clientLabelOf(client.sessionId) },
- })
- .pipe(
- Effect.timeout(PeerLinks.probeTimeout(peer.url)),
- Effect.map((issued): PeerLinkClientPairingResult => ({
- type: "credential",
- environmentId,
- label: peer.link.label,
- urls,
- credential: issued.credential,
- expiresAt: issued.expiresAt,
- })),
- // No cause is logged or returned: a response this version cannot read may hold the credential.
- Effect.catchTags({
- HttpClientError: () => Effect.succeed(unsupported("unreachable", peer.link.label)),
- TimeoutError: () => Effect.succeed(unsupported("unreachable", peer.link.label)),
- }),
- Effect.orElseSucceed(() => unsupported("refused", peer.link.label)),
- );
- },
- );
+ });
+
+ const request: PeerClientPairing["Service"]["request"] = (input, client) =>
+ ask(input, client.sessionId, (clientLabel) => ({ scopes: client.scopes, clientLabel }));
+
+ const requestForLink: PeerClientPairing["Service"]["requestForLink"] = (input, client) =>
+ ask(input, client.sessionId, (clientLabel) => ({
+ scopes: [],
+ clientLabel,
+ link: { access: input.access },
+ }));
- return PeerClientPairing.of({ request });
+ return PeerClientPairing.of({ request, requestForLink });
});
export const layer = Layer.effect(PeerClientPairing, make);
diff --git a/apps/server/src/ws.ts b/apps/server/src/ws.ts
index 3747e013a019..0eaf6e8b8b92 100644
--- a/apps/server/src/ws.ts
+++ b/apps/server/src/ws.ts
@@ -2724,6 +2724,8 @@ export const layerWsRpc = (
),
[WS_METHODS.peerLinksPairClient]: (input) =>
peerClientPairing.request(input, currentSession),
+ [WS_METHODS.peerLinksPairLink]: (input) =>
+ peerClientPairing.requestForLink(input, currentSession),
[WS_METHODS.peerLinksAnswerRequest]: (input) =>
Effect.annotateCurrentSpan({ "orchestration_v2.thread_id": input.threadId }).pipe(
Effect.andThen(peerLinkRequests.answer(input)),
diff --git a/apps/web/src/components/settings/EnvironmentsMap.tsx b/apps/web/src/components/settings/EnvironmentsMap.tsx
index 172e2ef91709..befa3c5e19b6 100644
--- a/apps/web/src/components/settings/EnvironmentsMap.tsx
+++ b/apps/web/src/components/settings/EnvironmentsMap.tsx
@@ -461,7 +461,11 @@ export function EnvironmentsMap(
? { choice: null }
: offer.target.kind === "machine"
? { choice: offer.target.environmentId }
- : { choice: ANOTHER_ADDRESS, address: offer.target.address ?? "" },
+ : {
+ choice: ANOTHER_ADDRESS,
+ address: offer.target.address ?? "",
+ ...(offer.target.through ? { through: offer.target.through } : {}),
+ },
}));
};
/** One link from `sourceId` to `targetId`, whatever is selected. */
@@ -1299,6 +1303,11 @@ function actionText(action: FleetLinkAction | null, target: string, gt: GT): str
? gt("Renew link to {target}", { target })
: gt("Link to {target}", { target });
}
+ if (offer.path === "through-link") {
+ return offer.renews
+ ? gt("Renew link to {target}", { target })
+ : gt("Link to {target}", { target });
+ }
return offer.renews
? gt("Renew link to {target} with a pairing code", { target })
: gt("Link to {target} with a pairing code", { target });
diff --git a/apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx b/apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx
index 1baefa99a469..b6a0a02d89c0 100644
--- a/apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx
+++ b/apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx
@@ -219,6 +219,15 @@ export interface LinkEnvironmentPrefill {
/** The machine to link to, by environment id, or `ANOTHER_ADDRESS` with `address`. */
readonly choice: string | null;
readonly address?: string;
+ /**
+ * With `address`: the machine there, and one of this app's that links to it at full access and
+ * so can get the pairing code from it.
+ */
+ readonly through?: {
+ readonly viaEnvironmentId: EnvironmentId;
+ readonly environmentId: EnvironmentId;
+ readonly label: string;
+ };
}
/**
@@ -262,8 +271,26 @@ export function LinkEnvironmentDialog({
reportFailure: false,
reportDefect: false,
});
+ const pairThrough = useAtomCommand(peerLinkEnvironment.pairLink, {
+ label: "pair link through a linked environment",
+ // The answer is a credential; keep it out of the console.
+ reportFailure: false,
+ reportDefect: false,
+ });
+ const via = useEnvironment(prefill?.through?.viaEnvironmentId ?? null);
+ // Set once the linked machine would not give a code, so the dialog asks for one instead.
+ const [throughFailed, setThroughFailed] = useState(false);
const [alsoLinkBack, setAlsoLinkBack] = useState(false);
const selected = choice ?? (machines.length === 0 ? ANOTHER_ADDRESS : null);
+ // Only for the machine the dialog opened for: another choice or address is another machine.
+ const through =
+ prefill?.through !== undefined &&
+ via !== null &&
+ !throughFailed &&
+ selected === ANOTHER_ADDRESS &&
+ address === (prefill.address ?? "")
+ ? prefill.through
+ : null;
const machine = machines.find((candidate) => candidate.environmentId === selected) ?? null;
const targetId = machine?.environmentId ?? null;
const connected = usePreparedConnection(targetId);
@@ -282,9 +309,10 @@ export function LinkEnvironmentDialog({
const linkBack = useLinkBackOffers(environmentId, targetId === null ? [] : [targetId], open);
const backOffer = linkBack.offerFor(targetId);
const ready =
- selected !== null &&
- (!needsAddress || address.trim().length > 0) &&
- (canMint || pairingCode.trim().length > 0);
+ through !== null ||
+ (selected !== null &&
+ (!needsAddress || address.trim().length > 0) &&
+ (canMint || pairingCode.trim().length > 0));
const handleOpenChange = (next: boolean) => {
setOpen(next);
if (!next) {
@@ -293,9 +321,39 @@ export function LinkEnvironmentDialog({
setPairingCode("");
setAccess("approval-required");
setMintFailed(new Set());
+ setThroughFailed(false);
setAlsoLinkBack(false);
}
};
+ // Settles to what to link with, or null after reporting why the linked machine gave no code.
+ const resolveThrough = async (target: NonNullable) => {
+ const asked = await pairThrough({
+ environmentId: target.viaEnvironmentId,
+ input: { environmentId: target.environmentId, access },
+ });
+ if (asked._tag === "Success" && asked.value.type === "credential") {
+ const [url, ...alternateUrls] = asked.value.urls;
+ if (url !== undefined) {
+ return {
+ url,
+ ...(alternateUrls.length > 0 ? { alternateUrls } : {}),
+ expectedEnvironmentId: asked.value.environmentId,
+ expectedLabel: asked.value.label,
+ pairingCode: asked.value.credential,
+ };
+ }
+ }
+ if (asked._tag === "Failure" && isAtomCommandInterrupted(asked)) return null;
+ setThroughFailed(true);
+ failureToast(
+ gt("{via} could not get a pairing code from {target}", {
+ via: via?.label ?? "",
+ target: target.label,
+ }),
+ gt("Enter its address and a pairing code from it instead."),
+ );
+ return null;
+ };
// Settles to the code to link with, or null after reporting why there is none.
const resolvePairingCode = async () => {
if (!canMint || targetId === null) return pairingCode.trim();
@@ -314,23 +372,28 @@ export function LinkEnvironmentDialog({
if (inFlight.current || !ready || url === undefined) return;
inFlight.current = true;
setBusy(true);
- const code = await resolvePairingCode();
+ const throughInput = through === null ? null : await resolveThrough(through);
+ const code = through === null ? await resolvePairingCode() : null;
const result =
- code === null
- ? null
- : await link({
- environmentId,
- input: {
- url,
- ...(alternateUrls.length > 0 ? { alternateUrls } : {}),
- // A typed address links alone: only this app's own addresses name a machine.
- ...(machine === null || needsAddress
- ? {}
- : { expectedEnvironmentId: machine.environmentId, expectedLabel: machine.label }),
- pairingCode: code,
- access,
- },
- });
+ through !== null
+ ? throughInput === null
+ ? null
+ : await link({ environmentId, input: { ...throughInput, access } })
+ : code === null
+ ? null
+ : await link({
+ environmentId,
+ input: {
+ url,
+ ...(alternateUrls.length > 0 ? { alternateUrls } : {}),
+ // A typed address links alone: only this app's own addresses name a machine.
+ ...(machine === null || needsAddress
+ ? {}
+ : { expectedEnvironmentId: machine.environmentId, expectedLabel: machine.label }),
+ pairingCode: code,
+ access,
+ },
+ });
// The link back is its own link, made on the other machine: it never undoes this one.
const back =
result?._tag === "Success" &&
@@ -389,6 +452,8 @@ export function LinkEnvironmentDialog({
{source === null ? (
Link an environment
+ ) : through !== null ? (
+ gt("Link {source} to {target}", { source: source.label, target: through.label })
) : machine === null ? (
gt("Link {label} to another machine", { label: source.label })
) : (
@@ -429,7 +494,15 @@ export function LinkEnvironmentDialog({
Already linked. Linking again renews it with the access you pick.
) : null}
- {needsAddress ? (
+ {through !== null ? (
+
+ {gt(
+ "{via} links to {target} at full access, so it gets the pairing code. No code to paste.",
+ { via: via?.label ?? "", target: through.label },
+ )}
+
+ ) : null}
+ {needsAddress && through === null ? (
Address
@@ -457,8 +530,10 @@ export function LinkEnvironmentDialog({
) : null}
) : null}
- {needsAddress && address.trim() ? : null}
- {selected === null || canMint ? null : (
+ {needsAddress && through === null && address.trim() ? (
+
+ ) : null}
+ {selected === null || canMint || through !== null ? null : (
Pairing code
diff --git a/apps/web/src/components/settings/environmentsMap.logic.test.ts b/apps/web/src/components/settings/environmentsMap.logic.test.ts
index 55cd6baf5521..2ddb83048fa8 100644
--- a/apps/web/src/components/settings/environmentsMap.logic.test.ts
+++ b/apps/web/src/components/settings/environmentsMap.logic.test.ts
@@ -497,6 +497,32 @@ describe("fleetLinkOffer", () => {
expect(offer("cups", "old")).toMatchObject({ renews: false });
});
+ it("links through a machine that holds a full-access link there and whose access the client manages", () => {
+ const through = (hosts: ReadonlyArray) => {
+ const result = fleetLinkOffer(build(hosts), node("mbp"), node("vm"));
+ return result.kind === "link" ? [result.path, result.target] : result.kind;
+ };
+ const full = link("vm", { access: "full-access" });
+ expect(through([environment("mbp"), environment("nucbox", [full])])).toEqual([
+ "through-link",
+ {
+ kind: "address",
+ address: "https://vm.example.ts.net",
+ through: { viaEnvironmentId: id("nucbox"), environmentId: id("vm"), label: "vm" },
+ },
+ ]);
+ for (const [why, nucbox] of [
+ ["a lower link", environment("nucbox", [link("vm")])],
+ ["an expired link", environment("nucbox", [{ ...full, status: "expired" }])],
+ ["a link that does not answer", environment("nucbox", [{ ...full, status: "unreachable" }])],
+ ["no access management", environment("nucbox", [full], { canWriteAccess: false })],
+ ] as const) {
+ expect(through([environment("mbp"), nucbox]), why).toMatchObject(["pairing-code", {}]);
+ }
+ // Its own link is not a way to a new one.
+ expect(through([environment("mbp", [full])])).toMatchObject(["pairing-code", {}]);
+ });
+
it("offers nothing from a machine that cannot link, or to itself or the client", () => {
const reason = (source: string, target: string) => {
const result = offer(source, target);
diff --git a/apps/web/src/components/settings/environmentsMap.logic.ts b/apps/web/src/components/settings/environmentsMap.logic.ts
index da1c9b0fceb8..b68a740b2b1e 100644
--- a/apps/web/src/components/settings/environmentsMap.logic.ts
+++ b/apps/web/src/components/settings/environmentsMap.logic.ts
@@ -612,14 +612,24 @@ export type FleetLinkOffer =
/**
* `code-less`: the client mints the pairing code on the target with its own session there.
* `pairing-code`: the user brings one from the target.
+ * `through-link`: a machine that links to the target at full access gets the code there.
*/
- readonly path: "code-less" | "pairing-code";
+ readonly path: "code-less" | "pairing-code" | "through-link";
/** The pair is already linked, so linking again renews it. */
readonly renews: boolean;
readonly target:
| { readonly kind: "machine"; readonly environmentId: EnvironmentId }
/** A machine the client has no entry for: only an address another host uses. */
- | { readonly kind: "address"; readonly address: string | null };
+ | {
+ readonly kind: "address";
+ readonly address: string | null;
+ /** The linked machine itself, and the one that can get a pairing code from it. */
+ readonly through?: {
+ readonly viaEnvironmentId: EnvironmentId;
+ readonly environmentId: EnvironmentId;
+ readonly label: string;
+ };
+ };
};
export function fleetLinkOffer(
@@ -645,10 +655,39 @@ export function fleetLinkOffer(
);
const base = { kind: "link", sourceEnvironmentId: source.environmentId, renews } as const;
if (target.kind === "target") {
+ // Only a full-access link may mint a code there, and only a session that manages access on
+ // the machine holding that link may ask it to.
+ const via = graph.edges.find(
+ (edge): edge is FleetLinkEdge =>
+ edge.kind === "link" &&
+ edge.to === target.id &&
+ edge.from !== source.id &&
+ edge.link.access === "full-access" &&
+ edge.health.kind === "reachable" &&
+ graph.nodes.some(
+ (node) =>
+ node.id === edge.from &&
+ node.kind === "environment" &&
+ node.phase === "connected" &&
+ node.canWriteAccess,
+ ),
+ );
return {
...base,
- path: "pairing-code",
- target: { kind: "address", address: target.address },
+ path: via === undefined ? "pairing-code" : "through-link",
+ target: {
+ kind: "address",
+ address: target.address,
+ ...(via === undefined
+ ? {}
+ : {
+ through: {
+ viaEnvironmentId: via.sourceEnvironmentId,
+ environmentId: target.environmentId,
+ label: target.label,
+ },
+ }),
+ },
};
}
return {
diff --git a/apps/web/src/i18n/translations/de.json b/apps/web/src/i18n/translations/de.json
index 5c21a17afd5f..27c44cd8a3fa 100644
--- a/apps/web/src/i18n/translations/de.json
+++ b/apps/web/src/i18n/translations/de.json
@@ -155,10 +155,9 @@
"0cb7a36802fe8089": "Filter {number} braucht einen Pfad unter body, headers oder query.",
"1fa38fb049c6b56e": "Filter {number} braucht einen Pfad unter body, headers oder query und mindestens einen Wert.",
"31ec02bdcb3920d1": "Filter {number} braucht einen Pfad unter body, headers oder query und einen Wert.",
+ "62ae4688ece05590": "Sicher gespeichert, dem Agenten nie angezeigt",
"81f613bb68d85bb7": "Nicht im Chat, sondern in einer privaten Datei, die die Befehle dieses Agenten 24 Stunden lang lesen können",
"07b56c0c12bd2de1": "Nicht im Chat, sondern in privaten Dateien, die die Befehle dieses Agenten 24 Stunden lang lesen können",
- "6435447ce7656f13": "{label} anzeigen",
- "62ae4688ece05590": "Sicher gespeichert, dem Agenten nie angezeigt",
"8c2d901183b4e219": "Geheimnis einfügen",
"610aea624f895a78": "Sicher gespeichert und privat gehalten",
"329b7854b7e0546e": "Verwende eine 1Password-Referenz wie {example}.",
@@ -892,6 +891,11 @@
"2605da0149cd15f1": "Kontext wird komprimiert",
"39a82db18ca50c21": "Kontext komprimiert: {before} → {after} Tokens",
"885ae08a2160a158": "Kontext komprimiert",
+ "4d4981a1c5bd9728": "Befehl läuft",
+ "a078225c5f197cd2": "Befehl fehlgeschlagen",
+ "37ab148aaa486051": "Befehl abgelehnt",
+ "0112efa1861c7a30": "Befehl gestoppt",
+ "930808342aac8010": "Befehl ausgeführt",
"3ab6b281a0991766": "{count, plural, =1 {Verknüpfte Pull Requests geprüft} other {Verknüpfte Pull Requests {count}-mal geprüft}}",
"857e92a89b6b6257": "{count, plural, one {{count} Datei gelesen} other {{count} Dateien gelesen}}",
"466ac7fcdb97bb76": "{count, plural, one {{count} Datei geändert} other {{count} Dateien geändert}}",
@@ -1387,7 +1391,6 @@
"4c9a0b64f128da3a": "Neuer Versuch in {delay} s.",
"5de030e595796117": "Thread erstellt",
"c392becd445ecdba": "Denkt nach",
- "930808342aac8010": "Befehl ausgeführt",
"c01f9d3f3624c903": "Befehl",
"fc933cf9b3edd743": "{fileName} geändert",
"9bdd23eb0206783f": "Dateiänderung",
@@ -3731,10 +3734,6 @@
"ac511f991a3c1fab": "Websuche",
"07e65dba2b16d3f7": "{count, plural, one {{path} +{count} weitere} other {{path} +{count} weitere}}",
"6ab96e26bda35288": "Denkt nach",
- "4d4981a1c5bd9728": "Befehl läuft",
- "a078225c5f197cd2": "Befehl fehlgeschlagen",
- "37ab148aaa486051": "Befehl abgelehnt",
- "0112efa1861c7a30": "Befehl gestoppt",
"dc8ddcad32e2a50c": "{program} läuft",
"f0db8caadd8f120e": "{program} fehlgeschlagen",
"9a4cc1d1df413b99": "{program} abgelehnt",
@@ -3972,6 +3971,7 @@
"90062342f04966ff": "Aktualisiere den T3-Code-Server dieser Umgebung, um Pull Requests zu durchsuchen.",
"5e7157db126f1641": "Issues nicht verfügbar",
"42ade0e14ff6af94": "Aktualisiere den T3-Code-Server dieser Umgebung, um Issues zu durchsuchen.",
+ "6435447ce7656f13": "{label} anzeigen",
"993dcd04611f9571": "Sicher speichern",
"ccbe48efc8e30c52": "Nebenchat „{title}“ löschen?",
"3a859b690f41e899": "Dadurch wird sein Gesprächsverlauf dauerhaft gelöscht.",
@@ -4701,6 +4701,7 @@
"82d82cdbe3b0f975": "{size} · Mit {shortcut} bleibt großer eingefügter Text im Text.",
"247cd77b35ddb586": "„{name}“ konnte nicht als Bild gelesen werden.",
"7eccb44d5449e777": "„{name}“ ist zu groß zum Anhängen, selbst nach der Komprimierung.",
+ "d07dd6dfd269680a": "{names} konnte nicht wiederhergestellt werden: Das Eingabefeld hat sein Limit von {limit} Anhängen erreicht.",
"1d4059658a0ab500": "{name} aus der Nachricht entfernen?\nEs wird in deinem Text referenziert; beim Entfernen werden auch alle Referenzen entfernt.",
"86261d5bd0651358": "Dieses Bild aus der Nachricht entfernen?\nEs wird in deinem Text referenziert; beim Entfernen werden auch alle Referenzen entfernt.",
"f70c49e9f30807a3": "Der eingefügte Text ist zu groß für diese Nachricht",
@@ -4773,7 +4774,6 @@
"c809a3c353e67a28": "Der Browserspeicher hat die Aktualisierung abgelehnt, daher könnte dieser Eintrag nach dem Neuladen noch da sein.",
"1a4bc01f0ca772c2": "{names} hat beim Speichern dieses Prompts das Größenlimit der Ablage überschritten.",
"bb3b4ad32b596e11": "{names} konnte beim Speichern dieses Prompts nicht gelesen werden.",
- "d07dd6dfd269680a": "{names} konnte nicht wiederhergestellt werden: Das Eingabefeld hat sein Limit von {limit} Anhängen erreicht.",
"7e4a6a2c84d34a80": "{names}: Abgelegte Dateien werden 24 Stunden lang aufbewahrt, und dieser Upload ist abgelaufen. Hänge die Datei erneut an.",
"1e3ede33afee71ba": "Einige Anhänge wurden nicht wiederhergestellt",
"98c76143d9aae871": "Ablage-Eintrag kommt möglicherweise zurück",
@@ -8855,11 +8855,14 @@
"4cea6be0fe6be16f": "Verknüpfte Umgebungen konnten nicht geladen werden",
"25b74062dc03079e": "Keine verknüpften Umgebungen",
"6698127fcc912f23": "Verknüpfe einen anderen Rechner mit T3 Code, etwa einen VPS, damit Agenten hier dort Threads starten und steuern können.",
+ "82a0120f80907e97": "{via} could not get a pairing code from {target}",
+ "883abe5832a6732e": "Enter its address and a pairing code from it instead.",
"e1789f863205ad5a": "Umgebung konnte nicht verknüpft werden",
"836dde1b729e6f0a": "{source} und {target} in beide Richtungen verknüpft",
"40cde51afa218290": "{label} verknüpft",
"ca4e4015b89ed9a8": "{target} konnte nicht zurück mit {source} verknüpft werden",
"64ac3d1579ca9f5b": "{source} mit {target} verknüpfen",
+ "5f2e20c62a4fece3": "{via} links to {target} at full access, so it gets the pairing code. No code to paste.",
"fb71127e5746a6bc": "Unter „Freigabe & Zugriff“ dort oder mit t3 pair",
"1e3fee7084791773": "Auch {target} zurück mit {source} verknüpfen",
"ea34a190b0bd804c": "Agenten auf {target} können dann auch auf {source} arbeiten.",
diff --git a/apps/web/src/i18n/translations/en.json b/apps/web/src/i18n/translations/en.json
index c821f5b76c44..6a9d7eb0d850 100644
--- a/apps/web/src/i18n/translations/en.json
+++ b/apps/web/src/i18n/translations/en.json
@@ -155,10 +155,9 @@
"0cb7a36802fe8089": "Filter {number} needs a path under body, headers or query.",
"1fa38fb049c6b56e": "Filter {number} needs a path under body, headers or query, and at least one value.",
"31ec02bdcb3920d1": "Filter {number} needs a path under body, headers or query, and a value.",
+ "62ae4688ece05590": "Stored securely, never shown to the agent",
"81f613bb68d85bb7": "Kept out of chat, in a private file this agent's commands can read for 24 hours",
"07b56c0c12bd2de1": "Kept out of chat, in private files this agent's commands can read for 24 hours",
- "6435447ce7656f13": "Show {label}",
- "62ae4688ece05590": "Stored securely, never shown to the agent",
"8c2d901183b4e219": "Paste the secret",
"610aea624f895a78": "Saved securely and kept private",
"329b7854b7e0546e": "Use a 1Password reference like {example}.",
@@ -892,6 +891,11 @@
"2605da0149cd15f1": "Compacting context",
"39a82db18ca50c21": "Context compacted {before} → {after} tokens",
"885ae08a2160a158": "Context compacted",
+ "4d4981a1c5bd9728": "Running command",
+ "a078225c5f197cd2": "Failed command",
+ "37ab148aaa486051": "Declined command",
+ "0112efa1861c7a30": "Stopped command",
+ "930808342aac8010": "Ran command",
"3ab6b281a0991766": "{count, plural, =1 {Checked linked pull requests} other {Checked linked pull requests {count} times}}",
"857e92a89b6b6257": "{count, plural, one {Read {count} file} other {Read {count} files}}",
"466ac7fcdb97bb76": "{count, plural, one {Changed {count} file} other {Changed {count} files}}",
@@ -1387,7 +1391,6 @@
"4c9a0b64f128da3a": "Retrying in {delay}s.",
"5de030e595796117": "Created thread",
"c392becd445ecdba": "Thinking",
- "930808342aac8010": "Ran command",
"c01f9d3f3624c903": "Command",
"fc933cf9b3edd743": "Changed {fileName}",
"9bdd23eb0206783f": "File change",
@@ -3730,10 +3733,6 @@
"ac511f991a3c1fab": "Web search",
"07e65dba2b16d3f7": "{count, plural, one {{path} +{count} more} other {{path} +{count} more}}",
"6ab96e26bda35288": "Thinking",
- "4d4981a1c5bd9728": "Running command",
- "a078225c5f197cd2": "Failed command",
- "37ab148aaa486051": "Declined command",
- "0112efa1861c7a30": "Stopped command",
"dc8ddcad32e2a50c": "Running {program}",
"f0db8caadd8f120e": "Failed {program}",
"9a4cc1d1df413b99": "Declined {program}",
@@ -3970,6 +3969,7 @@
"90062342f04966ff": "Update this environment's T3 Code server to browse pull requests.",
"5e7157db126f1641": "Issues unavailable",
"42ade0e14ff6af94": "Update this environment's T3 Code server to browse issues.",
+ "6435447ce7656f13": "Show {label}",
"993dcd04611f9571": "Save securely",
"ccbe48efc8e30c52": "Delete side chat \"{title}\"?",
"3a859b690f41e899": "This permanently clears its conversation history.",
@@ -4700,6 +4700,7 @@
"82d82cdbe3b0f975": "{size} · Use {shortcut} to keep a large paste inline.",
"247cd77b35ddb586": "''{name}'' could not be read as an image.",
"7eccb44d5449e777": "''{name}'' is too large to attach, even after compression.",
+ "d07dd6dfd269680a": "{names} could not be restored: the composer is at its {limit}-attachment limit.",
"1d4059658a0ab500": "Remove {name} from the message?\nIt is referenced in your text; removing it also removes every reference.",
"86261d5bd0651358": "Remove this image from the message?\nIt is referenced in your text; removing it also removes every reference.",
"f70c49e9f30807a3": "Pasted text is too large for this message",
@@ -4772,7 +4773,6 @@
"c809a3c353e67a28": "Browser storage rejected the update, so this entry could still be there after a reload.",
"1a4bc01f0ca772c2": "{names} exceeded the stash size limit when this prompt was saved.",
"bb3b4ad32b596e11": "{names} could not be read when this prompt was saved.",
- "d07dd6dfd269680a": "{names} could not be restored: the composer is at its {limit}-attachment limit.",
"7e4a6a2c84d34a80": "{names}: stashed files are kept for 24 hours and this upload expired. Attach the file again.",
"1e3ede33afee71ba": "Some attachments were not restored",
"98c76143d9aae871": "Stash entry may come back",
@@ -8863,11 +8863,14 @@
"4cea6be0fe6be16f": "Could not load linked environments",
"25b74062dc03079e": "No linked environments",
"6698127fcc912f23": "Link another machine running T3 Code, such as a VPS, so agents here can launch and drive threads there.",
+ "82a0120f80907e97": "{via} could not get a pairing code from {target}",
+ "883abe5832a6732e": "Enter its address and a pairing code from it instead.",
"e1789f863205ad5a": "Could not link the environment",
"836dde1b729e6f0a": "Linked {source} and {target} both ways",
"40cde51afa218290": "Linked {label}",
"ca4e4015b89ed9a8": "Could not link {target} back to {source}",
"64ac3d1579ca9f5b": "Link {source} to {target}",
+ "5f2e20c62a4fece3": "{via} links to {target} at full access, so it gets the pairing code. No code to paste.",
"fb71127e5746a6bc": "From Sharing & access there, or t3 pair",
"1e3fee7084791773": "Also link {target} back to {source}",
"ea34a190b0bd804c": "Agents on {target} can then work on {source} too.",
diff --git a/apps/web/src/i18n/translations/es.json b/apps/web/src/i18n/translations/es.json
index 91165cd0e95e..d564763a511e 100644
--- a/apps/web/src/i18n/translations/es.json
+++ b/apps/web/src/i18n/translations/es.json
@@ -155,10 +155,9 @@
"0cb7a36802fe8089": "El filtro {number} necesita una ruta dentro de body, headers o query.",
"1fa38fb049c6b56e": "El filtro {number} necesita una ruta dentro de body, headers o query, y al menos un valor.",
"31ec02bdcb3920d1": "El filtro {number} necesita una ruta dentro de body, headers o query, y un valor.",
+ "62ae4688ece05590": "Guardado de forma segura, nunca se muestra al agente",
"81f613bb68d85bb7": "Fuera del chat, en un archivo privado que los comandos de este agente pueden leer durante 24 horas",
"07b56c0c12bd2de1": "Fuera del chat, en archivos privados que los comandos de este agente pueden leer durante 24 horas",
- "6435447ce7656f13": "Mostrar {label}",
- "62ae4688ece05590": "Guardado de forma segura, nunca se muestra al agente",
"8c2d901183b4e219": "Pega el secreto",
"610aea624f895a78": "Guardado de forma segura y privada",
"329b7854b7e0546e": "Usa una referencia de 1Password como {example}.",
@@ -892,6 +891,11 @@
"2605da0149cd15f1": "Compactando el contexto",
"39a82db18ca50c21": "Contexto compactado de {before} → {after} tokens",
"885ae08a2160a158": "Contexto compactado",
+ "4d4981a1c5bd9728": "Ejecutando comando",
+ "a078225c5f197cd2": "Comando fallido",
+ "37ab148aaa486051": "Comando rechazado",
+ "0112efa1861c7a30": "Comando detenido",
+ "930808342aac8010": "Comando ejecutado",
"3ab6b281a0991766": "{count, plural, =1 {Se comprobaron las pull requests vinculadas} other {Se comprobaron las pull requests vinculadas {count} veces}}",
"857e92a89b6b6257": "{count, plural, one {Se leyó {count} archivo} other {Se leyeron {count} archivos}}",
"466ac7fcdb97bb76": "{count, plural, one {Se cambió {count} archivo} other {Se cambiaron {count} archivos}}",
@@ -1387,7 +1391,6 @@
"4c9a0b64f128da3a": "Reintentando en {delay} s.",
"5de030e595796117": "Hilo creado",
"c392becd445ecdba": "Pensando",
- "930808342aac8010": "Comando ejecutado",
"c01f9d3f3624c903": "Comando",
"fc933cf9b3edd743": "Se cambió {fileName}",
"9bdd23eb0206783f": "Cambio de archivo",
@@ -3728,10 +3731,6 @@
"ac511f991a3c1fab": "Búsqueda web",
"07e65dba2b16d3f7": "{count, plural, one {{path} y {count} más} other {{path} y {count} más}}",
"6ab96e26bda35288": "Pensando",
- "4d4981a1c5bd9728": "Ejecutando comando",
- "a078225c5f197cd2": "Comando fallido",
- "37ab148aaa486051": "Comando rechazado",
- "0112efa1861c7a30": "Comando detenido",
"dc8ddcad32e2a50c": "Ejecutando {program}",
"f0db8caadd8f120e": "Falló {program}",
"9a4cc1d1df413b99": "Se rechazó {program}",
@@ -3968,6 +3967,7 @@
"90062342f04966ff": "Actualiza el servidor de T3 Code de este entorno para explorar pull requests.",
"5e7157db126f1641": "Issues no disponibles",
"42ade0e14ff6af94": "Actualiza el servidor de T3 Code de este entorno para explorar issues.",
+ "6435447ce7656f13": "Mostrar {label}",
"993dcd04611f9571": "Guardar de forma segura",
"ccbe48efc8e30c52": "¿Eliminar el chat lateral \"{title}\"?",
"3a859b690f41e899": "Esto borra de forma permanente su historial de conversación.",
@@ -4698,6 +4698,7 @@
"82d82cdbe3b0f975": "{size} · Usa {shortcut} para mantener en línea un texto pegado grande.",
"247cd77b35ddb586": "''{name}'' no se pudo leer como imagen.",
"7eccb44d5449e777": "''{name}'' es demasiado grande para adjuntarlo, incluso después de comprimirlo.",
+ "d07dd6dfd269680a": "No se pudo restaurar {names}: el cuadro de mensaje está en su límite de {limit} adjuntos.",
"1d4059658a0ab500": "¿Quitar {name} del mensaje?\nSe menciona en tu texto; al quitarlo también se quitan todas las referencias.",
"86261d5bd0651358": "¿Quitar esta imagen del mensaje?\nSe menciona en tu texto; al quitarla también se quitan todas las referencias.",
"f70c49e9f30807a3": "El texto pegado es demasiado grande para este mensaje",
@@ -4770,7 +4771,6 @@
"c809a3c353e67a28": "El almacenamiento del navegador rechazó la actualización, así que esta entrada podría seguir ahí tras recargar.",
"1a4bc01f0ca772c2": "{names} superó el límite de tamaño del stash cuando se guardó este prompt.",
"bb3b4ad32b596e11": "No se pudo leer {names} cuando se guardó este prompt.",
- "d07dd6dfd269680a": "No se pudo restaurar {names}: el cuadro de mensaje está en su límite de {limit} adjuntos.",
"7e4a6a2c84d34a80": "{names}: los archivos del stash se conservan 24 horas y esta subida caducó. Vuelve a adjuntar el archivo.",
"1e3ede33afee71ba": "Algunos adjuntos no se restauraron",
"98c76143d9aae871": "Puede que la entrada del stash vuelva",
@@ -8853,11 +8853,14 @@
"4cea6be0fe6be16f": "No se pudieron cargar los entornos vinculados",
"25b74062dc03079e": "No hay entornos vinculados",
"6698127fcc912f23": "Vincula otra máquina que ejecute T3 Code, como un VPS, para que los agentes de aquí puedan iniciar y controlar hilos allí.",
+ "82a0120f80907e97": "{via} could not get a pairing code from {target}",
+ "883abe5832a6732e": "Enter its address and a pairing code from it instead.",
"e1789f863205ad5a": "No se pudo vincular el entorno",
"836dde1b729e6f0a": "{source} y {target} vinculados en ambos sentidos",
"40cde51afa218290": "{label} vinculado",
"ca4e4015b89ed9a8": "No se pudo vincular {target} de vuelta a {source}",
"64ac3d1579ca9f5b": "Vincular {source} con {target}",
+ "5f2e20c62a4fece3": "{via} links to {target} at full access, so it gets the pairing code. No code to paste.",
"fb71127e5746a6bc": "Desde Compartir y acceso allí, o t3 pair",
"1e3fee7084791773": "Vincular también {target} de vuelta a {source}",
"ea34a190b0bd804c": "Los agentes de {target} podrán trabajar también en {source}.",
diff --git a/apps/web/src/i18n/translations/fr.json b/apps/web/src/i18n/translations/fr.json
index 7db0e4feae9e..76e5b495fcda 100644
--- a/apps/web/src/i18n/translations/fr.json
+++ b/apps/web/src/i18n/translations/fr.json
@@ -155,10 +155,9 @@
"0cb7a36802fe8089": "Le filtre {number} a besoin d’un chemin sous body, headers ou query.",
"1fa38fb049c6b56e": "Le filtre {number} a besoin d’un chemin sous body, headers ou query, et d’au moins une valeur.",
"31ec02bdcb3920d1": "Le filtre {number} a besoin d’un chemin sous body, headers ou query, et d’une valeur.",
+ "62ae4688ece05590": "Stocké de façon sécurisée, jamais montré à l’agent",
"81f613bb68d85bb7": "Hors de la discussion, dans un fichier privé que les commandes de cet agent peuvent lire pendant 24 heures",
"07b56c0c12bd2de1": "Hors de la discussion, dans des fichiers privés que les commandes de cet agent peuvent lire pendant 24 heures",
- "6435447ce7656f13": "Afficher {label}",
- "62ae4688ece05590": "Stocké de façon sécurisée, jamais montré à l’agent",
"8c2d901183b4e219": "Collez le secret",
"610aea624f895a78": "Enregistré de façon sécurisée et gardé privé",
"329b7854b7e0546e": "Utilisez une référence 1Password comme {example}.",
@@ -892,6 +891,11 @@
"2605da0149cd15f1": "Compactage du contexte",
"39a82db18ca50c21": "Contexte compacté de {before} → {after} tokens",
"885ae08a2160a158": "Contexte compacté",
+ "4d4981a1c5bd9728": "Exécution de la commande",
+ "a078225c5f197cd2": "Commande en échec",
+ "37ab148aaa486051": "Commande refusée",
+ "0112efa1861c7a30": "Commande arrêtée",
+ "930808342aac8010": "Commande exécutée",
"3ab6b281a0991766": "{count, plural, =1 {Pull requests associées vérifiées} other {Pull requests associées vérifiées {count} fois}}",
"857e92a89b6b6257": "{count, plural, one {{count} fichier lu} other {{count} fichiers lus}}",
"466ac7fcdb97bb76": "{count, plural, one {{count} fichier modifié} other {{count} fichiers modifiés}}",
@@ -1387,7 +1391,6 @@
"4c9a0b64f128da3a": "Nouvelle tentative dans {delay} s.",
"5de030e595796117": "Fil créé",
"c392becd445ecdba": "Réflexion",
- "930808342aac8010": "Commande exécutée",
"c01f9d3f3624c903": "Commande",
"fc933cf9b3edd743": "{fileName} modifié",
"9bdd23eb0206783f": "Modification de fichier",
@@ -3729,10 +3732,6 @@
"ac511f991a3c1fab": "Recherche web",
"07e65dba2b16d3f7": "{count, plural, one {{path} +{count} autre} other {{path} +{count} autres}}",
"6ab96e26bda35288": "Réflexion",
- "4d4981a1c5bd9728": "Exécution de la commande",
- "a078225c5f197cd2": "Commande en échec",
- "37ab148aaa486051": "Commande refusée",
- "0112efa1861c7a30": "Commande arrêtée",
"dc8ddcad32e2a50c": "Exécution de {program}",
"f0db8caadd8f120e": "Échec de {program}",
"9a4cc1d1df413b99": "{program} refusé",
@@ -3969,6 +3968,7 @@
"90062342f04966ff": "Mettez à jour le serveur T3 Code de cet environnement pour parcourir les pull requests.",
"5e7157db126f1641": "Tickets indisponibles",
"42ade0e14ff6af94": "Mettez à jour le serveur T3 Code de cet environnement pour parcourir les tickets.",
+ "6435447ce7656f13": "Afficher {label}",
"993dcd04611f9571": "Enregistrer de façon sécurisée",
"ccbe48efc8e30c52": "Supprimer la discussion annexe « {title} » ?",
"3a859b690f41e899": "Cela efface définitivement son historique de conversation.",
@@ -4699,6 +4699,7 @@
"82d82cdbe3b0f975": "{size} · Utilisez {shortcut} pour garder un long collage dans le texte.",
"247cd77b35ddb586": "« {name} » n’a pas pu être lu comme une image.",
"7eccb44d5449e777": "« {name} » est trop volumineux pour être joint, même après compression.",
+ "d07dd6dfd269680a": "{names} n’a pas pu être restauré : la zone de saisie a atteint sa limite de {limit} pièces jointes.",
"1d4059658a0ab500": "Retirer {name} du message ?\nIl est référencé dans votre texte ; le retirer supprime aussi toutes ses références.",
"86261d5bd0651358": "Retirer cette image du message ?\nElle est référencée dans votre texte ; la retirer supprime aussi toutes ses références.",
"f70c49e9f30807a3": "Le texte collé est trop long pour ce message",
@@ -4771,7 +4772,6 @@
"c809a3c353e67a28": "Le stockage du navigateur a refusé la mise à jour ; cette entrée pourrait donc encore être là après un rechargement.",
"1a4bc01f0ca772c2": "{names} dépassait la taille limite de la réserve lors de l’enregistrement de ce prompt.",
"bb3b4ad32b596e11": "{names} n’a pas pu être lu lors de l’enregistrement de ce prompt.",
- "d07dd6dfd269680a": "{names} n’a pas pu être restauré : la zone de saisie a atteint sa limite de {limit} pièces jointes.",
"7e4a6a2c84d34a80": "{names} : les fichiers mis de côté sont conservés 24 heures et cet envoi a expiré. Joignez à nouveau le fichier.",
"1e3ede33afee71ba": "Certaines pièces jointes n’ont pas été restaurées",
"98c76143d9aae871": "L’entrée de la réserve peut revenir",
@@ -8855,11 +8855,14 @@
"4cea6be0fe6be16f": "Impossible de charger les environnements associés",
"25b74062dc03079e": "Aucun environnement associé",
"6698127fcc912f23": "Associez une autre machine qui exécute T3 Code, comme un VPS, pour que les agents d’ici puissent y lancer et piloter des fils.",
+ "82a0120f80907e97": "{via} could not get a pairing code from {target}",
+ "883abe5832a6732e": "Enter its address and a pairing code from it instead.",
"e1789f863205ad5a": "Impossible d’associer l’environnement",
"836dde1b729e6f0a": "{source} et {target} associés dans les deux sens",
"40cde51afa218290": "{label} associé",
"ca4e4015b89ed9a8": "Impossible d’associer {target} en retour à {source}",
"64ac3d1579ca9f5b": "Associer {source} à {target}",
+ "5f2e20c62a4fece3": "{via} links to {target} at full access, so it gets the pairing code. No code to paste.",
"fb71127e5746a6bc": "Depuis Partage et accès sur cette machine, ou t3 pair",
"1e3fee7084791773": "Associer aussi {target} en retour à {source}",
"ea34a190b0bd804c": "Les agents de {target} pourront alors aussi travailler sur {source}.",
diff --git a/apps/web/src/i18n/translations/ja.json b/apps/web/src/i18n/translations/ja.json
index e6fdbc5afb73..620bb58e91b9 100644
--- a/apps/web/src/i18n/translations/ja.json
+++ b/apps/web/src/i18n/translations/ja.json
@@ -155,10 +155,9 @@
"0cb7a36802fe8089": "フィルター {number} には body、headers、query 配下のパスが必要です。",
"1fa38fb049c6b56e": "フィルター {number} には body、headers、query 配下のパスと、少なくとも 1 つの値が必要です。",
"31ec02bdcb3920d1": "フィルター {number} には body、headers、query 配下のパスと値が必要です。",
+ "62ae4688ece05590": "安全に保存され、エージェントには表示されません",
"81f613bb68d85bb7": "チャットには表示せず、このエージェントのコマンドが 24 時間読み取れる非公開ファイルに保存します",
"07b56c0c12bd2de1": "チャットには表示せず、このエージェントのコマンドが 24 時間読み取れる非公開ファイルに保存します",
- "6435447ce7656f13": "{label}を表示",
- "62ae4688ece05590": "安全に保存され、エージェントには表示されません",
"8c2d901183b4e219": "シークレットを貼り付け",
"610aea624f895a78": "安全に保存し、非公開にしました",
"329b7854b7e0546e": "{example} のような 1Password の参照を使用してください。",
@@ -892,6 +891,11 @@
"2605da0149cd15f1": "コンテキストを圧縮しています",
"39a82db18ca50c21": "コンテキストを圧縮しました ({before} → {after} トークン)",
"885ae08a2160a158": "コンテキストを圧縮しました",
+ "4d4981a1c5bd9728": "コマンドを実行中",
+ "a078225c5f197cd2": "失敗したコマンド",
+ "37ab148aaa486051": "拒否されたコマンド",
+ "0112efa1861c7a30": "停止したコマンド",
+ "930808342aac8010": "コマンドを実行しました",
"3ab6b281a0991766": "{count, plural, =1 {リンクされたプルリクエストを確認しました} other {リンクされたプルリクエストを {count} 回確認しました}}",
"857e92a89b6b6257": "{count, plural, other {{count} 個のファイルを読み取りました}}",
"466ac7fcdb97bb76": "{count, plural, other {{count} 個のファイルを変更しました}}",
@@ -1387,7 +1391,6 @@
"4c9a0b64f128da3a": "{delay} 秒後に再試行します。",
"5de030e595796117": "スレッドを作成しました",
"c392becd445ecdba": "思考中",
- "930808342aac8010": "コマンドを実行しました",
"c01f9d3f3624c903": "コマンド",
"fc933cf9b3edd743": "{fileName} を変更しました",
"9bdd23eb0206783f": "ファイルの変更",
@@ -3722,10 +3725,6 @@
"ac511f991a3c1fab": "Web 検索",
"07e65dba2b16d3f7": "{count, plural, other {{path} と他 {count} 件}}",
"6ab96e26bda35288": "思考中",
- "4d4981a1c5bd9728": "コマンドを実行中",
- "a078225c5f197cd2": "失敗したコマンド",
- "37ab148aaa486051": "拒否されたコマンド",
- "0112efa1861c7a30": "停止したコマンド",
"dc8ddcad32e2a50c": "{program} を実行中",
"f0db8caadd8f120e": "{program} が失敗しました",
"9a4cc1d1df413b99": "{program} が拒否されました",
@@ -3959,6 +3958,7 @@
"90062342f04966ff": "プルリクエストを参照するには、この環境の T3 Code サーバーを更新してください。",
"5e7157db126f1641": "Issue を利用できません",
"42ade0e14ff6af94": "Issue を参照するには、この環境の T3 Code サーバーを更新してください。",
+ "6435447ce7656f13": "{label}を表示",
"993dcd04611f9571": "安全に保存",
"ccbe48efc8e30c52": "サイドチャット「{title}」を削除しますか?",
"3a859b690f41e899": "会話履歴が完全に消去されます。",
@@ -4688,6 +4688,7 @@
"82d82cdbe3b0f975": "{size} · 大きな貼り付けをインラインのままにするには {shortcut} を使用します。",
"247cd77b35ddb586": "「{name}」を画像として読み取れませんでした。",
"7eccb44d5449e777": "「{name}」は圧縮しても大きすぎるため、添付できません。",
+ "d07dd6dfd269680a": "{names} を復元できませんでした: 入力欄の添付ファイルが上限の {limit} 個に達しています。",
"1d4059658a0ab500": "{name} をメッセージから削除しますか?\nテキスト内で参照されているため、削除するとすべての参照も削除されます。",
"86261d5bd0651358": "この画像をメッセージから削除しますか?\nテキスト内で参照されているため、削除するとすべての参照も削除されます。",
"f70c49e9f30807a3": "貼り付けたテキストがこのメッセージには大きすぎます",
@@ -4760,7 +4761,6 @@
"c809a3c353e67a28": "ブラウザーのストレージが更新を拒否したため、再読み込み後もこの項目が残っている可能性があります。",
"1a4bc01f0ca772c2": "このプロンプトの保存時に、{names} が退避のサイズ上限を超えました。",
"bb3b4ad32b596e11": "このプロンプトの保存時に、{names} を読み取れませんでした。",
- "d07dd6dfd269680a": "{names} を復元できませんでした: 入力欄の添付ファイルが上限の {limit} 個に達しています。",
"7e4a6a2c84d34a80": "{names}: 退避したファイルは 24 時間保持されますが、このアップロードは期限切れです。ファイルをもう一度添付してください。",
"1e3ede33afee71ba": "一部の添付ファイルは復元されませんでした",
"98c76143d9aae871": "退避した項目が戻る可能性があります",
@@ -8811,11 +8811,14 @@
"4cea6be0fe6be16f": "リンクされた環境を読み込めませんでした",
"25b74062dc03079e": "リンクされた環境はありません",
"6698127fcc912f23": "VPS など T3 Code を実行している別のマシンをリンクすると、ここのエージェントがそこでスレッドを起動して操作できます。",
+ "82a0120f80907e97": "{via} could not get a pairing code from {target}",
+ "883abe5832a6732e": "Enter its address and a pairing code from it instead.",
"e1789f863205ad5a": "環境をリンクできませんでした",
"836dde1b729e6f0a": "{source} と {target} を双方向にリンクしました",
"40cde51afa218290": "{label} をリンクしました",
"ca4e4015b89ed9a8": "{target} から {source} へ逆方向にリンクできませんでした",
"64ac3d1579ca9f5b": "{source} を {target} にリンク",
+ "5f2e20c62a4fece3": "{via} links to {target} at full access, so it gets the pairing code. No code to paste.",
"fb71127e5746a6bc": "リンク先の「共有とアクセス」、または t3 pair から",
"1e3fee7084791773": "{target} から {source} へも逆方向にリンクする",
"ea34a190b0bd804c": "{target} のエージェントも {source} で作業できるようになります。",
diff --git a/apps/web/src/i18n/translations/ko.json b/apps/web/src/i18n/translations/ko.json
index e3e6fa9e3ce2..8c1e6161fd5b 100644
--- a/apps/web/src/i18n/translations/ko.json
+++ b/apps/web/src/i18n/translations/ko.json
@@ -155,10 +155,9 @@
"0cb7a36802fe8089": "필터 {number}에는 body, headers 또는 query 아래의 경로가 필요합니다.",
"1fa38fb049c6b56e": "필터 {number}에는 body, headers 또는 query 아래의 경로와 값이 하나 이상 필요합니다.",
"31ec02bdcb3920d1": "필터 {number}에는 body, headers 또는 query 아래의 경로와 값이 필요합니다.",
+ "62ae4688ece05590": "안전하게 저장되며 에이전트에게 표시되지 않습니다",
"81f613bb68d85bb7": "채팅에 표시하지 않고, 이 에이전트의 명령이 24시간 동안 읽을 수 있는 비공개 파일에 보관됩니다",
"07b56c0c12bd2de1": "채팅에 표시하지 않고, 이 에이전트의 명령이 24시간 동안 읽을 수 있는 비공개 파일들에 보관됩니다",
- "6435447ce7656f13": "{label} 표시",
- "62ae4688ece05590": "안전하게 저장되며 에이전트에게 표시되지 않습니다",
"8c2d901183b4e219": "시크릿 붙여 넣기",
"610aea624f895a78": "안전하게 저장되어 비공개로 유지됩니다",
"329b7854b7e0546e": "{example}과(와) 같은 1Password 참조를 사용하세요.",
@@ -892,6 +891,11 @@
"2605da0149cd15f1": "컨텍스트 압축 중",
"39a82db18ca50c21": "컨텍스트 압축됨: 토큰 {before} → {after}",
"885ae08a2160a158": "컨텍스트 압축됨",
+ "4d4981a1c5bd9728": "명령 실행 중",
+ "a078225c5f197cd2": "명령 실패",
+ "37ab148aaa486051": "명령 거부됨",
+ "0112efa1861c7a30": "명령 중지됨",
+ "930808342aac8010": "명령 실행함",
"3ab6b281a0991766": "{count, plural, =1 {연결된 풀 리퀘스트 확인함} other {연결된 풀 리퀘스트 {count}번 확인함}}",
"857e92a89b6b6257": "{count, plural, other {파일 {count}개 읽음}}",
"466ac7fcdb97bb76": "{count, plural, other {파일 {count}개 변경함}}",
@@ -1387,7 +1391,6 @@
"4c9a0b64f128da3a": "{delay}초 후 다시 시도합니다.",
"5de030e595796117": "스레드 만듦",
"c392becd445ecdba": "생각 중",
- "930808342aac8010": "명령 실행함",
"c01f9d3f3624c903": "명령",
"fc933cf9b3edd743": "{fileName} 변경함",
"9bdd23eb0206783f": "파일 변경",
@@ -3722,10 +3725,6 @@
"ac511f991a3c1fab": "웹 검색",
"07e65dba2b16d3f7": "{count, plural, other {{path} 외 {count}개}}",
"6ab96e26bda35288": "생각 중",
- "4d4981a1c5bd9728": "명령 실행 중",
- "a078225c5f197cd2": "명령 실패",
- "37ab148aaa486051": "명령 거부됨",
- "0112efa1861c7a30": "명령 중지됨",
"dc8ddcad32e2a50c": "{program} 실행 중",
"f0db8caadd8f120e": "{program} 실패",
"9a4cc1d1df413b99": "{program} 거부됨",
@@ -3957,6 +3956,7 @@
"90062342f04966ff": "풀 리퀘스트를 탐색하려면 이 환경의 T3 Code 서버를 업데이트하세요.",
"5e7157db126f1641": "이슈를 사용할 수 없음",
"42ade0e14ff6af94": "이슈를 탐색하려면 이 환경의 T3 Code 서버를 업데이트하세요.",
+ "6435447ce7656f13": "{label} 표시",
"993dcd04611f9571": "안전하게 저장",
"ccbe48efc8e30c52": "사이드 채팅 \"{title}\"을(를) 삭제할까요?",
"3a859b690f41e899": "대화 기록이 영구적으로 삭제됩니다.",
@@ -4685,6 +4685,7 @@
"82d82cdbe3b0f975": "{size} · 큰 붙여넣기를 본문에 유지하려면 {shortcut}을(를) 사용하세요.",
"247cd77b35ddb586": "‘{name}’을(를) 이미지로 읽을 수 없습니다.",
"7eccb44d5449e777": "‘{name}’은(는) 압축 후에도 너무 커서 첨부할 수 없습니다.",
+ "d07dd6dfd269680a": "{names}을(를) 복원할 수 없습니다: 입력창이 첨부 파일 한도({limit}개)에 도달했습니다.",
"1d4059658a0ab500": "메시지에서 {name}을(를) 제거할까요?\n텍스트에서 참조하고 있어 제거하면 모든 참조도 함께 제거됩니다.",
"86261d5bd0651358": "메시지에서 이 이미지를 제거할까요?\n텍스트에서 참조하고 있어 제거하면 모든 참조도 함께 제거됩니다.",
"f70c49e9f30807a3": "붙여 넣은 텍스트가 이 메시지에 비해 너무 큽니다",
@@ -4757,7 +4758,6 @@
"c809a3c353e67a28": "브라우저 저장소가 업데이트를 거부해서 새로 고친 후에도 이 항목이 남아 있을 수 있습니다.",
"1a4bc01f0ca772c2": "이 프롬프트를 저장할 때 {names}이(가) 임시 저장함 크기 한도를 초과했습니다.",
"bb3b4ad32b596e11": "이 프롬프트를 저장할 때 {names}을(를) 읽을 수 없었습니다.",
- "d07dd6dfd269680a": "{names}을(를) 복원할 수 없습니다: 입력창이 첨부 파일 한도({limit}개)에 도달했습니다.",
"7e4a6a2c84d34a80": "{names}: 임시 저장한 파일은 24시간 동안 유지되며 이 업로드는 만료되었습니다. 파일을 다시 첨부하세요.",
"1e3ede33afee71ba": "일부 첨부 파일이 복원되지 않았습니다",
"98c76143d9aae871": "임시 저장함 항목이 다시 나타날 수 있습니다",
@@ -8814,11 +8814,14 @@
"4cea6be0fe6be16f": "연결된 환경을 불러올 수 없습니다",
"25b74062dc03079e": "연결된 환경 없음",
"6698127fcc912f23": "VPS처럼 T3 Code를 실행하는 다른 머신을 연결하면 이곳의 에이전트가 그곳에서 스레드를 시작하고 조작할 수 있습니다.",
+ "82a0120f80907e97": "{via} could not get a pairing code from {target}",
+ "883abe5832a6732e": "Enter its address and a pairing code from it instead.",
"e1789f863205ad5a": "환경을 연결할 수 없습니다",
"836dde1b729e6f0a": "{source}와(과) {target}을(를) 양방향으로 연결함",
"40cde51afa218290": "{label} 연결됨",
"ca4e4015b89ed9a8": "{target}에서 {source}(으)로 반대 방향 연결을 할 수 없습니다",
"64ac3d1579ca9f5b": "{source}을(를) {target}에 연결",
+ "5f2e20c62a4fece3": "{via} links to {target} at full access, so it gets the pairing code. No code to paste.",
"fb71127e5746a6bc": "그곳의 공유 및 액세스 또는 t3 pair에서",
"1e3fee7084791773": "{target}에서 {source}(으)로도 반대 방향 연결",
"ea34a190b0bd804c": "그러면 {target}의 에이전트도 {source}에서 작업할 수 있습니다.",
diff --git a/apps/web/src/i18n/translations/pt-BR.json b/apps/web/src/i18n/translations/pt-BR.json
index 83d91c4b6ff9..3ec7564c958b 100644
--- a/apps/web/src/i18n/translations/pt-BR.json
+++ b/apps/web/src/i18n/translations/pt-BR.json
@@ -155,10 +155,9 @@
"0cb7a36802fe8089": "O filtro {number} precisa de um caminho em body, headers ou query.",
"1fa38fb049c6b56e": "O filtro {number} precisa de um caminho em body, headers ou query e de pelo menos um valor.",
"31ec02bdcb3920d1": "O filtro {number} precisa de um caminho em body, headers ou query e de um valor.",
+ "62ae4688ece05590": "Armazenado com segurança, nunca mostrado ao agente",
"81f613bb68d85bb7": "Fora do chat, em um arquivo privado que os comandos deste agente podem ler por 24 horas",
"07b56c0c12bd2de1": "Fora do chat, em arquivos privados que os comandos deste agente podem ler por 24 horas",
- "6435447ce7656f13": "Mostrar {label}",
- "62ae4688ece05590": "Armazenado com segurança, nunca mostrado ao agente",
"8c2d901183b4e219": "Cole o segredo",
"610aea624f895a78": "Salvo com segurança e mantido privado",
"329b7854b7e0546e": "Use uma referência do 1Password como {example}.",
@@ -892,6 +891,11 @@
"2605da0149cd15f1": "Compactando o contexto",
"39a82db18ca50c21": "Contexto compactado de {before} → {after} tokens",
"885ae08a2160a158": "Contexto compactado",
+ "4d4981a1c5bd9728": "Executando comando",
+ "a078225c5f197cd2": "Comando com falha",
+ "37ab148aaa486051": "Comando recusado",
+ "0112efa1861c7a30": "Comando interrompido",
+ "930808342aac8010": "Comando executado",
"3ab6b281a0991766": "{count, plural, =1 {Verificou os pull requests vinculados} other {Verificou os pull requests vinculados {count} vezes}}",
"857e92a89b6b6257": "{count, plural, one {Leu {count} arquivo} other {Leu {count} arquivos}}",
"466ac7fcdb97bb76": "{count, plural, one {Alterou {count} arquivo} other {Alterou {count} arquivos}}",
@@ -1387,7 +1391,6 @@
"4c9a0b64f128da3a": "Tentando novamente em {delay}s.",
"5de030e595796117": "Thread criada",
"c392becd445ecdba": "Pensando",
- "930808342aac8010": "Comando executado",
"c01f9d3f3624c903": "Comando",
"fc933cf9b3edd743": "{fileName} alterado",
"9bdd23eb0206783f": "Alteração de arquivo",
@@ -3729,10 +3732,6 @@
"ac511f991a3c1fab": "Pesquisa na web",
"07e65dba2b16d3f7": "{count, plural, one {{path} e mais {count}} other {{path} e mais {count}}}",
"6ab96e26bda35288": "Pensando",
- "4d4981a1c5bd9728": "Executando comando",
- "a078225c5f197cd2": "Comando com falha",
- "37ab148aaa486051": "Comando recusado",
- "0112efa1861c7a30": "Comando interrompido",
"dc8ddcad32e2a50c": "Executando {program}",
"f0db8caadd8f120e": "{program} falhou",
"9a4cc1d1df413b99": "{program} recusado",
@@ -3969,6 +3968,7 @@
"90062342f04966ff": "Atualize o servidor do T3 Code deste ambiente para navegar pelos pull requests.",
"5e7157db126f1641": "Issues indisponíveis",
"42ade0e14ff6af94": "Atualize o servidor do T3 Code deste ambiente para navegar pelas issues.",
+ "6435447ce7656f13": "Mostrar {label}",
"993dcd04611f9571": "Salvar com segurança",
"ccbe48efc8e30c52": "Excluir o chat paralelo \"{title}\"?",
"3a859b690f41e899": "Isso apaga permanentemente o histórico dele.",
@@ -4698,6 +4698,7 @@
"82d82cdbe3b0f975": "{size} · Use {shortcut} para manter uma colagem grande no texto.",
"247cd77b35ddb586": "Não foi possível ler ''{name}'' como imagem.",
"7eccb44d5449e777": "''{name}'' é grande demais para anexar, mesmo após a compressão.",
+ "d07dd6dfd269680a": "Não foi possível restaurar {names}: o editor de mensagens atingiu o limite de {limit} anexos.",
"1d4059658a0ab500": "Remover {name} da mensagem?\nEle é referenciado no seu texto; removê-lo também remove todas as referências.",
"86261d5bd0651358": "Remover esta imagem da mensagem?\nEla é referenciada no seu texto; removê-la também remove todas as referências.",
"f70c49e9f30807a3": "O texto colado é grande demais para esta mensagem",
@@ -4770,7 +4771,6 @@
"c809a3c353e67a28": "O armazenamento do navegador rejeitou a atualização, então este item ainda pode estar lá após recarregar.",
"1a4bc01f0ca772c2": "{names} excedeu o limite de tamanho dos guardados quando este prompt foi salvo.",
"bb3b4ad32b596e11": "Não foi possível ler {names} quando este prompt foi salvo.",
- "d07dd6dfd269680a": "Não foi possível restaurar {names}: o editor de mensagens atingiu o limite de {limit} anexos.",
"7e4a6a2c84d34a80": "{names}: os arquivos guardados são mantidos por 24 horas e este upload expirou. Anexe o arquivo novamente.",
"1e3ede33afee71ba": "Alguns anexos não foram restaurados",
"98c76143d9aae871": "O item guardado pode voltar",
@@ -8854,11 +8854,14 @@
"4cea6be0fe6be16f": "Não foi possível carregar os ambientes vinculados",
"25b74062dc03079e": "Nenhum ambiente vinculado",
"6698127fcc912f23": "Vincule outra máquina que rode o T3 Code, como uma VPS, para que os agentes daqui possam iniciar e conduzir threads lá.",
+ "82a0120f80907e97": "{via} could not get a pairing code from {target}",
+ "883abe5832a6732e": "Enter its address and a pairing code from it instead.",
"e1789f863205ad5a": "Não foi possível vincular o ambiente",
"836dde1b729e6f0a": "{source} e {target} vinculados nos dois sentidos",
"40cde51afa218290": "{label} vinculado",
"ca4e4015b89ed9a8": "Não foi possível vincular {target} de volta a {source}",
"64ac3d1579ca9f5b": "Vincular {source} a {target}",
+ "5f2e20c62a4fece3": "{via} links to {target} at full access, so it gets the pairing code. No code to paste.",
"fb71127e5746a6bc": "Em Compartilhamento e acesso de lá, ou t3 pair",
"1e3fee7084791773": "Vincular também {target} de volta a {source}",
"ea34a190b0bd804c": "Os agentes de {target} poderão trabalhar também em {source}.",
diff --git a/apps/web/src/i18n/translations/ru.json b/apps/web/src/i18n/translations/ru.json
index b142c9ea34fa..ca116084b2fd 100644
--- a/apps/web/src/i18n/translations/ru.json
+++ b/apps/web/src/i18n/translations/ru.json
@@ -155,10 +155,9 @@
"0cb7a36802fe8089": "Фильтру {number} нужен путь в body, headers или query.",
"1fa38fb049c6b56e": "Фильтру {number} нужен путь в body, headers или query и хотя бы одно значение.",
"31ec02bdcb3920d1": "Фильтру {number} нужен путь в body, headers или query и значение.",
+ "62ae4688ece05590": "Хранится надёжно, агенту никогда не показывается",
"81f613bb68d85bb7": "Не попадает в чат: хранится в закрытом файле, который команды этого агента могут читать 24 часа",
"07b56c0c12bd2de1": "Не попадает в чат: хранится в закрытых файлах, которые команды этого агента могут читать 24 часа",
- "6435447ce7656f13": "Показать {label}",
- "62ae4688ece05590": "Хранится надёжно, агенту никогда не показывается",
"8c2d901183b4e219": "Вставьте секрет",
"610aea624f895a78": "Сохранено надёжно и скрыто",
"329b7854b7e0546e": "Используйте ссылку 1Password, например {example}.",
@@ -892,6 +891,11 @@
"2605da0149cd15f1": "Сжатие контекста",
"39a82db18ca50c21": "Контекст сжат: {before} → {after} токенов",
"885ae08a2160a158": "Контекст сжат",
+ "4d4981a1c5bd9728": "Выполняется команда",
+ "a078225c5f197cd2": "Команда с ошибкой",
+ "37ab148aaa486051": "Команда отклонена",
+ "0112efa1861c7a30": "Команда остановлена",
+ "930808342aac8010": "Команда выполнена",
"3ab6b281a0991766": "{count, plural, =1 {Проверены привязанные пул-реквесты} one {Привязанные пул-реквесты проверены {count} раз} few {Привязанные пул-реквесты проверены {count} раза} many {Привязанные пул-реквесты проверены {count} раз} other {Привязанные пул-реквесты проверены {count} раза}}",
"857e92a89b6b6257": "{count, plural, one {Прочитан {count} файл} few {Прочитано {count} файла} many {Прочитано {count} файлов} other {Прочитано {count} файла}}",
"466ac7fcdb97bb76": "{count, plural, one {Изменён {count} файл} few {Изменено {count} файла} many {Изменено {count} файлов} other {Изменено {count} файла}}",
@@ -1387,7 +1391,6 @@
"4c9a0b64f128da3a": "Повтор через {delay} с.",
"5de030e595796117": "Тред создан",
"c392becd445ecdba": "Думает",
- "930808342aac8010": "Команда выполнена",
"c01f9d3f3624c903": "Команда",
"fc933cf9b3edd743": "Изменён {fileName}",
"9bdd23eb0206783f": "Изменение файла",
@@ -3729,10 +3732,6 @@
"ac511f991a3c1fab": "Поиск в интернете",
"07e65dba2b16d3f7": "{count, plural, one {{path} и ещё {count}} few {{path} и ещё {count}} many {{path} и ещё {count}} other {{path} и ещё {count}}}",
"6ab96e26bda35288": "Думает",
- "4d4981a1c5bd9728": "Выполняется команда",
- "a078225c5f197cd2": "Команда с ошибкой",
- "37ab148aaa486051": "Команда отклонена",
- "0112efa1861c7a30": "Команда остановлена",
"dc8ddcad32e2a50c": "Выполняется {program}",
"f0db8caadd8f120e": "Ошибка {program}",
"9a4cc1d1df413b99": "Отклонено: {program}",
@@ -3969,6 +3968,7 @@
"90062342f04966ff": "Обновите сервер T3 Code этого окружения, чтобы просматривать пул-реквесты.",
"5e7157db126f1641": "Issue недоступны",
"42ade0e14ff6af94": "Обновите сервер T3 Code в этом окружении, чтобы просматривать issue.",
+ "6435447ce7656f13": "Показать {label}",
"993dcd04611f9571": "Сохранить безопасно",
"ccbe48efc8e30c52": "Удалить боковой чат «{title}»?",
"3a859b690f41e899": "Его история беседы будет удалена безвозвратно.",
@@ -4698,6 +4698,7 @@
"82d82cdbe3b0f975": "{size} · {shortcut} — оставить большую вставку в тексте.",
"247cd77b35ddb586": "''{name}'' не удалось прочитать как изображение.",
"7eccb44d5449e777": "''{name}'' слишком большой для прикрепления даже после сжатия.",
+ "d07dd6dfd269680a": "{names} не удалось восстановить: в поле ввода достигнут лимит вложений ({limit}).",
"1d4059658a0ab500": "Удалить {name} из сообщения?\nНа него есть ссылки в тексте; при удалении все ссылки тоже будут удалены.",
"86261d5bd0651358": "Удалить это изображение из сообщения?\nНа него есть ссылки в тексте; при удалении все ссылки тоже будут удалены.",
"f70c49e9f30807a3": "Вставленный текст слишком велик для этого сообщения",
@@ -4770,7 +4771,6 @@
"c809a3c353e67a28": "Хранилище браузера отклонило обновление, поэтому запись может остаться после перезагрузки.",
"1a4bc01f0ca772c2": "{names} превысили лимит размера тайника при сохранении этого промпта.",
"bb3b4ad32b596e11": "{names} не удалось прочитать при сохранении этого промпта.",
- "d07dd6dfd269680a": "{names} не удалось восстановить: в поле ввода достигнут лимит вложений ({limit}).",
"7e4a6a2c84d34a80": "{names}: спрятанные файлы хранятся 24 часа, срок этой загрузки истёк. Прикрепите файл снова.",
"1e3ede33afee71ba": "Некоторые вложения не восстановлены",
"98c76143d9aae871": "Запись тайника может вернуться",
@@ -8855,11 +8855,14 @@
"4cea6be0fe6be16f": "Не удалось загрузить привязанные окружения",
"25b74062dc03079e": "Нет привязанных окружений",
"6698127fcc912f23": "Свяжите другую машину с T3 Code, например VPS, чтобы агенты отсюда могли запускать треды там и управлять ими.",
+ "82a0120f80907e97": "{via} could not get a pairing code from {target}",
+ "883abe5832a6732e": "Enter its address and a pairing code from it instead.",
"e1789f863205ad5a": "Не удалось привязать окружение",
"836dde1b729e6f0a": "{source} и {target} привязаны в обе стороны",
"40cde51afa218290": "Привязано: {label}",
"ca4e4015b89ed9a8": "Не удалось привязать {target} в ответ к {source}",
"64ac3d1579ca9f5b": "Привязать {source} к {target}",
+ "5f2e20c62a4fece3": "{via} links to {target} at full access, so it gets the pairing code. No code to paste.",
"fb71127e5746a6bc": "Из раздела «Общий доступ» там или через t3 pair",
"1e3fee7084791773": "Также привязать {target} в ответ к {source}",
"ea34a190b0bd804c": "Тогда агенты на {target} смогут работать и на {source}.",
diff --git a/apps/web/src/i18n/translations/sv.json b/apps/web/src/i18n/translations/sv.json
index a06bf1651ec1..ad2de6905204 100644
--- a/apps/web/src/i18n/translations/sv.json
+++ b/apps/web/src/i18n/translations/sv.json
@@ -155,10 +155,9 @@
"0cb7a36802fe8089": "Filter {number} behöver en sökväg under body, headers eller query.",
"1fa38fb049c6b56e": "Filter {number} behöver en sökväg under body, headers eller query och minst ett värde.",
"31ec02bdcb3920d1": "Filter {number} behöver en sökväg under body, headers eller query och ett värde.",
+ "62ae4688ece05590": "Lagras säkert, visas aldrig för agenten",
"81f613bb68d85bb7": "Hålls utanför chatten, i en privat fil som den här agentens kommandon kan läsa i 24 timmar",
"07b56c0c12bd2de1": "Hålls utanför chatten, i privata filer som den här agentens kommandon kan läsa i 24 timmar",
- "6435447ce7656f13": "Visa {label}",
- "62ae4688ece05590": "Lagras säkert, visas aldrig för agenten",
"8c2d901183b4e219": "Klistra in hemligheten",
"610aea624f895a78": "Sparad säkert och hålls privat",
"329b7854b7e0546e": "Använd en 1Password-referens som {example}.",
@@ -892,6 +891,11 @@
"2605da0149cd15f1": "Komprimerar kontext",
"39a82db18ca50c21": "Kontexten komprimerades {before} → {after} token",
"885ae08a2160a158": "Kontexten komprimerades",
+ "4d4981a1c5bd9728": "Kör kommando",
+ "a078225c5f197cd2": "Misslyckat kommando",
+ "37ab148aaa486051": "Avböjt kommando",
+ "0112efa1861c7a30": "Stoppat kommando",
+ "930808342aac8010": "Körde kommando",
"3ab6b281a0991766": "{count, plural, =1 {Kontrollerade länkade pull requests} other {Kontrollerade länkade pull requests {count} gånger}}",
"857e92a89b6b6257": "{count, plural, one {Läste {count} fil} other {Läste {count} filer}}",
"466ac7fcdb97bb76": "{count, plural, one {Ändrade {count} fil} other {Ändrade {count} filer}}",
@@ -1387,7 +1391,6 @@
"4c9a0b64f128da3a": "Försöker igen om {delay} s.",
"5de030e595796117": "Skapade tråd",
"c392becd445ecdba": "Tänker",
- "930808342aac8010": "Körde kommando",
"c01f9d3f3624c903": "Kommando",
"fc933cf9b3edd743": "Ändrade {fileName}",
"9bdd23eb0206783f": "Filändring",
@@ -3729,10 +3732,6 @@
"ac511f991a3c1fab": "Webbsökning",
"07e65dba2b16d3f7": "{count, plural, one {{path} +{count} till} other {{path} +{count} till}}",
"6ab96e26bda35288": "Tänker",
- "4d4981a1c5bd9728": "Kör kommando",
- "a078225c5f197cd2": "Misslyckat kommando",
- "37ab148aaa486051": "Avböjt kommando",
- "0112efa1861c7a30": "Stoppat kommando",
"dc8ddcad32e2a50c": "Kör {program}",
"f0db8caadd8f120e": "Misslyckades: {program}",
"9a4cc1d1df413b99": "Avböjde {program}",
@@ -3969,6 +3968,7 @@
"90062342f04966ff": "Uppdatera den här miljöns T3 Code-server för att bläddra bland pull requests.",
"5e7157db126f1641": "Ärenden är inte tillgängliga",
"42ade0e14ff6af94": "Uppdatera T3 Code-servern i den här miljön för att bläddra bland ärenden.",
+ "6435447ce7656f13": "Visa {label}",
"993dcd04611f9571": "Spara säkert",
"ccbe48efc8e30c52": "Ta bort sidochatten ”{title}”?",
"3a859b690f41e899": "Det här rensar dess konversationshistorik permanent.",
@@ -4699,6 +4699,7 @@
"82d82cdbe3b0f975": "{size} · Använd {shortcut} för att behålla en stor inklistring i texten.",
"247cd77b35ddb586": "”{name}” kunde inte läsas som en bild.",
"7eccb44d5449e777": "”{name}” är för stor att bifoga, även efter komprimering.",
+ "d07dd6dfd269680a": "{names} kunde inte återställas: inmatningsfältet har nått gränsen på {limit} bilagor.",
"1d4059658a0ab500": "Ta bort {name} från meddelandet?\nDen refereras i din text; om du tar bort den tas även alla referenser bort.",
"86261d5bd0651358": "Ta bort den här bilden från meddelandet?\nDen refereras i din text; om du tar bort den tas även alla referenser bort.",
"f70c49e9f30807a3": "Den inklistrade texten är för stor för det här meddelandet",
@@ -4771,7 +4772,6 @@
"c809a3c353e67a28": "Webbläsarens lagring avvisade uppdateringen, så posten kan finnas kvar efter en omladdning.",
"1a4bc01f0ca772c2": "{names} överskred storleksgränsen för undanlagda promptar när prompten sparades.",
"bb3b4ad32b596e11": "{names} kunde inte läsas när prompten sparades.",
- "d07dd6dfd269680a": "{names} kunde inte återställas: inmatningsfältet har nått gränsen på {limit} bilagor.",
"7e4a6a2c84d34a80": "{names}: undanlagda filer behålls i 24 timmar och den här uppladdningen har gått ut. Bifoga filen igen.",
"1e3ede33afee71ba": "Vissa bilagor återställdes inte",
"98c76143d9aae871": "Den undanlagda prompten kan komma tillbaka",
@@ -8861,11 +8861,14 @@
"4cea6be0fe6be16f": "Kunde inte läsa in länkade miljöer",
"25b74062dc03079e": "Inga länkade miljöer",
"6698127fcc912f23": "Länka en annan dator som kör T3 Code, till exempel en VPS, så att agenter här kan starta och styra trådar där.",
+ "82a0120f80907e97": "{via} could not get a pairing code from {target}",
+ "883abe5832a6732e": "Enter its address and a pairing code from it instead.",
"e1789f863205ad5a": "Kunde inte länka miljön",
"836dde1b729e6f0a": "Länkade {source} och {target} åt båda håll",
"40cde51afa218290": "Länkade {label}",
"ca4e4015b89ed9a8": "Kunde inte länka {target} tillbaka till {source}",
"64ac3d1579ca9f5b": "Länka {source} till {target}",
+ "5f2e20c62a4fece3": "{via} links to {target} at full access, so it gets the pairing code. No code to paste.",
"fb71127e5746a6bc": "Från Delning och åtkomst där, eller t3 pair",
"1e3fee7084791773": "Länka även {target} tillbaka till {source}",
"ea34a190b0bd804c": "Agenter på {target} kan då också arbeta på {source}.",
diff --git a/apps/web/src/i18n/translations/zh.json b/apps/web/src/i18n/translations/zh.json
index ee20043c3a32..3fe92249a867 100644
--- a/apps/web/src/i18n/translations/zh.json
+++ b/apps/web/src/i18n/translations/zh.json
@@ -155,10 +155,9 @@
"0cb7a36802fe8089": "筛选器 {number} 需要 body、headers 或 query 下的路径。",
"1fa38fb049c6b56e": "筛选器 {number} 需要 body、headers 或 query 下的路径,以及至少一个值。",
"31ec02bdcb3920d1": "筛选器 {number} 需要 body、headers 或 query 下的路径,以及一个值。",
+ "62ae4688ece05590": "安全存储,绝不会展示给智能体",
"81f613bb68d85bb7": "不会出现在对话中,而是存放在一个私密文件里,此智能体的命令可在 24 小时内读取",
"07b56c0c12bd2de1": "不会出现在对话中,而是存放在私密文件里,此智能体的命令可在 24 小时内读取",
- "6435447ce7656f13": "显示{label}",
- "62ae4688ece05590": "安全存储,绝不会展示给智能体",
"8c2d901183b4e219": "粘贴凭据",
"610aea624f895a78": "已安全保存并保密",
"329b7854b7e0546e": "请使用类似 {example} 的 1Password 引用。",
@@ -892,6 +891,11 @@
"2605da0149cd15f1": "正在压缩上下文",
"39a82db18ca50c21": "上下文已压缩:{before} → {after} token",
"885ae08a2160a158": "上下文已压缩",
+ "4d4981a1c5bd9728": "正在运行命令",
+ "a078225c5f197cd2": "命令失败",
+ "37ab148aaa486051": "已拒绝命令",
+ "0112efa1861c7a30": "已停止命令",
+ "930808342aac8010": "已运行命令",
"3ab6b281a0991766": "{count, plural, =1 {已检查关联的 pull request } other {已检查关联的 pull request {count} 次}}",
"857e92a89b6b6257": "{count, plural, other {已读取 {count} 个文件}}",
"466ac7fcdb97bb76": "{count, plural, other {已更改 {count} 个文件}}",
@@ -1387,7 +1391,6 @@
"4c9a0b64f128da3a": "{delay} 秒后重试。",
"5de030e595796117": "已创建会话",
"c392becd445ecdba": "正在思考",
- "930808342aac8010": "已运行命令",
"c01f9d3f3624c903": "命令",
"fc933cf9b3edd743": "已更改 {fileName}",
"9bdd23eb0206783f": "文件修改",
@@ -3733,10 +3736,6 @@
"ac511f991a3c1fab": "网络搜索",
"07e65dba2b16d3f7": "{count, plural, other {{path},另有 {count} 个}}",
"6ab96e26bda35288": "正在思考",
- "4d4981a1c5bd9728": "正在运行命令",
- "a078225c5f197cd2": "命令失败",
- "37ab148aaa486051": "已拒绝命令",
- "0112efa1861c7a30": "已停止命令",
"dc8ddcad32e2a50c": "正在运行 {program}",
"f0db8caadd8f120e": "{program} 失败",
"9a4cc1d1df413b99": "已拒绝 {program}",
@@ -3974,6 +3973,7 @@
"90062342f04966ff": "请更新此环境的 T3 Code 服务器后再浏览 pull request。",
"5e7157db126f1641": "issue 不可用",
"42ade0e14ff6af94": "请更新此环境的 T3 Code 服务器以浏览 issue。",
+ "6435447ce7656f13": "显示{label}",
"993dcd04611f9571": "安全保存",
"ccbe48efc8e30c52": "删除侧聊“{title}”?",
"3a859b690f41e899": "这会永久清除它的对话记录。",
@@ -4705,6 +4705,7 @@
"82d82cdbe3b0f975": "{size} · 按 {shortcut} 可将大段内容直接粘贴到正文中。",
"247cd77b35ddb586": "无法将“{name}”读取为图片。",
"7eccb44d5449e777": "“{name}”过大,即使压缩后也无法附加。",
+ "d07dd6dfd269680a": "无法恢复 {names}:输入框已达到 {limit} 个附件的上限。",
"1d4059658a0ab500": "要从消息中移除 {name} 吗?\n正文中引用了它,移除后所有引用也会一并删除。",
"86261d5bd0651358": "从消息中移除此图片?\n文本中引用了它;移除后所有引用也会一并移除。",
"f70c49e9f30807a3": "粘贴的文字对这条消息来说太长了",
@@ -4777,7 +4778,6 @@
"c809a3c353e67a28": "浏览器存储拒绝了这次更新,所以刷新后这条记录可能仍在。",
"1a4bc01f0ca772c2": "保存这条提示词时,{names} 超出了暂存大小限制。",
"bb3b4ad32b596e11": "保存这条提示词时,无法读取 {names}。",
- "d07dd6dfd269680a": "无法恢复 {names}:输入框已达到 {limit} 个附件的上限。",
"7e4a6a2c84d34a80": "{names}:暂存的文件只保留 24 小时,这次上传已过期,请重新添加文件。",
"1e3ede33afee71ba": "部分附件未能恢复",
"98c76143d9aae871": "暂存条目可能会再次出现",
@@ -8871,11 +8871,14 @@
"4cea6be0fe6be16f": "无法加载已关联的环境",
"25b74062dc03079e": "没有已关联的环境",
"6698127fcc912f23": "关联另一台运行 T3 Code 的机器(例如 VPS),让这里的智能体能够在那台机器上启动和操作会话。",
+ "82a0120f80907e97": "{via} could not get a pairing code from {target}",
+ "883abe5832a6732e": "Enter its address and a pairing code from it instead.",
"e1789f863205ad5a": "无法关联环境",
"836dde1b729e6f0a": "已双向关联 {source} 和 {target}",
"40cde51afa218290": "已关联 {label}",
"ca4e4015b89ed9a8": "无法将 {target} 反向关联到 {source}",
"64ac3d1579ca9f5b": "将 {source} 关联到 {target}",
+ "5f2e20c62a4fece3": "{via} links to {target} at full access, so it gets the pairing code. No code to paste.",
"fb71127e5746a6bc": "从远端“共享与访问”页面或 t3 pair 获取",
"1e3fee7084791773": "同时将 {target} 反向关联到 {source}",
"ea34a190b0bd804c": "之后 {target} 上的智能体也能在 {source} 上工作。",
diff --git a/docs/user/remote-access.md b/docs/user/remote-access.md
index 7c9e98af6dd2..1c3999a50ecc 100644
--- a/docs/user/remote-access.md
+++ b/docs/user/remote-access.md
@@ -479,6 +479,13 @@ pick one. If this app is connected to both machines, knows an address the first
can reach the other at, and its session on the other one manages access there,
it needs no pairing code.
+A machine this app is not connected to, shown only because another environment
+links to it, can still be linked without a code when that link has full access:
+drop the plus on it and the environment holding the link gets the pairing code
+from it. Your session on that environment must manage access there. The result
+is a separate link with the access you pick, listed and revocable on the linked
+machine like any other. Links still do not chain.
+
A link goes one way. To let the other machine's agents work back, tick **Also
link … back** when you create the link, or select a one-way link and use
**Link back…**. It is offered when this app is connected to both machines and
diff --git a/packages/client-runtime/src/state/peerLinks.ts b/packages/client-runtime/src/state/peerLinks.ts
index 0f76e9cfb3de..103cee8483b0 100644
--- a/packages/client-runtime/src/state/peerLinks.ts
+++ b/packages/client-runtime/src/state/peerLinks.ts
@@ -124,6 +124,11 @@ export function createPeerLinkEnvironmentAtoms(
key: ({ environmentId, input }) => JSON.stringify([environmentId, input.environmentId]),
},
}),
+ /** Asks for a pairing code from a linked environment, to link another one there. Never cached. */
+ pairLink: createEnvironmentRpcCommand(runtime, {
+ label: "environment-data:peer-links:pair-link",
+ tag: WS_METHODS.peerLinksPairLink,
+ }),
// An agent's link card. One answer per card at a time.
answerRequest: createEnvironmentRpcCommand(runtime, {
label: "environment-data:peer-links:answer-request",
diff --git a/packages/contracts/src/clientRpcPermissions.ts b/packages/contracts/src/clientRpcPermissions.ts
index 47f24f576735..56b2312a6855 100644
--- a/packages/contracts/src/clientRpcPermissions.ts
+++ b/packages/contracts/src/clientRpcPermissions.ts
@@ -87,6 +87,7 @@ export const CLIENT_GUARDED_RPC_SCOPES = {
// A link lets every agent here reach the other environment: Settings' bar.
[WS_METHODS.peerLinksAnswerRequest]: AuthAccessWriteScope,
[WS_METHODS.peerLinksPairClient]: AuthAccessWriteScope,
+ [WS_METHODS.peerLinksPairLink]: AuthAccessWriteScope,
} as const;
export type ClientGuardedRpcTag = keyof typeof CLIENT_GUARDED_RPC_SCOPES;
diff --git a/packages/contracts/src/environment.ts b/packages/contracts/src/environment.ts
index 8ccdc7293a6e..34c8688316ae 100644
--- a/packages/contracts/src/environment.ts
+++ b/packages/contracts/src/environment.ts
@@ -194,6 +194,8 @@ export const ExecutionEnvironmentCapabilities = Schema.Struct({
/** A full-access link can ask this server for a one-time pairing credential for a client
of the linking environment. Absent on servers from before it. */
linkClientPairing: Schema.optionalKey(Schema.Boolean),
+ /** The same route also mints a pairing code for a link from another environment. */
+ linkPairingForLink: Schema.optionalKey(Schema.Boolean),
/** Mints pairing codes that approve one agent sign-in at a set level (`AUTO-…`). */
mcpApprovalCodes: Schema.optionalKey(Schema.Boolean),
peerLinkPairingCodes: Schema.optionalKey(Schema.Boolean),
diff --git a/packages/contracts/src/peerLink.ts b/packages/contracts/src/peerLink.ts
index 3b367c04eaec..6f33686b4b37 100644
--- a/packages/contracts/src/peerLink.ts
+++ b/packages/contracts/src/peerLink.ts
@@ -160,6 +160,17 @@ export class PeerLinkThreadReadError extends Schema.TaggedError
Date: Fri, 20 Nov 2026 13:33:19 -0800
Subject: [PATCH 2/3] fix(web): the link dialog shows no machine picker while
linking through another machine
Co-Authored-By: Claude Fable 5.2
---
apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx b/apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx
index b6a0a02d89c0..1d41b786bafb 100644
--- a/apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx
+++ b/apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx
@@ -477,7 +477,7 @@ export function LinkEnvironmentDialog({
void submit();
}}
>
- {machines.length > 0 ? (
+ {machines.length > 0 && through === null ? (
Date: Fri, 20 Nov 2026 17:36:22 -0800
Subject: [PATCH 3/3] feat(web): the link dialog links through another
environment without a code
The dialog's machine picker now lists machines another of this app's
environments links to at full access, and picking one (or a saved machine
this app cannot mint on) links with a code that environment fetches.
Translates the link-through strings.
Co-Authored-By: Claude Fable 5.2
---
.../settings/LinkedEnvironmentsSettings.tsx | 49 +++++++++++++----
apps/web/src/i18n/translations/de.json | 6 +--
apps/web/src/i18n/translations/es.json | 6 +--
apps/web/src/i18n/translations/fr.json | 6 +--
apps/web/src/i18n/translations/ja.json | 6 +--
apps/web/src/i18n/translations/ko.json | 6 +--
apps/web/src/i18n/translations/pt-BR.json | 6 +--
apps/web/src/i18n/translations/ru.json | 6 +--
apps/web/src/i18n/translations/sv.json | 6 +--
apps/web/src/i18n/translations/zh.json | 6 +--
apps/web/src/state/peerLinks.ts | 37 ++++++++++++-
.../src/state/peerLinks.test.ts | 52 +++++++++++++++++++
.../client-runtime/src/state/peerLinks.ts | 44 ++++++++++++++++
13 files changed, 197 insertions(+), 39 deletions(-)
create mode 100644 packages/client-runtime/src/state/peerLinks.test.ts
diff --git a/apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx b/apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx
index 1d41b786bafb..954c0e1c4ee3 100644
--- a/apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx
+++ b/apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx
@@ -26,7 +26,12 @@ import { type ReactNode, useId, useRef, useState } from "react";
import { requestConfirmDialog } from "~/confirmDialog";
import { useEnvironment } from "~/state/environments";
import { mintPairingCodeOn } from "~/state/peerPairingCode";
-import { peerLinkEnvironment, useLinkableMachines, useLinkBackOffers } from "~/state/peerLinks";
+import {
+ peerLinkEnvironment,
+ useLinkableMachines,
+ useLinkBackOffers,
+ useLinkThroughRoutes,
+} from "~/state/peerLinks";
import { useEnvironments } from "~/state/environments";
import { useEnvironmentQuery } from "~/state/query";
import { useEnvironmentScope, usePreparedConnection } from "~/state/session";
@@ -252,7 +257,24 @@ export function LinkEnvironmentDialog({
const setOpen = onOpenChange;
// Named in the title: from the map, nothing else on screen says which machine is linking.
const source = useEnvironment(environmentId);
- const machines = useLinkableMachines(environmentId, open);
+ const saved = useLinkableMachines(environmentId, open);
+ const routes = useLinkThroughRoutes(environmentId, open);
+ // Machines this app has no entry for are still pickable when one of its environments links
+ // to them at full access.
+ const machines = [
+ ...saved,
+ ...[...routes.values()]
+ .filter((route) => saved.every((machine) => machine.environmentId !== route.environmentId))
+ .map((route) => ({
+ environmentId: route.environmentId,
+ label: route.label,
+ machine: "server" as const,
+ connected: false,
+ connectOnly: false,
+ linked: false,
+ urls: route.urls,
+ })),
+ ];
// Null until the user picks; with no other machines known, only an address is left.
const [choice, setChoice] = useState(prefill?.choice ?? null);
const [address, setAddress] = useState(prefill?.address ?? "");
@@ -277,16 +299,13 @@ export function LinkEnvironmentDialog({
reportFailure: false,
reportDefect: false,
});
- const via = useEnvironment(prefill?.through?.viaEnvironmentId ?? null);
- // Set once the linked machine would not give a code, so the dialog asks for one instead.
- const [throughFailed, setThroughFailed] = useState(false);
+ // Machines that would not give a code through a link, so the dialog asks for one instead.
+ const [throughFailed, setThroughFailed] = useState>(new Set());
const [alsoLinkBack, setAlsoLinkBack] = useState(false);
const selected = choice ?? (machines.length === 0 ? ANOTHER_ADDRESS : null);
// Only for the machine the dialog opened for: another choice or address is another machine.
- const through =
+ const prefilledThrough =
prefill?.through !== undefined &&
- via !== null &&
- !throughFailed &&
selected === ANOTHER_ADDRESS &&
address === (prefill.address ?? "")
? prefill.through
@@ -306,6 +325,14 @@ export function LinkEnvironmentDialog({
Option.isSome(connected) &&
mayMint &&
!mintFailed.has(targetId);
+ // Minting with this client's own session there comes first: it needs no third machine.
+ const throughCandidate =
+ prefilledThrough ?? (targetId === null || canMint ? null : (routes.get(targetId) ?? null));
+ const via = useEnvironment(throughCandidate?.viaEnvironmentId ?? null);
+ const through =
+ throughCandidate !== null && via !== null && !throughFailed.has(throughCandidate.environmentId)
+ ? throughCandidate
+ : null;
const linkBack = useLinkBackOffers(environmentId, targetId === null ? [] : [targetId], open);
const backOffer = linkBack.offerFor(targetId);
const ready =
@@ -321,7 +348,7 @@ export function LinkEnvironmentDialog({
setPairingCode("");
setAccess("approval-required");
setMintFailed(new Set());
- setThroughFailed(false);
+ setThroughFailed(new Set());
setAlsoLinkBack(false);
}
};
@@ -344,7 +371,7 @@ export function LinkEnvironmentDialog({
}
}
if (asked._tag === "Failure" && isAtomCommandInterrupted(asked)) return null;
- setThroughFailed(true);
+ setThroughFailed((failed) => new Set(failed).add(target.environmentId));
failureToast(
gt("{via} could not get a pairing code from {target}", {
via: via?.label ?? "",
@@ -477,7 +504,7 @@ export function LinkEnvironmentDialog({
void submit();
}}
>
- {machines.length > 0 && through === null ? (
+ {machines.length > 0 && (through === null || through !== prefilledThrough) ? (
+ enabled &&
+ environment.environmentId !== sourceId &&
+ environment.connection.phase === "connected" &&
+ offersLinkedEnvironments(environment.serverConfig) &&
+ writable.has(environment.environmentId),
+ )
+ .map((environment) => environment.environmentId);
+ const lists = useAtomValue(peerLinkListsAtom(environmentIdsKey(hosts)));
+ return linkThroughRoutes({
+ sourceEnvironmentId: sourceId,
+ hosts: hosts.map((environmentId, index) => {
+ const list = lists[index];
+ return { environmentId, links: list?._tag === "Success" ? list.value.links : [] };
+ }),
+ now: DateTime.makeUnsafe(nowMinute),
+ });
+}
+
const NOT_OFFERED: LinkBackOffer = { kind: "hidden" };
/**
diff --git a/packages/client-runtime/src/state/peerLinks.test.ts b/packages/client-runtime/src/state/peerLinks.test.ts
new file mode 100644
index 000000000000..c1e4ae8acd9f
--- /dev/null
+++ b/packages/client-runtime/src/state/peerLinks.test.ts
@@ -0,0 +1,52 @@
+import { EnvironmentId, type PeerLinkSummary } from "@t3tools/contracts";
+import * as DateTime from "effect/DateTime";
+import { describe, expect, it } from "vite-plus/test";
+
+import { linkThroughRoutes } from "./peerLinks.ts";
+
+const now = DateTime.makeUnsafe("2026-11-20T00:00:00.000Z");
+const id = (value: string) => EnvironmentId.make(value);
+
+const link = (target: string, overrides: Partial = {}): PeerLinkSummary => ({
+ environmentId: id(target),
+ label: target,
+ urls: [`https://${target}.example`],
+ access: "full-access",
+ status: "reachable",
+ linkedAt: now,
+ lastReachedAt: now,
+ lastError: null,
+ expiresAt: DateTime.makeUnsafe("2026-12-20T00:00:00.000Z"),
+ ...overrides,
+});
+
+describe("linkThroughRoutes", () => {
+ it("offers only machines another environment reaches over a full-access link that answers", () => {
+ const routes = linkThroughRoutes({
+ sourceEnvironmentId: id("source"),
+ hosts: [
+ { environmentId: id("source"), links: [link("own")] },
+ {
+ environmentId: id("via"),
+ links: [
+ link("open"),
+ link("source"),
+ link("supervised", { access: "approval-required" }),
+ link("down", { status: "unreachable" }),
+ link("lapsed", { expiresAt: now }),
+ ],
+ },
+ { environmentId: id("later"), links: [link("open")] },
+ ],
+ now,
+ });
+ expect([...routes.values()]).toEqual([
+ {
+ viaEnvironmentId: id("via"),
+ environmentId: id("open"),
+ label: "open",
+ urls: ["https://open.example"],
+ },
+ ]);
+ });
+});
diff --git a/packages/client-runtime/src/state/peerLinks.ts b/packages/client-runtime/src/state/peerLinks.ts
index 103cee8483b0..543fd5588713 100644
--- a/packages/client-runtime/src/state/peerLinks.ts
+++ b/packages/client-runtime/src/state/peerLinks.ts
@@ -165,3 +165,47 @@ export function peerLinkHealth(link: PeerLinkSummary, now: DateTime.Utc): PeerLi
const days = Math.ceil(Duration.toDays(DateTime.distance(now, link.expiresAt)));
return { kind: "reachable", expiresInDays: days <= EXPIRY_WARNING_DAYS ? days : null };
}
+
+/** A linked machine, and the environment that can get a pairing code from it. */
+export interface LinkThroughRoute {
+ readonly viaEnvironmentId: EnvironmentId;
+ readonly environmentId: EnvironmentId;
+ readonly label: string;
+ readonly urls: ReadonlyArray;
+}
+
+/**
+ * The machines `sourceEnvironmentId` can link to without a pasted code: those another of the
+ * client's environments reaches over a full-access link that answers. `hosts` are environments
+ * the client is connected to and manages access on, the only ones it may ask.
+ */
+export function linkThroughRoutes(input: {
+ readonly sourceEnvironmentId: EnvironmentId;
+ readonly hosts: ReadonlyArray<{
+ readonly environmentId: EnvironmentId;
+ readonly links: ReadonlyArray;
+ }>;
+ readonly now: DateTime.Utc;
+}): ReadonlyMap {
+ const routes = new Map();
+ for (const host of input.hosts) {
+ if (host.environmentId === input.sourceEnvironmentId) continue;
+ for (const link of host.links) {
+ if (
+ link.environmentId === input.sourceEnvironmentId ||
+ link.access !== "full-access" ||
+ routes.has(link.environmentId) ||
+ peerLinkHealth(link, input.now).kind !== "reachable"
+ ) {
+ continue;
+ }
+ routes.set(link.environmentId, {
+ viaEnvironmentId: host.environmentId,
+ environmentId: link.environmentId,
+ label: link.label,
+ urls: link.urls,
+ });
+ }
+ }
+ return routes;
+}