Commit Graph
174 Commits
Author SHA1 Message Date
Theo Browne d7cf8aaa8d perf(client): stop thread streams when unused (#9740)
Close a thread's live detail stream when its last consumer leaves. Retain a registry-local completed state and replay cursor for five idle minutes.

Keep warm lookup independent of collectible raw atom definitions. Preserve paging and deletion state, reject stale owners, and cache only completed data/cursor updates.

Skip repeated saves of unchanged data while retaining dirty-data flushes and failed-write retries. Verify real GC/remount behavior and focused lifecycle cases.

Created with GPT-6 Astra (preview) in Codex.
2026-09-04 11:56:05 -07:00
Theo Browne c66f15f39e perf(client): reduce thread-list update work (#9716) 2026-09-04 09:42:42 -07:00
da7e46d08e perf(web): stop replaying terminal buffers on rollover (#9707)
Keep bounded, byte-counted terminal chunks and append only unread output. Use UTF-16 cursors so compaction preserves live terminal replies. Reset on lifecycle changes or a real retained-data gap.

Keep the existing wire protocol, native buffer interface, and client retention limit. Native streaming and strict server replay byte bounds remain separate.

Continue the client helpers from https://github.com/pingdotgg/t3code/pull/9027 at source head 9391da2b48439d1d7a2b01d169e785682bf8abb8.

Created with GPT-6 Astra (preview) in Codex.

Co-Authored-By: Wout Stiens <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
2026-09-04 09:27:24 -07:00
Theo Browne 2460649935 perf(clients): avoid waiting to read cached relay tokens (#9691) 2026-09-04 07:35:48 -07:00
Theo Browne 01f3e50eca fix(server): unblock OpenCode approvals and stop (#9653)
OpenCode could show an Approval badge with no controls, appear stuck on TodoWrite, and keep showing a running turn after Stop.

- Show every permission, including old saved requests. Keep failed replies retryable and close completed requests even when reply events are lost.
- Keep OpenCode output pipes drained and automatic replies out of the event loop. Handle disconnects, reconnects, and confirmed stops without stale requests or running states.
- Show native task progress and command results. Do not treat TodoWrite or approval history as file edits or executed commands.
- Ignore late aborts and task updates after a turn finishes.

Fixes #4795
Fixes #7113
Fixes #5760

Created with GPT-6 Astra (preview) in Codex. Reviewed and merged with Claude Fable 5.1 in Claude Code.
2026-09-04 05:41:32 -07:00
d5b9410086 feat(mobile): paste the phone clipboard into the terminal (#9199)
Co-authored-by: Jake Leventhal <[email protected]>
Co-authored-by: shivam <[email protected]>
2026-09-04 11:41:57 +00:00
Theo Browne 00f8b7c280 fix: show idle subagent batches without completion marks (#9616) 2026-09-04 00:24:44 -07:00
Exotic caab2fdbac fix(web): render draft PRs in gray (#9537) 2026-09-04 02:17:18 -04:00
mariaandmaria-rcks 5cc369b7eb fix(pull-requests): refresh data after thread turns (#9496)
Co-authored-by: maria-rcks <[email protected]>
2026-09-04 02:16:25 -04:00
mariaandmaria-rcks 39abb9d1d6 fix(connect): refresh authorization without disconnecting (#9582)
Co-authored-by: maria-rcks <[email protected]>
2026-09-04 01:07:49 -04:00
Theo Browne 2675e3c703 fix(antigravity): keep subagent batches active after launch (#9579) 2026-09-03 20:29:56 -07:00
Yash Singh 0cb02abf5b fix: better shell syntax handling for labels (#9371) 2026-09-03 22:20:10 -05:00
1641b4aba5 feat(usage): redeem Codex reset credits from the Limits tab (#9534)
Follow-up to #9507, carrying over the reset-credit redemption from #9421.

Codex grants a reset credit when it has rate-limited an account unfairly (`"Thanks for using Codex! You've been granted one free rate limit reset."`). Redeeming one clears the current 5h/weekly windows. The Limits tab now shows how many are banked and when the next expires, with a confirmed **Use a reset credit** action.

## How it works

- `ServerProviderUsageLimits.resetCredits` carries the count and soonest expiry; the Codex probe reads it from the same `account/rateLimits/read` it already makes.
- `ProviderInstance.consumeResetCredit` is a new optional hook — account-level, so it sits beside `refreshModels` rather than on the thread-routed adapter. The Codex driver implements it over a short-lived app-server (via `withCodexAppServerClient`, factored out of the status and skills probes which duplicated the setup), then re-probes.
- Single-flight per instance with one idempotency key kept until Codex reports an outcome, so a retry after a timeout does not open a second attempt.
- New `provider.consumeResetCredit` RPC under the operate scope; the outcome (`reset` / `nothingToReset` / `noCredit` / `alreadyRedeemed`) is shown inline.

Only Codex reports credits today. A provider without the hook gets a clear "does not bank reset credits" error; one without credits shows nothing.

## Screenshots

The local Codex row with one banked credit (the same account via the CLIProxyAPI hub above it shows no credit, as expected — the hub does not relay them):

![Limits tab with the Codex row showing "1 reset credit banked · next expires in 16d 22h" and a "Use a reset credit" button](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2897db5e357f12b3/credits-tab.png)

Close-up of the row:

![Codex row: Weekly 25% used bar, then "1 reset credit banked · next expires in 16d 22h" with the "Use a reset credit" button](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/0e80f9114cab8f36/credits-row.png)

Clicking it opens the confirmation; nothing is sent until **Use credit**:

![Confirm dialog: "Use a reset credit? This redeems one credit on your account and clears the current rate-limit windows. It cannot be undone." with Cancel and Use credit](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/dc728580889ef1fe/credits-confirm.png)

## Verification

- Mapper tests for the credit summary; provider, contract, and Usage page suites pass; typecheck clean.
- Verified against a real Codex Pro account holding one credit: summary and expiry render, the confirm dialog opens. **Not redeemed** — that would spend the credit.

Written by Claude Fable 5 via Claude Code; design and single-flight approach from @StiensWout's #9421.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Redemption spends real account credits over a new RPC; correctness depends on per-account locking and idempotency, though disabled instances and non-Codex providers are rejected explicitly.
> 
> **Overview**
> Adds **end-to-end redemption of banked Codex rate-limit reset credits** from the Limits UI on web and mobile, backed by a new operate-scoped `provider.consumeResetCredit` RPC.
> 
> **Contracts and server:** `ServerProviderUsageLimits` can include `resetCredits` (count + next expiry). Codex probes attach that from `account/rateLimits/read`. Optional `ProviderInstance.consumeResetCredit` is implemented for Codex via a scoped app-server call to `account/rateLimitResetCredit/consume`, then a limits refresh. `CodexResetCreditCoordinator` serializes redemptions per Codex account directory, reuses one idempotency key until Codex returns an outcome, and times out hung requests. `withCodexAppServerClient` is extracted so status, skills, and redemption share the same short-lived app-server setup.
> 
> **Clients:** Limits rows show banked credits and a confirmed **Use a reset credit** action that calls `serverEnvironment.consumeResetCredit` and surfaces outcomes (`reset`, `nothingToReset`, etc.) or errors.
> 
> **Web usage sources (same PR):** Adding/removing CLIProxyAPI hubs and the add dialog target a **selected connected environment** (with picker when several are connected), gated by operate access—not only the primary environment.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 98f32e60852dca1d38c94335b3ed7aac8c4b895e. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->


Co-authored-by: Wout Stiens <[email protected]>
Co-authored-by: Claude Code <[email protected]>
2026-09-03 19:14:29 -07:00
19d8ab2ae9 feat(usage): show Codex and Claude subscription limits on a Limits tab (#9507)
Users on Codex or Claude Code subscriptions could not see how much quota was left or when it resets without leaving T3 Code. A user whose CLIs route through a CLIProxyAPI hub could not see it at all.

Each driver now returns `usageLimits` on its own snapshot (Codex from `account/rateLimits/read`, Claude from the SDK's `get_usage`), adapters normalise turn-driven rate-limit events at the boundary, and a driver-blind ingestion layer folds them onto the owning instance. The Usage page gains a Limits tab (mobile a card) with a bar per window, elapsed marker, pace, and reset countdown. CLIProxyAPI hubs can be added as read-only usage-limit sources; their accounts show badged "via CLIProxyAPI" with emails blurred.

Distilled from #1732 (server model, provider rows) and #9421 (Limits tab, window bars, pace maths). Closes #228.

Co-authored-by: Aditya Mer <[email protected]>
Co-authored-by: Wout Stiens <[email protected]>
Co-authored-by: Claude Code <[email protected]>
2026-09-03 17:47:54 -07:00
Theo Browne 9d28c21a26 fix(auth): keep pairing credentials out of access read models (#9523) 2026-09-03 17:17:38 -07:00
Simone cfddb4201d fix(mobile): skip unsupported shared settings targets (#9381) 2026-09-03 09:35:25 -07:00
Theo BrowneandClaude Fable 5.1 2b745efe57 fix(usage): price new models without waiting a day for the rate table (#9202)
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-03 02:46:51 -07:00
Theo BrowneandClaude Fable 5.1 06336460c9 feat(providers): add Google Antigravity via the official ACP agent (#9348)
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-03 02:34:48 -07:00
Yash Singhandmaria-rcks 6cf0c6ea55 feat: display native app and browser icons in work logs (#9093)
Co-authored-by: maria-rcks <[email protected]>
2026-09-03 01:32:41 -04:00
f5fbb1bcb0 chore: upgrade vite-plus to 0.3.0 (#9327)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-03 03:40:31 +00:00
194f838e76 chore: audit lint directives and move plugin allowlists into config (#9300)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-02 19:40:26 -07:00
mariaandmaria-rcks ec44bc56f5 fix(chat): keep live tool labels in present tense (#9316)
Co-authored-by: maria-rcks <[email protected]>
2026-09-02 22:39:09 -04:00
922bd69225 refactor(media): unify file and media previews across clients (#9253)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-02 19:37:41 -07:00
9ebbeda5a0 feat(web): apply and remove labels from the pull request tab (#9313)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-03 02:25:21 +00:00
eimexdevandeimexdev 2971ec3209 fix(server): preserve automatic settlement timestamps (#9254)
Server-side auto-settlement stamped settledAt with the sweep time, so old threads looked newly settled on every startup and sorted wrong in the Settled shelf.

The reactor now carries the thread's last user/turn activity through the internal auto-settle command and the decider persists it as settledAt, while updatedAt stays the command time. Migration 046 repairs projection_threads.settled_at for identifiable past sweeps without touching the event log. Web and mobile sort and label settled rows through a shared client-runtime resolver.

Refs #9057. Pairs with #9081.

Made with GPT-5.6 Sol in T3 Code through the Codex harness; follow-up and merge by Claude Fable 5 in Claude Code.

Co-authored-by: eimexdev <[email protected]>
2026-09-02 17:19:44 -07:00
mariaandmaria-rcks dd6879ffea fix(pull-requests): reuse github api reads (#9176)
Co-authored-by: maria-rcks <[email protected]>
2026-09-02 03:56:32 -04:00
mariaandmaria-rcks 9e646ad84c fix(connect): refresh relay credentials before expiry (#9178)
Co-authored-by: maria-rcks <[email protected]>
2026-09-02 03:56:08 -04:00
Utkarsh Patil 80a14b6588 fix(server): discover project skills for Codex and OpenCode (#8778) 2026-09-02 01:39:01 -04:00
Julius Marminge b520120cf1 fix(chat): improve tool group summaries and scrolling (#9106) 2026-09-01 21:52:46 -07:00
b2f25d390a feat(desktop): update the desktop app on remote Macs from the Update button (#6554)
Use a prepare and commit handoff for remote desktop updates. Retry lost commits, require the prepared version after reconnect, and recover backends and windows when installation fails.

Built with GPT-5.6 Sol in Codex.

Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: Adolanium <[email protected]>
2026-09-01 19:08:38 -07:00
Theo BrowneandClaude Fable 5.1 083d4de5b0 fix(clients): stop repeating expanded commands (#9120)
Expanded command rows use a neutral Command label and keep the full command plus real output in the detail area. Claude Bash results now cross the wire as a bounded summary. Truncated Claude echoes and ACP echoes without a kind are dropped as synthetic.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-09-01 18:46:14 -07:00
Theo BrowneandClaude Fable 5.1 d0b19b32e0 fix(claude): preview images read from the workspace (#9119)
Classify Claude Read calls on image files as image_view and carry the full path through projection and both clients so the existing image renderer can load it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-09-01 18:26:41 -07:00
Theo BrowneandClaude Fable 5.1 8efd4e95fc fix(settings): sync auto-settle and other shared preferences across environments (#9147)
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-01 18:18:20 -07:00
fc53b27303 perf(clients): lease sidebar status by visibility (#9052)
Co-authored-by: Theo Browne <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-01 18:13:04 -07:00
Theo BrowneandClaude Fable 5.1 6866fd6b5c perf(client-runtime): keep turn and checkpoint refs stable while streaming (#9145)
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-01 18:10:00 -07:00
Theo BrowneandLucas Valbuena c2283ce146 perf: make streaming projection and activity appends incremental (#9152)
Takes over #6608 by @x1xhlol.

Server: thread.message-sent updates the projection row directly and folds latestUserMessageAt in as a running maximum instead of running refreshThreadShellSummary. Client: thread.activity-appended takes an O(1) append path for in-order, unseen activities on reducer-produced arrays, with a WeakMap id index, and falls back to filter and sort for out-of-order, re-delivered, context-window, and snapshot-loaded cases.

Reducer benchmark: 10,000 in-order appends went from 1,180 ms to 70 ms.

Change authored by Claude Fable 5.1 running in Claude Code, based on work by @x1xhlol.

Co-authored-by: Lucas Valbuena <[email protected]>
2026-09-01 18:07:26 -07:00
ea71a19d41 fix(claude): skills picked from the composer now run (#9128)
Co-authored-by: Rodrigo Brechard <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
2026-09-01 17:44:13 -07:00
Theo BrowneandClaude Fable 5.1 08aad594f0 chore: delete dead code, unused deps, and duplicate helpers (#9129)
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-01 17:37:09 -07:00
Julius Marminge beae2147a9 fix(media): preview host files and stream videos across clients (#9023) 2026-09-01 16:05:15 -07:00
Adamulek123 b883fc066e perf(client-runtime): halve server config bootstrap traffic (#8367)
Reuse one server config subscription for session bootstrap and live updates.

Preserve environment theme opt-in, replay, deletion, slow subscriber recovery, and config stream failure handling.

Co-authored-by: Adamulek123 <[email protected]>
2026-09-01 04:23:50 -07:00
Adamulek123 8b033de482 fix(clients): dedupe skills in composer menus (#8043) 2026-09-01 03:44:36 -07:00
Theo Browne f32f9a2f41 fix(server): settle threads server-side (#8600) 2026-09-01 03:24:24 -07:00
Julius Marminge 0947c30e69 fix(client): use package import for markdown image helpers (#9010) 2026-08-31 23:57:03 -07:00
mariaandmaria-rcks ce71c04f0a feat(client): render viewed images in work logs (#8936)
Co-authored-by: maria-rcks <[email protected]>
2026-09-01 00:56:48 -04:00
Julius Marminge ef84bc9873 fix(chat): smooth worktree setup status (#8922) 2026-08-31 12:01:50 -07:00
Theo BrowneandJulius Marminge 352710d497 feat(mobile): add offline iPhone voice input (#8614)
Co-authored-by: Julius Marminge <[email protected]>
2026-08-30 18:08:36 -07:00
Yash Singh c1e70b5f8c fix(web,mobile): render Codex citations and artifact templates (#8584) 2026-08-30 18:09:47 -05:00
Vitaly Iegorov 7980dfddb1 fix(web,mobile): snooze menu no longer offers the same wake time twice (#8741) 2026-08-30 16:02:21 -04:00
Julius Marminge f15680bd3c feat(mobile): update tool summaries and chat transitions (#8793) 2026-08-30 12:22:45 -07:00
Julius MarmingeandJulius Marminge 1f8ed54add fix(mobile): reduce dev-client reload and Metro startup cost (#8694)
Co-authored-by: Julius Marminge <[email protected]>
2026-08-29 16:46:54 -07:00