Skip to content

Commit 58970ab

Browse files
authored
Merge branch 'main' into fix/agents-panel-resume-reopen
2 parents bc7e7e3 + 12e8997 commit 58970ab

285 files changed

Lines changed: 25521 additions & 2250 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/release.yml‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ jobs:
111111
node-version-file: package.json
112112
cache: true
113113
run-install: true
114+
env:
115+
pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata
114116

115117
- id: release_meta
116118
name: Resolve release version
@@ -174,6 +176,14 @@ jobs:
174176
--current-tag "${{ steps.release_meta.outputs.tag }}" \
175177
--github-output
176178
179+
# Share only the verification results, not the large registry metadata cache.
180+
- name: Upload dependency verification
181+
continue-on-error: true
182+
uses: actions/upload-artifact@v7
183+
with:
184+
name: release-dependency-verification
185+
path: ${{ runner.temp }}/pnpm-metadata/lockfile-verified.jsonl
186+
177187
quality:
178188
name: Release quality checks
179189
needs: [preflight]
@@ -446,7 +456,18 @@ jobs:
446456
path: ${{ steps.package_cache_path.outputs.path }}
447457
key: windows-release-packages-v1-${{ matrix.arch }}-${{ hashFiles('pnpm-lock.yaml') }}
448458

459+
# pnpm checks the lockfile and policy before reusing this result. A missing
460+
# artifact leaves the cache empty, so installation runs the checks again.
461+
- name: Download dependency verification
462+
continue-on-error: true
463+
uses: actions/download-artifact@v8
464+
with:
465+
name: release-dependency-verification
466+
path: ${{ runner.temp }}/pnpm-metadata
467+
449468
- name: Install desktop dependencies
469+
env:
470+
pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata
450471
run: vp install --filter=@t3tools/desktop... --filter=t3... --filter=@t3tools/scripts...
451472

452473
- name: Cache resource monitor
@@ -583,6 +604,7 @@ jobs:
583604
- name: Build desktop artifact
584605
shell: bash
585606
env:
607+
pnpm_config_cache_dir: ${{ runner.temp }}/pnpm-metadata
586608
T3CODE_DESKTOP_REUSE_RESOURCE_MONITOR: ${{ steps.resource_monitor_cache.outputs.cache-hit == 'true' }}
587609
CSC_LINK: ${{ secrets.CSC_LINK }}
588610
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}

‎AGENTS.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# T3 Code
22

3-
T3 Code is a minimal GUI for coding agents. A Node WebSocket server wraps provider CLIs (Codex, Claude Code, Cursor, Grok, OpenCode) and serves web, desktop, and mobile clients.
3+
T3 Code is a minimal GUI for coding agents. A Node WebSocket server wraps provider CLIs and agents (Codex, Claude Code, Cursor, Grok, OpenCode, Antigravity) and serves web, desktop, and mobile clients.
44

55
You can think of T3 Code as an open source "bring-your-own-subscription" alternative to apps like Claude Desktop, Codex App, Cursor Glass and Conductor.
66

@@ -68,7 +68,7 @@ The most common defect in this repo is a change that works on the path you teste
6868

6969
- **Entry points.** A behavior reachable from the chat view is usually also reachable from Settings, the command palette, and a keybinding. Fixing one is not fixing the feature.
7070
- **Clients.** Web, desktop (wraps web, adds Electron shell/IPC), and mobile (React Native, separate navigation). Shared logic lives in `packages/client-runtime`
71-
- **Providers.** Codex, Claude, Cursor, Grok, and OpenCode each have an adapter. Provider-shaped features need a decision per adapter, even if the decision is "not supported here".
71+
- **Providers.** Codex, Claude, Cursor, Grok, OpenCode, and Antigravity each have an adapter. Provider-shaped features need a decision per adapter, even if the decision is "not supported here".
7272
- **Contracts.** Anything crossing the wire is typed in `packages/contracts`. Change the schema and the server, web, mobile, and desktop all follow.
7373
- **Reverse states.** If you added a way in, add the way out and the way to see it. Snooze needs unsnooze. Close needs reopen. A one-way door is a bug.
7474
- **Connection modes.** Local, remote/relay, and tunnel behave differently. Multi-device and multi-environment cases are real.

‎README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
T3 Code is an "agent harness control surface". It enables control of the agents on your machine with a best-in-class mobile app ([iOS](https://apps.apple.com/us/app/t3-code-remote-claude-more/id6787819824), [Android](https://play.google.com/store/apps/details?id=com.t3tools.t3code)), [web app](https://app.t3.codes) and [Electron-based desktop app](https://t3.codes).
44

5-
Works with your subscriptions on Claude Code, Codex, Cursor, Grok Build, and OpenCode. If they're set up on your computer, T3 Code can control them.
5+
Works with your subscriptions on Claude Code, Codex, Cursor, Grok Build, OpenCode, and Google Antigravity. If they're set up on your computer, T3 Code can control them.
66

77
## "Wait, what are you selling me?"
88

@@ -13,13 +13,14 @@ We wanted something performant, remote-ready, and truly open. If we ever go the
1313
## Installation
1414

1515
> [!WARNING]
16-
> T3 Code currently supports Codex, Claude, Cursor, Grok Build and OpenCode. Install and authenticate at least one provider before use:
16+
> T3 Code currently supports Codex, Claude, Cursor, Grok Build, OpenCode, and Antigravity. Install and authenticate at least one provider before use:
1717
>
1818
> - Codex: install [Codex CLI](https://developers.openai.com/codex/cli) and run `codex login`
1919
> - Claude: install [Claude Code](https://claude.com/product/claude-code) and run `claude auth login`
2020
> - Cursor: install [Cursor CLI](https://cursor.com/cli) and run `agent login`
2121
> - Grok Build: install [Grok Build CLI](https://x.ai/cli) and run `grok login`
2222
> - OpenCode: install [OpenCode](https://opencode.ai) and run `opencode auth login`
23+
> - Antigravity: enable it in Settings, then use **Install Antigravity** and **Sign in with Google**. No CLI is required.
2324
2425
### Try it out (install-free)
2526

‎apps/desktop/src/preview/AnnotationStyles.generated.ts‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎apps/desktop/src/preview/Manager.test.ts‎

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3137,6 +3137,164 @@ describe("PreviewManager", () => {
31373137
),
31383138
);
31393139

3140+
effectIt.effect("settles the pick when the annotation screenshot never arrives", () =>
3141+
withManager((manager) =>
3142+
Effect.gen(function* () {
3143+
let onPicked: ((event: unknown, ...args: unknown[]) => void) | undefined;
3144+
fromId.mockReturnValue({
3145+
id: 42,
3146+
isDestroyed: () => false,
3147+
getType: () => "webview",
3148+
getURL: () => "https://example.com",
3149+
getTitle: () => "Example",
3150+
isLoading: () => false,
3151+
isFocused: () => true,
3152+
getZoomFactor: () => 1,
3153+
setZoomFactor: vi.fn(),
3154+
setAudioMuted: vi.fn(),
3155+
isCurrentlyAudible: () => false,
3156+
on: vi.fn(),
3157+
once: vi.fn(),
3158+
off: vi.fn(),
3159+
// A wedged compositor leaves `capturePage` pending forever.
3160+
capturePage: vi.fn(() => new Promise(() => {})),
3161+
ipc: {
3162+
on: vi.fn((channel: string, listener: typeof onPicked) => {
3163+
if (channel === "preview:element-picked") onPicked = listener;
3164+
}),
3165+
off: vi.fn(),
3166+
removeListener: vi.fn(),
3167+
},
3168+
send: webviewSend,
3169+
navigationHistory: { canGoBack: () => false, canGoForward: () => false },
3170+
setWindowOpenHandler: vi.fn(),
3171+
debugger: {
3172+
isAttached: () => false,
3173+
attach: vi.fn(),
3174+
sendCommand: vi.fn(async () => undefined),
3175+
on: vi.fn(),
3176+
off: vi.fn(),
3177+
},
3178+
} as never);
3179+
3180+
yield* manager.createTab("tab_1");
3181+
yield* manager.registerWebview("tab_1", 42);
3182+
const pick = yield* manager.pickElement("tab_1").pipe(Effect.forkChild);
3183+
yield* Effect.yieldNow;
3184+
3185+
onPicked?.(
3186+
{},
3187+
{
3188+
id: "annotation_1",
3189+
pageUrl: "https://example.com",
3190+
pageTitle: "Example",
3191+
comment: "Tighten this spacing",
3192+
elements: [],
3193+
regions: [{ id: "region_1", rect: { x: 5, y: 6, width: 20, height: 30 } }],
3194+
strokes: [],
3195+
styleChanges: [],
3196+
screenshot: null,
3197+
createdAt: "2026-06-11T00:00:00.000Z",
3198+
},
3199+
null,
3200+
"send",
3201+
);
3202+
yield* Effect.yieldNow;
3203+
expect(pick.pollUnsafe()).toBeUndefined();
3204+
3205+
yield* TestClock.adjust("6 seconds");
3206+
// The pick has to give up on the crop rather than strand the renderer,
3207+
// which would leave the composer stuck on "Capturing…".
3208+
const result = yield* Fiber.join(pick);
3209+
expect(result?.annotation.screenshot).toBeNull();
3210+
expect(result?.screenshotFailed).toBe(true);
3211+
expect(result?.submission).toBe("send");
3212+
expect(webviewSend).toHaveBeenCalledWith("preview:annotation-captured");
3213+
}),
3214+
),
3215+
);
3216+
3217+
effectIt.effect("a stale capture from a replaced pick never touches the next pick", () =>
3218+
withManager((manager) =>
3219+
Effect.gen(function* () {
3220+
let onPicked: ((event: unknown, ...args: unknown[]) => void) | undefined;
3221+
fromId.mockReturnValue({
3222+
id: 42,
3223+
isDestroyed: () => false,
3224+
getType: () => "webview",
3225+
getURL: () => "https://example.com",
3226+
getTitle: () => "Example",
3227+
isLoading: () => false,
3228+
isFocused: () => true,
3229+
getZoomFactor: () => 1,
3230+
setZoomFactor: vi.fn(),
3231+
setAudioMuted: vi.fn(),
3232+
isCurrentlyAudible: () => false,
3233+
on: vi.fn(),
3234+
once: vi.fn(),
3235+
off: vi.fn(),
3236+
capturePage: vi.fn(() => new Promise(() => {})),
3237+
ipc: {
3238+
on: vi.fn((channel: string, listener: typeof onPicked) => {
3239+
if (channel === "preview:element-picked") onPicked = listener;
3240+
}),
3241+
off: vi.fn(),
3242+
removeListener: vi.fn(),
3243+
},
3244+
send: webviewSend,
3245+
navigationHistory: { canGoBack: () => false, canGoForward: () => false },
3246+
setWindowOpenHandler: vi.fn(),
3247+
debugger: {
3248+
isAttached: () => false,
3249+
attach: vi.fn(),
3250+
sendCommand: vi.fn(async () => undefined),
3251+
on: vi.fn(),
3252+
off: vi.fn(),
3253+
},
3254+
} as never);
3255+
const annotation = {
3256+
id: "annotation_1",
3257+
pageUrl: "https://example.com",
3258+
pageTitle: "Example",
3259+
comment: "Tighten this spacing",
3260+
elements: [],
3261+
regions: [{ id: "region_1", rect: { x: 5, y: 6, width: 20, height: 30 } }],
3262+
strokes: [],
3263+
styleChanges: [],
3264+
screenshot: null,
3265+
createdAt: "2026-06-11T00:00:00.000Z",
3266+
};
3267+
3268+
yield* manager.createTab("tab_1");
3269+
yield* manager.registerWebview("tab_1", 42);
3270+
const firstPick = yield* manager.pickElement("tab_1").pipe(Effect.forkChild);
3271+
yield* Effect.yieldNow;
3272+
// The first pick submits and its crop hangs.
3273+
onPicked?.({}, annotation, null, "send");
3274+
yield* Effect.yieldNow;
3275+
3276+
// A second pick on the same tab replaces the first, which resumes null.
3277+
const secondPick = yield* manager.pickElement("tab_1").pipe(Effect.forkChild);
3278+
yield* Effect.yieldNow;
3279+
expect(yield* Fiber.join(firstPick)).toBeNull();
3280+
webviewSend.mockClear();
3281+
3282+
// The first pick's crop times out while the second pick is live. It
3283+
// must not signal the overlay, which would tear down the second pick.
3284+
yield* TestClock.adjust("6 seconds");
3285+
yield* Effect.yieldNow;
3286+
expect(webviewSend).not.toHaveBeenCalledWith("preview:annotation-captured");
3287+
expect(secondPick.pollUnsafe()).toBeUndefined();
3288+
3289+
onPicked?.({}, { ...annotation, id: "annotation_2" }, null, "attach");
3290+
yield* TestClock.adjust("6 seconds");
3291+
const result = yield* Fiber.join(secondPick);
3292+
expect(result?.annotation.id).toBe("annotation_2");
3293+
expect(result?.submission).toBe("attach");
3294+
}),
3295+
),
3296+
);
3297+
31403298
effectIt.effect("navigates the guest history when the thumb-button ipc fires", () =>
31413299
withManager((manager) =>
31423300
Effect.gen(function* () {

0 commit comments

Comments
 (0)