Commit Graph
121 Commits
Author SHA1 Message Date
mariaandmaria-rcks a01b227d6f fix(desktop): resolve local media linked from remote threads (#10619)
Co-authored-by: maria-rcks <[email protected]>
2026-09-07 23:52:28 -03:00
Julius Marminge 0a89364f15 fix(usage): read and redeem hub reset credits through CLIProxyAPI (#10395) 2026-09-06 16:30:10 -07:00
maria 420fd76f60 feat(connections): balance new threads across connected machines (#9895) 2026-09-06 02:33:13 -03:00
Chris Deeming 183c343309 feat: show provider usage limits with /usage-limits (#9875) 2026-09-05 16:17:36 -07:00
Theo BrowneandClaude Fable 5 09aac71563 feat(web): first-run welcome wizard with agent setup and project import (#5362)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-05 02:22:30 -07:00
Theo Browneandshivam ce4712d5b0 fix: restore UX after performance improvements (#9799)
Restore status feedback, code-view worker reuse, streaming highlighting recovery, safe outbox recovery, current HTML, and projected live-event budgets.

Verified with browser checks, iOS outbox recovery, 281 focused tests, and full CI. CI uses Shivam's HTTPS mirror fix.

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

Co-authored-by: shivam <[email protected]>
2026-09-04 19:06:21 -07:00
Theo Browne 50bfca43d7 perf(server): replay only the selected thread (#9726)
Read only the selected thread's events when resuming its detail stream. Measure bounded row counts and serialized payload bytes before replay, using the existing aggregate index and a captured authoritative head.

Keep snapshot resets for oversized or invalid cursors. Reset recreated threads when a snapshot exists, and keep bounded replay for deleted threads whose snapshot is absent. Shell replay and the detail-event filter are unchanged.

Created with GPT-6 Astra (preview) in Codex.
2026-09-04 10:35:27 -07:00
Theo Browne 108f295cc3 fix(server): bound slow-client event buffers (#9715) 2026-09-04 09:47:23 -07: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
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 9c9ae3dc0e fix(server): keep events during thread subscription startup (#9521) 2026-09-03 17:08:54 -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
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
mariaandmaria-rcks 5b7d72aad1 feat(updates): continue active threads across server restarts (#9167)
Co-authored-by: maria-rcks <[email protected]>
2026-09-02 04:28:16 -04: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
Aditya Garud a81a52afbb fix(server): allow local-only worktree bases (#8751) 2026-09-02 00:44:14 -07:00
Utkarsh Patil 80a14b6588 fix(server): discover project skills for Codex and OpenCode (#8778) 2026-09-02 01:39:01 -04: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
Ross Cawston 7e460f429b fix(server): bound orchestration replay payloads (#8992)
WebSocket reconnect catch-up only checked the number of missing events, then loaded and decoded the whole replay range before sending it. A handful of events with large tool payloads could allocate gigabytes and OOM the server.

Before replaying, run a SQL preflight that counts the events in the range and sums their serialized payload bytes with octet_length(). If the range is over the existing row limit or an 8 MiB byte budget, fall back to the fresh snapshot path. Applies to both thread and shell subscriptions.

Authored by @rcawston. Review, octet_length fix, and merge by Claude Fable 5.1 in Claude Code on behalf of @t3dotgg.
2026-09-01 18:07:56 -07:00
Theo Browne f32f9a2f41 fix(server): settle threads server-side (#8600) 2026-09-01 03:24:24 -07:00
Adamulek123 7e4ce3bbb1 perf(server): cut chatty tool-update frames by 90% (#8368) 2026-09-01 03:11:41 -07:00
Ryan HughesandTheo Browne c1c2d5401d feat: let an environment publish themes as a file (#8569)
Co-authored-by: Theo Browne <[email protected]>
2026-08-28 22:46:09 -07:00
shivamandClaude Fable 5 a40aef4ccb fix(server): a draft can retry its first send after a failed bootstrap (#8226)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-08-29 02:46:37 +05:30
ExoticandJulius Marminge 94f1948166 fix(connect): explain DPoP connection failures (#8351)
Co-authored-by: Julius Marminge <[email protected]>
2026-08-28 14:14:32 -07:00
Theo Browne 88be5631ff feat(analytics): report connected client platforms (#8481) 2026-08-28 01:43:20 -07:00
082e6ea521 feat(web): reveal chat file chips in the system file manager (#7140)
Co-authored-by: Dara Adedeji <[email protected]>
Co-authored-by: shivam <[email protected]>
2026-08-26 00:35:16 +05:30
Theo Browne bce680926d feat(mobile): track device models and OS versions (#8169) 2026-08-24 23:24:15 -07:00
Theo Browne e9f50c3efc feat(web): upload image attachments before sending (#8048) 2026-08-24 01:44:39 -07:00
Theo Browne 3db38b8814 feat(codex): submit thread feedback to OpenAI (#7949) 2026-08-23 00:00:36 -07:00
Theo BrowneandClaude Fable 5 11f051373e feat(analytics): threads and turns now know which client started them (#7774)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-08-21 21:04:46 -07:00
Dara Adedeji 8824f8f24f fix(web): retry failed thread bootstraps with a fresh id (#7664) 2026-08-21 00:16:28 +05:30
Bilal Bakr ba46f922a2 fix(pull-requests): protect provider API budgets (#6466) 2026-08-17 01:39:25 +02:00
Theo BrowneandClaude Fable 5 57a299a785 feat(web): open remote environments in your local editor over SSH (#6572)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-08-14 17:35:34 -07:00
Chris Deeming 9fd788b5a9 fix(preview): only show browser-ready local servers (#6021) 2026-08-13 22:10:41 -04:00
Bilal BakrandJulius Marminge b28f9bf0a1 feat(web): pull request surfaces — filters & qualifiers, all-server listing, update branch, reactions, in-place editing, smarter diffs (#6039)
Co-authored-by: Julius Marminge <[email protected]>
2026-08-12 22:58:36 +02:00
cad2c93616 feat: multi-provider pull requests page with in-app reviews (#4849)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: maria <[email protected]>
Co-authored-by: maria-rcks <[email protected]>
Co-authored-by: codex <[email protected]>
2026-08-10 17:47:02 +02:00
Theo Browne 076e9048dc feat(web): project icons can be chosen manually (#5775) 2026-08-08 22:13:16 -07:00
Theo BrowneandClaude Fable 5 5bb8c03664 fix(server): settle no longer leaves monitors and dev servers running (#5774)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-08-08 19:44:15 -07:00
Theo BrowneandClaude Opus 5 8101cd0449 feat(usage): usage page reading provider transcripts across environments (#5684)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
2026-08-08 03:59:04 -07:00
Theo Browne ddfe45c66e test(server): catch client transfer regressions in CI (#5350) 2026-08-06 23:17:49 -07:00
Theo BrowneandClaude Fable 5 6b73b3defe feat: paginate thread loading with user-anchored turn windows (#5493)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-08-06 19:33:49 -07:00
Theo BrowneandClaude Fable 5 331c6dce7f fix(server): skip origin fetch when creating worktrees in repos without an origin remote (#5556)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-08-06 20:13:10 -04:00
Theo BrowneandClaude Fable 5 a2ca89aa10 feat: native subagent & workflow observability (#5219)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-08-06 00:32:28 -04:00
maria 4fb03aff0b fix(web): better right panel (new diffs styling) (#5260) 2026-08-05 00:00:24 +02:00
Theo BrowneandClaude Fable 5 ca72e381c6 fix(server): bound thread catch-up replay and stop full-DB snapshot hydration (#5147)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-31 16:14:15 -07:00
abc409c2d4 Add project file picker (⌘P) and project content search (⇧⌘F) (#4855)
Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
2026-07-30 16:39:15 +02:00
Theo Browne 4b71a2ae2f feat(search): find threads by conversation content (#4959) 2026-07-30 05:30:11 -07:00