Skip to content

Commit 7b6b90f

Browse files
committed
fix(web): point pairing copy at Sharing & access
The Link a machine dialog and the link cards on web and mobile told users to create a pairing code under Settings → Connections. That page is now labeled Environments and has no Create link button. The button is in the Authorized clients header on Sharing & access, which is also where the session a link creates on the other machine is listed and revoked. Point the pairing hint, the revoke hints, and the t3 environment link/unlink CLI text at Sharing & access, and point the "change its access" hint at Environments, where the Linked environments section is. Fixes #27688
1 parent 15fe283 commit 7b6b90f

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

‎apps/mobile/src/features/threads/LinkRequestCard.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ function LinkRequestSheet(props: {
335335
{pickMachine ? "Link a machine" : `Link ${targetName}`}
336336
</Text>
337337
<Text className="font-sans text-sm leading-5 text-foreground-muted">
338-
Agents here can then launch, message and wait on threads there. It appears in that
339-
machine's Connections, where it can be revoked.
338+
Agents here can then launch, message and wait on threads there. It appears under
339+
Authorized clients in that machine's Sharing & access, where it can be revoked.
340340
</Text>
341341
{!pickMachine && item.url !== undefined ? (
342342
<Text className="font-sans text-xs text-foreground-muted" numberOfLines={1}>
@@ -396,7 +396,7 @@ function LinkRequestSheet(props: {
396396
{useExisting ? (
397397
<Text className="font-sans text-sm leading-5 text-foreground-muted">
398398
This environment is already linked to {targetName}. The agent can use that link as it
399-
is; change its access in Settings → Connections.
399+
is; change its access in Settings → Environments.
400400
</Text>
401401
) : target.kind === "none" ? null : (
402402
<>
@@ -415,8 +415,8 @@ function LinkRequestSheet(props: {
415415
spellCheck={false}
416416
/>
417417
<Text className="font-sans text-xs text-foreground-muted">
418-
Create a link on {targetName}: Settings → Connections → Create link, then paste
419-
its code here.
418+
Create a link on {targetName}: Settings → Sharing & access → Authorized clients →
419+
Create link, then paste its code here.
420420
</Text>
421421
</View>
422422
)}

‎apps/server/src/cli/environment.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const environmentLinkCommand = Command.make("link", {
9797
),
9898
}).pipe(
9999
Command.withDescription(
100-
"Link another T3 Code environment, so agents here can work there. It shows up there under Settings → Connections, where it can be revoked.",
100+
"Link another T3 Code environment, so agents here can work there. It shows up there under Authorized clients in Settings → Sharing & access, where it can be revoked.",
101101
),
102102
Command.withHandler((flags) =>
103103
runWithPeerLinks(flags, (links) =>
@@ -138,15 +138,15 @@ const environmentUnlinkCommand = Command.make("unlink", {
138138
),
139139
}).pipe(
140140
Command.withDescription(
141-
"Forget a linked environment here. Revoke it in that environment's Connections to end its session there too.",
141+
"Forget a linked environment here. Revoke it in that environment's Sharing & access to end its session there too.",
142142
),
143143
Command.withHandler((flags) =>
144144
runWithPeerLinks(flags, (links) =>
145145
Effect.gen(function* () {
146146
const removed = yield* links.unlink(EnvironmentId.make(flags.environmentId));
147147
yield* Console.log(
148148
removed
149-
? `Forgot ${flags.environmentId}. Revoke it in that environment's Connections to end its session there.\n`
149+
? `Forgot ${flags.environmentId}. Revoke it in that environment's Sharing & access to end its session there.\n`
150150
: `No linked environment ${flags.environmentId}.\n`,
151151
);
152152
}),

‎apps/web/src/components/chat/LinkRequestCard.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ function LinkRequestDialog(props: {
331331
<WizardPopup>
332332
<WizardHeader
333333
title={pickMachine ? "Link a machine" : `Link ${targetName}`}
334-
description="Agents here can then launch, message and wait on threads there. Revoke it in that machine's Connections."
334+
description="Agents here can then launch, message and wait on threads there. Revoke it in that machine's Sharing & access."
335335
>
336336
{steps.length > 1 && !useExisting ? (
337337
<WizardSteps
@@ -413,8 +413,8 @@ function LinkRequestDialog(props: {
413413
spellCheck={false}
414414
/>
415415
<span className="block text-xs text-muted-foreground">
416-
Create a link on {targetName}: Settings → Connections → Create link, then
417-
paste its code here.
416+
Create a link on {targetName}: Settings → Sharing & access → Authorized
417+
clients → Create link, then paste its code here.
418418
</span>
419419
</label>
420420
)}
@@ -426,7 +426,7 @@ function LinkRequestDialog(props: {
426426
{useExisting ? (
427427
<p className="text-xs text-muted-foreground">
428428
This environment is already linked to {targetName}. The agent can use that link as
429-
it is; change its access in Settings → Connections.
429+
it is; change its access in Settings → Environments.
430430
</p>
431431
) : null}
432432
{error !== null ? (

‎apps/web/src/components/settings/LinkedEnvironmentsSettings.tsx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function LinkedEnvironmentRow({
103103
const [busy, setBusy] = useState(false);
104104
const forget = async () => {
105105
const confirmed = await (requestConfirmDialog(
106-
`Forget ${link.label}? Agents here stop working there. Revoke "T3 Code · …" in ${link.label}'s Connections to end the session there too.`,
106+
`Forget ${link.label}? Agents here stop working there. Revoke "T3 Code · …" in ${link.label}'s Sharing & access to end the session there too.`,
107107
{ variant: "destructive" },
108108
) ?? Promise.resolve(false));
109109
if (!confirmed) return;
@@ -266,8 +266,8 @@ function LinkEnvironmentAction({ environmentId }: { readonly environmentId: Envi
266266
<DialogHeader>
267267
<DialogTitle>Link an environment</DialogTitle>
268268
<DialogDescription>
269-
Agents here can then launch, message and wait on threads there. It appears in that
270-
environment's Connections, where it can be revoked.
269+
Agents here can then launch, message and wait on threads there. It appears under
270+
Authorized clients in that environment's Sharing & access, where it can be revoked.
271271
</DialogDescription>
272272
</DialogHeader>
273273
<DialogPanel>
@@ -325,7 +325,7 @@ function LinkEnvironmentAction({ environmentId }: { readonly environmentId: Envi
325325
onChange={(event) => setPairingCode(event.target.value)}
326326
placeholder={
327327
machine === null
328-
? "From that environment's Connections, or t3 pair there"
328+
? "From that environment's Sharing & access, or t3 pair there"
329329
: "Paste the code"
330330
}
331331
disabled={busy}
@@ -335,8 +335,8 @@ function LinkEnvironmentAction({ environmentId }: { readonly environmentId: Envi
335335
/>
336336
{machine !== null ? (
337337
<span className="block text-xs text-muted-foreground">
338-
Create a link on {machine.label}: Settings → Connections → Create link, then
339-
paste its code here.
338+
Create a link on {machine.label}: Settings → Sharing & access → Authorized
339+
clients → Create link, then paste its code here.
340340
</span>
341341
) : null}
342342
</label>

0 commit comments

Comments
 (0)