Commit Graph
208 Commits
Author SHA1 Message Date
Vitaly Iegorov 2c8e95a4b6 fix(mobile): show the provider account badge on thread rows (#9899) 2026-09-07 16:02:40 -07:00
Theo BrowneandClaude Fable 5.1 7112697e8b feat(threads): dismiss async questions without replying (#10431)
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-06 17:16:38 -07:00
Theo BrowneandClaude Fable 5.1 252df77420 perf(web): keep the sidebar responsive during bulk thread updates (#10413)
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-06 17:10:52 -07:00
Julius Marminge 0a89364f15 fix(usage): read and redeem hub reset credits through CLIProxyAPI (#10395) 2026-09-06 16:30:10 -07:00
maria 2d6a379997 fix(web): only show auto balance errors after failed checks (#10407) 2026-09-06 19:54:32 -03:00
Julius Marminge 95d99373b7 fix(clients): show feedback results in composer banners (#10398) 2026-09-06 12:44:41 -07:00
Julius Marminge 4023d93bce feat(web): drag threads across sections with consistent motion (#9731) 2026-09-06 11:10:14 -07:00
Julius Marminge 2d645df474 feat(threads): persist manual active thread order (#9729) 2026-09-06 11:10:13 -07:00
Theo BrowneandClaude Fable 5.1 223ff4490f fix(server): link thread PRs without an open client (#10101)
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-06 04:06:15 -07:00
Theo BrowneandClaude Fable 5.1 e63ddb48e2 fix(threads): keep completed requests closed across clients (#10123)
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-06 02:56:39 -07:00
Theo Browne ac11bd29b0 refactor(client): share tool outcome rules (#10122) 2026-09-06 02:15:19 -07:00
maria 420fd76f60 feat(connections): balance new threads across connected machines (#9895) 2026-09-06 02:33:13 -03:00
mariaandmaria-rcks 9f40b2f563 feat(settings): add shared project defaults and scoped overrides (#9754)
Co-authored-by: maria-rcks <[email protected]>
2026-09-06 02:32:48 -03:00
Wout Stiens eee05575eb fix(clients): persist project icons across reloads and reconnects (#10138) 2026-09-05 18:50:02 -07:00
Julius Marminge bd16b86d50 fix(client-runtime): report terminated thread loads (#10216) 2026-09-05 17:18:50 -07:00
Wout StiensandJulius Marminge f12d39359f fix(ui): unify loading and refresh feedback across clients (#9561)
Co-authored-by: Julius Marminge <[email protected]>
2026-09-05 16:26:02 -07:00
Chris Deeming 183c343309 feat: show provider usage limits with /usage-limits (#9875) 2026-09-05 16:17:36 -07:00
Julius Marminge dbfd517313 refactor(client-runtime): remove unused runtime exports and helpers (#10167) 2026-09-05 15:54:59 -07:00
Julius MarmingeandClaude Code e2e6ce6a29 feat(server): report image dimensions with signed asset URLs (#10198)
Co-authored-by: Claude Code <[email protected]>
2026-09-05 15:51:07 -07:00
Julius Marminge 29c3a54a4e refactor(client-runtime): remove unused relay token waiter (#10151) 2026-09-05 08:43:10 -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
Julius Marminge 3bcde91f82 refactor(client-runtime): remove unused subagent selectors (#9992) 2026-09-05 00:19:29 -07:00
Julius MarmingeandClaude Fable 5 f87ecf0cc3 fix(client): keep warm thread resumes live instead of flashing sync (#9913)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-05 00:15:46 -07:00
Julius Marminge 044a6e168a refactor(client-runtime): remove unused file position predicate (#9976) 2026-09-05 00:09:44 -07:00
Julius Marminge 1782a2af44 refactor(client-runtime): remove unused connection phase message (#9972) 2026-09-05 00:09:26 -07:00
Julius Marminge f530d7b618 test(client-runtime): keep scoped key implementation private (#9955) 2026-09-04 23:27:52 -07:00
Julius Marminge 7a089b2b24 fix(server): capture turn checkpoints after all edits finish (#9841) 2026-09-04 22:36:32 -07:00
maria f47a3fe903 fix(settings): share restart continuation across environments (#9933) 2026-09-05 01:33:25 -04:00
Julius Marminge 363cde4114 fix(connect): refresh HTTP credentials without reconnecting (#9594) 2026-09-04 20:12:04 -07:00
maria 110bbe6b55 fix(prs): reuse GitHub data and defer optional reads (#9835) 2026-09-04 21:10:25 -04:00
Theo Browne 2dca7a1edd fix(client): explain possible network blocking for T3 Connect (#9783) 2026-09-04 17:54:08 -07:00
Michel LiaoandJulius Marminge 8faf031c2d fix(web): respect case in POSIX file links (#9309)
Co-authored-by: Julius Marminge <[email protected]>
2026-09-04 17:27:31 -07:00
maria 98a29cbaa1 fix: address usage limits and merge settlement regressions (#9784) 2026-09-04 17:46:12 -04:00
Julius Marminge 394e8470c8 feat(usage): support custom model prices (#9774) 2026-09-04 14:22:21 -07:00
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