Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
490a0d6
fix(server): Antigravity usage skips agy index databases instead of r…
juliusmarminge Nov 20, 2026
5872b0a
fix(web): a later thread error with the same text shows its banner ag…
shivamhwp Nov 20, 2026
003d53a
fix(client-runtime): connection supervisor restarts its background li…
juliusmarminge Nov 20, 2026
57e92b0
fix(cursor): Max Mode tiers keep working after Cursor changes a model…
Yash-Singh1 Nov 20, 2026
9fde959
feat(web): choose which projects the issues list shows (#38799)
Bil0000 Nov 20, 2026
38d27db
perf(server): refreshing a branch list frees the snapshot it replaces…
juliusmarminge Nov 20, 2026
bb1a66a
feat(web): reference a side chat from its main thread with Add to cha…
Bil0000 Nov 20, 2026
90a86d5
fix(server): refuse Antigravity runtimes below 1.5 (#38970)
juliusmarminge Nov 20, 2026
90aa766
fix(server): one compatibility lookup and one refusal for broken prov…
juliusmarminge Nov 20, 2026
f75eb01
fix(server): OpenCode and Pi read their minimum version from the mani…
juliusmarminge Nov 20, 2026
c79f618
feat(issues): a fork lists its upstream's issues and its own (#39159)
Bil0000 Nov 20, 2026
3a60d09
fix(server): background subagents can delegate after their parent's t…
Bil0000 Nov 20, 2026
29b42d4
fix(web): show status for grouped sidebar issues (#39351)
Bil0000 Nov 20, 2026
5dd565d
feat(antigravity): Auto uses agy's own Auto review (#39378)
mkantenko Nov 20, 2026
ec275c7
fix(server): compacting a subagent thread no longer adds a task to it…
nsigel Nov 20, 2026
ff8a831
fix(antigravity): accept UTF-16 text attachments with a BOM (#39456)
Lucenx9 Nov 20, 2026
c57ccda
fix(server): signed URLs stay out of HTTP request logs (#39464)
juliusmarminge Nov 20, 2026
320ab2a
fix(server): Antigravity drops a stale sign-in failure once a session…
juliusmarminge Nov 20, 2026
09b7994
fix(server): keep escaped spaces in Codex launch overrides (#39458)
Lucenx9 Nov 20, 2026
f6d941f
feat(server): links between environments renew while they are used (#…
juliusmarminge Nov 20, 2026
4d5bf2d
fix(opencode): label xhigh reasoning Extra High (#39451)
rune-gh Nov 20, 2026
3ea709e
fix(web): keep revealed folder in view while restored folders load (#…
jieyuexing Nov 20, 2026
8e8ff9b
feat: link several environments at once (#39426)
juliusmarminge Nov 20, 2026
414a068
fix(server): Linux keep-awake no longer blocks screen lock and displa…
juliusmarminge Nov 20, 2026
aa0662d
fix(evals): GPT run summaries capitalise the cost sentence (#39380)
Lenoridev Nov 20, 2026
d260660
docs(codex): explain Chrome extension connection errors (#38429)
DukMaxxi Nov 20, 2026
9bb92a4
fix(shared): count each pending subagent thread once (#39501)
Yash-Singh1 Nov 20, 2026
6348824
fix(github): keep the enterprise token off hosts other than GH_HOST (…
juliusmarminge Nov 20, 2026
e25a337
fix(web): keep long-named VS Code themes separate on import (#39493)
SoroushRF Nov 20, 2026
7f92841
fix(antigravity): MCP calls through call_mcp_tool show the tool, not …
hh36000 Nov 20, 2026
aa68542
fix(relay): refuse to relink an active environment under a different …
juliusmarminge Nov 20, 2026
6f05fbf
fix(server): secret names can no longer leave the secrets directory (…
juliusmarminge Nov 20, 2026
bdcca0d
fix(server): a linked workspace file is served only if its target is …
juliusmarminge Nov 20, 2026
ebf7b9a
fix(server): revoking all other clients also revokes unspent pairing …
juliusmarminge Nov 20, 2026
20b8a9e
fix(web): the preview only embeds PDFs from its own environment (#39497)
juliusmarminge Nov 20, 2026
badd5f6
fix(relay): parse Hermes stack frames in linear time (#39498)
juliusmarminge Nov 20, 2026
db51b67
perf(server): rank queued provider snapshots by focus and combine sup…
Yash-Singh1 Nov 20, 2026
21fc0c1
fix(gitlab): keep the environment token off hosts a caller names (#39…
juliusmarminge Nov 20, 2026
d1822be
fix(server): stop managed Antigravity CLI from self-updating in place…
t3dotgg Nov 20, 2026
1947264
fix(server): a killed Antigravity subagent no longer keeps its turn r…
juliusmarminge Nov 20, 2026
c6ad9be
fix(server): Claude history import skips sessions answered only by a …
juliusmarminge Nov 20, 2026
be91767
fix(server): deliver child results to running Claude turns (#39528)
shethshlok Nov 20, 2026
e923b5d
fix(server): Antigravity threads follow the user's global AGENTS.md a…
juliusmarminge Nov 20, 2026
da54e47
fix(server): launches whose caller goes away still start (#36499)
manuel-huez Nov 20, 2026
084ad5e
fix(server): each Antigravity Google sign-in stays in its own instanc…
juliusmarminge Nov 20, 2026
59651c1
fix(web): Retry on the Pull Requests list only refetches the environm…
tiliakoos Nov 20, 2026
d6cdb4f
fix(web): scope checkout errors to the selected pull request (#39554)
StiensWout Nov 20, 2026
22936ae
fix(web): ignore superseded microphone refreshes in voice setup (#39552)
StiensWout Nov 20, 2026
732c03f
fix(web): fold accents in thread link picker search (#39557)
StiensWout Nov 20, 2026
272cd38
fix(server): imported thread titles no longer end in a broken emoji (…
tiliakoos Nov 20, 2026
de0466f
chore(release): prepare v0.1.11
t3-code-bot[bot] Nov 20, 2026
16d4094
fix(mobile): keep chat open when branch actions finish after dismissa…
StiensWout Nov 20, 2026
019e55b
fix(composer): keep screenshots preparing after an unanswered questio…
StiensWout Nov 20, 2026
d151236
fix(web): keep reopened pairing link dialogs open on completion (#39579)
StiensWout Nov 20, 2026
f2d4df0
fix(server): Codex web searches list the query once (#39585)
tiliakoos Nov 20, 2026
e963572
test(server): use the live clock for theme watch notifications (#39598)
StiensWout Nov 20, 2026
ed203c4
fix(cursor): stop repeating runtime instructions on every turn (#39605)
Yash-Singh1 Nov 20, 2026
aa725f4
fix(web): file find scrolls to matches below wrapped lines (#39616)
juliusmarminge Nov 20, 2026
558d112
merge upstream/main into fork
adampeterhiggins Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@t3tools/desktop",
"version": "0.1.10",
"version": "0.1.11",
"private": true,
"type": "module",
"main": "dist-electron/boot.cjs",
Expand Down
18 changes: 12 additions & 6 deletions apps/mobile/src/features/connection/ConnectionsRouteScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ScreenScrollView as ScrollView } from "../../components/ui/ScreenScroll

import { useNavigation } from "@react-navigation/native";
import type { EnvironmentId } from "@t3tools/contracts";
import { useState } from "react";
import { Fragment, useState } from "react";
import { View } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";

Expand All @@ -12,6 +12,7 @@ import { useRemoteConnections } from "../../state/use-remote-environment-registr
import { LocalEnvironmentList } from "./LocalEnvironmentList";
import { PullRequestRoutingSettings } from "./PullRequestRoutingSettings";
import { LinkedEnvironmentsSection } from "./LinkedEnvironmentsSection";
import { LinkSeveralEnvironmentsAction } from "./LinkSeveralEnvironments";

export function ConnectionsRouteScreen() {
const gt = useGT();
Expand Down Expand Up @@ -65,11 +66,16 @@ export function ConnectionsRouteScreen() {
{connectedEnvironments
.filter((environment) => environment.connectionState === "connected")
.map((environment) => (
<LinkedEnvironmentsSection
key={environment.environmentId}
environmentId={environment.environmentId}
environmentLabel={environment.environmentLabel}
/>
<Fragment key={environment.environmentId}>
<LinkedEnvironmentsSection
environmentId={environment.environmentId}
environmentLabel={environment.environmentLabel}
/>
<LinkSeveralEnvironmentsAction
environmentId={environment.environmentId}
environmentLabel={environment.environmentLabel}
/>
</Fragment>
))}
<PullRequestRoutingSettings />
</ScrollView>
Expand Down
344 changes: 344 additions & 0 deletions apps/mobile/src/features/connection/LinkSeveralEnvironments.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,344 @@
import { useAtomValue } from "@effect/atom-react";
import {
linkBatchBlockLabel,
linkBatchCandidates,
linkBatchFailureLabel,
type LinkBatchOutcome,
linkBatchSummary,
linkListState,
runLinkBatch,
} from "@t3tools/client-runtime/link-batch";
import { offersLinkedEnvironments } from "@t3tools/client-runtime/link-request";
import { squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
import {
AuthAccessWriteScope,
type AuthMcpClientAccess,
type EnvironmentId,
} from "@t3tools/contracts";
import * as Result from "effect/Result";
import { T, useGT, useMessages } from "gt-react-native";
import { useMemo, useRef, useState } from "react";
import { Pressable, ScrollView, View } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";

import { EnvironmentMachineSymbol } from "../../components/EnvironmentMachineSymbol";
import { SymbolView } from "../../components/ui/AppSymbol";
import { AppText as Text } from "../../components/ui/AppText";
import { Button } from "../../components/ui/Button";
import { ListChoiceRow } from "../../components/ui/ListChoiceRow";
import { Sheet } from "../../components/ui/Sheet";
import { useEnvironmentServerConfig } from "../../state/entities";
import { useEnvironments } from "../../state/environments";
import { peerLinkEnvironment, useLinkableMachines } from "../../state/peerLinks";
import { mintPairingCodeOn } from "../../state/peerPairingCode";
import { useEnvironmentQuery } from "../../state/query";
import { useEnvironmentsWithScope } from "../../state/session";
import { useAtomCommand } from "../../state/use-atom-command";
import { SettingsSection } from "../settings/components/SettingsSection";
import { LINK_ACCESS_CHOICES } from "../threads/LinkRequestCard";

const NO_MACHINES: ReadonlySet<EnvironmentId> = new Set();
const NO_OUTCOMES: ReadonlyMap<EnvironmentId, LinkBatchOutcome> = new Map();

/** Offers a batch link from `environmentId` once this app has two other machines saved. */
export function LinkSeveralEnvironmentsAction(props: {
readonly environmentId: EnvironmentId;
readonly environmentLabel: string;
}) {
const gt = useGT();
const [open, setOpen] = useState(false);
const config = useEnvironmentServerConfig(props.environmentId);
const canLink = useAtomValue(peerLinkEnvironment.link.permissionAtom(props.environmentId));
const otherMachines = useEnvironments().environments.length - 1;
if (!canLink || !offersLinkedEnvironments(config) || otherMachines < 2) return null;
return (
<View className="mt-3">
<Button
label={gt("Link several machines to {environment}…", {
environment: props.environmentLabel,
})}
onPress={() => setOpen(true)}
fullWidth
/>
{open ? (
<LinkSeveralSheet environmentId={props.environmentId} onClose={() => setOpen(false)} />
) : null}
</View>
);
}

/**
* Each pairing code is minted on its machine and passed straight to the linking
* environment; none is ever held in state, shown, or logged.
*/
function LinkSeveralSheet(props: {
readonly environmentId: EnvironmentId;
readonly onClose: () => void;
}) {
const gt = useGT();
const m = useMessages();
const insets = useSafeAreaInsets();
const machines = useLinkableMachines(props.environmentId, true);
// The same shared list `useLinkableMachines` reads `linked` from.
const links = useEnvironmentQuery(
peerLinkEnvironment.list({ environmentId: props.environmentId, input: {} }),
);
const linksState = linkListState(links);
const machineIds = machines.map((machine) => machine.environmentId).join("\n");
const scoped = useMemo(
() =>
machineIds
.split("\n")
.filter((id) => id.length > 0)
.map((id) => ({ environmentId: id as EnvironmentId })),
[machineIds],
);
const writable = useEnvironmentsWithScope(scoped, AuthAccessWriteScope);
const [selected, setSelected] = useState(NO_MACHINES);
const [access, setAccess] = useState<AuthMcpClientAccess>("approval-required");
const [outcomes, setOutcomes] = useState(NO_OUTCOMES);
const [linking, setLinking] = useState(NO_MACHINES);
// Two taps can both run before a re-render; this guard is synchronous.
const inFlight = useRef(false);
const link = useAtomCommand(peerLinkEnvironment.linkInBatch, {
label: "link several environments",
// The failure cause holds the request, and with it the code; keep it out of the console.
reportFailure: false,
reportDefect: false,
});
const candidates = linkBatchCandidates(machines, writable, linksState);
const selectable = candidates.flatMap(({ machine, blocked }) =>
blocked === null && outcomes.get(machine.environmentId)?.kind !== "linked" ? [machine] : [],
);
const chosen = selectable.filter((machine) => selected.has(machine.environmentId));
const busy = linking.size > 0;
const summary = linkBatchSummary(outcomes);
const allChosen = selectable.length > 0 && chosen.length === selectable.length;

const toggle = (id: EnvironmentId) =>
setSelected((current) => {
const next = new Set(current);
if (!next.delete(id)) next.add(id);
return next;
});
const submit = async () => {
if (inFlight.current || chosen.length === 0) return;
inFlight.current = true;
setLinking(new Set(chosen.map((machine) => machine.environmentId)));
const results = await runLinkBatch({
machines: chosen,
access,
mint: mintPairingCodeOn,
link: async (input) => {
const result = await link({ environmentId: props.environmentId, input });
return result._tag === "Success"
? Result.succeed(result.value)
: Result.fail(squashAtomCommandFailure(result));
},
refreshLinks: links.refresh,
onOutcome: (id, outcome) => {
setOutcomes((current) => new Map(current).set(id, outcome));
setLinking((current) => {
const next = new Set(current);
next.delete(id);
return next;
});
},
});
inFlight.current = false;
setLinking(NO_MACHINES);
// What failed stays picked, so linking again retries only those.
setSelected(new Set(linkBatchSummary(results).failed));
};

return (
<Sheet
title={gt("Link several environments")}
onClose={props.onClose}
// A batch that lands after a close would still link.
dismissDisabled={busy}
>
<ScrollView
nestedScrollEnabled
className="flex-1 bg-sheet-solid"
contentInsetAdjustmentBehavior="automatic"
contentContainerClassName="gap-5 p-5"
contentContainerStyle={{ paddingBottom: insets.bottom + 20 }}
>
<Text className="font-sans text-sm leading-5 text-foreground-muted">
<T>
Agents here can then launch, message and wait on threads on each machine you pick. Each
appears under Authorized clients in that machine's Sharing & access, where it can be
revoked.
</T>
</Text>
{candidates.length === 0 ? (
<Text className="font-sans text-sm leading-5 text-foreground-muted">
<T>This app knows no other machines. Add them under Environments first.</T>
</Text>
) : (
<>
{linksState === "loading" ? (
<Text
accessibilityLiveRegion="polite"
className="font-sans text-sm leading-5 text-foreground-muted"
>
<T>Checking which machines are already linked…</T>
</Text>
) : linksState === "failed" ? (
<View className="gap-2">
<Text
accessibilityLiveRegion="polite"
className="font-sans text-sm leading-5 text-danger-foreground"
>
{gt(
"Could not check which machines are already linked, so none can be picked: {error}",
{ error: links.error ?? "" },
)}
</Text>
<Button
label={gt("Retry")}
size="compact"
disabled={links.isPending}
onPress={links.refresh}
/>
</View>
) : null}
<SettingsSection title={gt("Machines")}>
{candidates.map(({ machine, blocked }, index) => {
const id = machine.environmentId;
const outcome = outcomes.get(id);
const available = blocked === null && outcome?.kind !== "linked";
const checked = available && selected.has(id);
const status = linking.has(id)
? gt("Linking…")
: outcome?.kind === "linked"
? gt("Linked", { $context: "status of a machine that was just linked" })
: outcome?.kind === "failed"
? `${linkBatchFailureLabel(outcome.failure, m)}${outcome.detail === null ? "" : `: ${outcome.detail}`}`
: blocked === null
? null
: linkBatchBlockLabel(blocked, m);
return (
<Pressable
key={id}
accessibilityRole="checkbox"
accessibilityLabel={machine.label}
accessibilityHint={status ?? undefined}
accessibilityState={{ checked, disabled: busy || !available }}
className={
index > 0
? "flex-row items-center gap-3 border-t border-border-subtle p-4 active:opacity-70"
: "flex-row items-center gap-3 p-4 active:opacity-70"
}
disabled={busy || !available}
onPress={() => toggle(id)}
>
<EnvironmentMachineSymbol
kind={machine.machine}
size={18}
tintColorClassName="accent-foreground-muted"
/>
<View className="min-w-0 flex-1 gap-0.5">
<Text
className={
available
? "text-lg text-foreground android:text-base"
: "text-lg text-foreground-muted android:text-base"
}
numberOfLines={1}
>
{machine.label}
</Text>
{status === null ? null : (
<Text
className={
outcome?.kind === "failed"
? "text-sm text-danger-foreground"
: "text-sm text-foreground-muted"
}
>
{status}
</Text>
)}
</View>
{checked ? (
<SymbolView
name="checkmark"
size={18}
tintColorClassName="accent-icon"
type="monochrome"
weight="semibold"
/>
) : null}
</Pressable>
);
})}
</SettingsSection>
<Button
label={allChosen ? gt("Select none") : gt("Select all")}
tone="text"
size="compact"
disabled={busy || selectable.length === 0}
onPress={() =>
setSelected(
allChosen
? NO_MACHINES
: new Set(selectable.map((machine) => machine.environmentId)),
)
}
/>
</>
)}
<SettingsSection title={gt("What agents here may do there")}>
{LINK_ACCESS_CHOICES.map((choice, index) => (
<ListChoiceRow
key={choice.access}
label={m(choice.label)}
description={m(choice.description)}
selected={choice.access === access}
separated={index > 0}
disabled={busy}
onPress={() => setAccess(choice.access)}
/>
))}
</SettingsSection>
{outcomes.size > 0 && !busy ? (
<Text
accessibilityLiveRegion="polite"
className="font-sans text-sm leading-5 text-foreground-muted"
>
{summary.failed.length === 0
? gt("{linked, plural, one {Linked # machine.} other {Linked # machines.}}", {
linked: summary.linked,
})
: gt(
"Linked {linked} of {total}. The ones that failed stay selected, so you can try them again.",
{ linked: summary.linked, total: outcomes.size },
)}
</Text>
) : null}
<Button
label={
busy
? gt("Linking…")
: gt("{count, plural, one {Link # machine} other {Link # machines}}", {
count: chosen.length,
})
}
disabled={busy || chosen.length === 0}
onPress={() => void submit()}
tone="primary"
fullWidth
/>
<Button
label={outcomes.size > 0 ? gt("Done") : gt("Cancel")}
tone="secondary"
disabled={busy}
onPress={props.onClose}
fullWidth
/>
</ScrollView>
</Sheet>
);
}
Loading