Skip to content

Commit 6790f85

Browse files
fix(web): point pairing copy at Sharing & access (#27692)
Co-authored-by: Julius Marminge <[email protected]>
1 parent 290182d commit 6790f85

4 files changed

Lines changed: 18 additions & 20 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ function LinkRequestSheet(props: {
299299
>
300300
<View className="gap-1">
301301
<Text className="font-sans text-sm leading-5 text-foreground-muted">
302-
Agents here can then launch, message and wait on threads there. It appears in that
303-
machine's Connections, where it can be revoked.
302+
Agents here can then launch, message and wait on threads there. It appears under
303+
Authorized clients in that machine's Sharing & access, where it can be revoked.
304304
</Text>
305305
{item.url !== undefined && target.kind === "machine" ? (
306306
<Text className="font-sans text-xs text-foreground-muted" numberOfLines={1}>
@@ -375,7 +375,7 @@ function LinkRequestSheet(props: {
375375
{useExisting ? (
376376
<Text className="font-sans text-sm leading-5 text-foreground-muted">
377377
This environment is already linked to {targetName}. The agent can use that link as it
378-
is; change its access in Settings → Connections.
378+
is; change its access in Settings → Environments.
379379
</Text>
380380
) : target.kind === "none" ? null : (
381381
<>
@@ -394,8 +394,8 @@ function LinkRequestSheet(props: {
394394
spellCheck={false}
395395
/>
396396
<Text className="font-sans text-xs text-foreground-muted">
397-
Create a link on {targetName}: Settings → Connections → Create link, then paste
398-
its code here.
397+
Create a link on {targetName}: Settings → Sharing & access → Authorized clients →
398+
Create link, then paste its code here.
399399
</Text>
400400
</View>
401401
)}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const environmentLinkCommand = Command.make("link", {
104104
),
105105
}).pipe(
106106
Command.withDescription(
107-
"Link another T3 Code environment, so agents here can work there. It shows up there under Settings → Connections, where it can be revoked.",
107+
"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.",
108108
),
109109
Command.withHandler((flags) =>
110110
runWithPeerLinks(flags, (links) =>
@@ -145,15 +145,15 @@ const environmentUnlinkCommand = Command.make("unlink", {
145145
),
146146
}).pipe(
147147
Command.withDescription(
148-
"Forget a linked environment here. Revoke it in that environment's Connections to end its session there too.",
148+
"Forget a linked environment here. Revoke it in that environment's Sharing & access to end its session there too.",
149149
),
150150
Command.withHandler((flags) =>
151151
runWithPeerLinks(flags, (links) =>
152152
Effect.gen(function* () {
153153
const removed = yield* links.unlink(EnvironmentId.make(flags.environmentId));
154154
yield* Console.log(
155155
removed
156-
? `Forgot ${flags.environmentId}. Revoke it in that environment's Connections to end its session there.\n`
156+
? `Forgot ${flags.environmentId}. Revoke it in that environment's Sharing & access to end its session there.\n`
157157
: `No linked environment ${flags.environmentId}.\n`,
158158
);
159159
}),

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function LinkRequestDialog(props: {
297297
<WizardPopup>
298298
<WizardHeader
299299
title={pickMachine ? "Link a machine" : `Link ${targetName}`}
300-
description="Agents here can then launch, message and wait on threads there. Revoke it in that machine's Connections."
300+
description="Agents here can then launch, message and wait on threads there. Revoke it in that machine's Sharing & access."
301301
>
302302
{steps.length > 1 && !useExisting ? (
303303
<WizardSteps
@@ -380,8 +380,8 @@ function LinkRequestDialog(props: {
380380
spellCheck={false}
381381
/>
382382
<span className="block text-xs text-muted-foreground">
383-
Create a link on {targetName}: Settings → Connections → Create link, then
384-
paste its code here.
383+
Create a link on {targetName}: Settings → Sharing & access → Authorized
384+
clients → Create link, then paste its code here.
385385
</span>
386386
</label>
387387
)}
@@ -393,7 +393,7 @@ function LinkRequestDialog(props: {
393393
{useExisting ? (
394394
<p className="text-xs text-muted-foreground">
395395
This environment is already linked to {targetName}. The agent can use that link as
396-
it is; change its access in Settings → Connections.
396+
it is; change its access in Settings → Environments.
397397
</p>
398398
) : null}
399399
{error !== null ? (

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

Lines changed: 6 additions & 8 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;
@@ -273,8 +273,8 @@ function LinkEnvironmentAction({ environmentId }: { readonly environmentId: Envi
273273
<DialogHeader>
274274
<DialogTitle>Link an environment</DialogTitle>
275275
<DialogDescription>
276-
Agents here can then launch, message and wait on threads there. It appears in that
277-
environment's Connections, where it can be revoked.
276+
Agents here can then launch, message and wait on threads there. It appears under
277+
Authorized clients in that environment's Sharing & access, where it can be revoked.
278278
</DialogDescription>
279279
</DialogHeader>
280280
<DialogPanel>
@@ -332,9 +332,7 @@ function LinkEnvironmentAction({ environmentId }: { readonly environmentId: Envi
332332
value={pairingCode}
333333
onChange={(event) => setPairingCode(event.target.value)}
334334
placeholder={
335-
machine === null
336-
? "From that environment's Connections, or t3 pair there"
337-
: "Paste the code"
335+
machine === null ? "From Sharing & access there, or t3 pair" : "Paste the code"
338336
}
339337
disabled={busy}
340338
autoComplete="one-time-code"
@@ -343,8 +341,8 @@ function LinkEnvironmentAction({ environmentId }: { readonly environmentId: Envi
343341
/>
344342
{machine !== null ? (
345343
<span className="block text-xs text-muted-foreground">
346-
Create a link on {machine.label}: Settings → Connections → Create link, then
347-
paste its code here.
344+
Create a link on {machine.label}: Settings → Sharing & access → Authorized
345+
clients → Create link, then paste its code here.
348346
</span>
349347
) : null}
350348
</label>

0 commit comments

Comments
 (0)