Commit Graph
314 Commits
Author SHA1 Message Date
Dara Adedejiandshivam 09d13de438 feat(mobile): make chat text selectable on Android (#8779)
Co-authored-by: shivam <[email protected]>
2026-09-04 09:52:07 +00:00
mariaandmaria-rcks 5f878d2a85 fix(web,mobile): fold context compaction under settled turn folds (#9623)
Co-authored-by: maria-rcks <[email protected]>
2026-09-04 04:12:46 -04:00
Julius Marminge c3b8825bf4 fix: preserve tool icons on failed calls (#9606) 2026-09-04 00:30:55 -07:00
Theo Browne 00f8b7c280 fix: show idle subagent batches without completion marks (#9616) 2026-09-04 00:24:44 -07:00
Julius Marminge f1e90e388b refactor(web): move usage provider controls to settings (#9599) 2026-09-03 23:56:23 -07:00
Exotic caab2fdbac fix(web): render draft PRs in gray (#9537) 2026-09-04 02:17:18 -04:00
Julius Marminge b34ff8f564 fix(usage): deduplicate CLI proxy subscription accounts (#9584) 2026-09-03 21:38:45 -07:00
Dara Adedeji 09b81a3495 fix(mobile): render workspace images in markdown file previews (#8769) 2026-09-03 21:27:16 -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
Julius MarmingeandClaude Fable 5 5989de44a2 fix(mobile): keep store screenshots free of system banners and show dictation (#9548)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-03 18:53:21 -07:00
mariaandmaria-rcks c5ba51d629 feat(providers): add context compaction command (#9293)
Co-authored-by: maria-rcks <[email protected]>
2026-09-03 21:48:28 -04: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 d76b24dd15 feat(codex): support async questions (#9512) 2026-09-03 17:36:41 -07:00
Theo Browne f8a14b28ff feat(antigravity): show subagent calls and results (#9515) 2026-09-03 17:02:25 -07:00
Invictine ef4cc6085e fix(mobile): resolve Antigravity provider icon and normalize driver matching (#9495) 2026-09-03 16:19:12 -07:00
Julius MarmingeandClaude Fable 5 409bc4fa6f fix(mobile): keep the machine glyph next to the environment label (#9486)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-03 15:56:35 -07:00
Julius MarmingeandClaude Fable 5 de025aa69f fix(mobile): show loading and syncing in the working pill (#9466)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-03 12:52:50 -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 2aa907b196 fix(mobile): show an error instead of an endless preview spinner (#9123)
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-03 02:41:56 -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
Julius Marminge 24799de4f8 fix(mobile): size expanded tool groups correctly (#9359) 2026-09-02 23:48:24 -07:00
Julius MarmingeandClaude Fable 5 829c3db948 fix(environments): draw the machine icon everywhere an environment is named (#9365)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-02 23:23:44 -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
Adamulek123 1575ada305 fix(mobile): stop indented code overflowing Android chat bubbles (#9347) 2026-09-03 01:30:10 -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
3b2de9da1c chore: dedupe lightningcss and tailwind node bindings (#9331)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-03 03:35:09 +00:00
85f2479ffe refactor(mobile): style plain views with Uniwind classes instead of the theme bridge (#9322)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-03 03:02:29 +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
mariaandmaria-rcks 31eeb44330 fix(sidebar): collapse settled and snoozed shelves by default (#9314)
Co-authored-by: maria-rcks <[email protected]>
2026-09-02 22:36:35 -04:00
0fbb942485 feat(environments): draw each environment as the machine it runs on (#9299)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-02 19:06:14 -07: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 15fea6c5f4 fix(providers): discover workspace skills everywhere (#9180)
Co-authored-by: maria-rcks <[email protected]>
2026-09-02 20:07:31 -04:00
maria 63f334baf3 Revert "feat(providers): add context compaction across harnesses" (#9284) 2026-09-02 18:58:07 -04:00
mariaandmaria-rcks 535557b3f7 feat(providers): add context compaction across harnesses (#8808)
Co-authored-by: maria-rcks <[email protected]>
2026-09-02 18:43:46 -04:00
mariaandmaria-rcks 46b5c66406 fix(chat): show single tool calls without summaries (#9267)
Co-authored-by: maria-rcks <[email protected]>
2026-09-02 17:21:26 -04:00
Nick Anisimov 62c68dc41f fix(mobile): show filled filter icon on Android when filters are active (#9217) 2026-09-02 17:18:46 -04:00
9159b808d3 feat(mobile): long-press file references for path and open actions (#9258)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-02 13:03:27 -07:00
Wout Stiens aab4049646 fix(ci): keep Expo Sharing patch applied (#9248) 2026-09-02 18:44:31 +00:00
Will Sheldon b5a09e13fa fix(release): pin patched expo-sharing version (#9250) 2026-09-02 11:37:27 -07:00
Julius Marminge 7e9d5a7efa fix(mobile): prevent message and composer overlap (#9195) 2026-09-02 01:56:39 -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 5392c9bb99 fix(models): restore sticky new-thread selections (#9164)
Co-authored-by: maria-rcks <[email protected]>
2026-09-02 02:11:15 -04:00
Yash Singh f9d1c65d47 chore: bump vendored GhosttyKit and update terminal integration (#9155) 2026-09-02 00:57:01 -05:00
Julius Marminge b520120cf1 fix(chat): improve tool group summaries and scrolling (#9106) 2026-09-01 21:52:46 -07:00
Theo Browne db4bf9497b chore: remove unused code and brittle tests (#9150) 2026-09-01 21:42:58 -07:00
e7deb2aaf4 feat(web): cite assistant responses with inline citations (#9146)
Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: maria-rcks <[email protected]>
2026-09-01 20:55:35 -07:00