Commit Graph
273 Commits
Author SHA1 Message Date
Julius MarmingeandClaude Code bfba778168 fix(mobile): keep the new-task draft when switching environment (#10247)
Co-authored-by: Claude Code <[email protected]>
2026-09-05 20:12:51 -07:00
Julius Marminge b438447f67 fix(mobile): use selected theme across input forms and controls (#10239) 2026-09-05 19:22:39 -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 DeemingandJulius Marminge be53bbd850 feat(usage): show remaining quota instead of used (#9889)
Co-authored-by: Julius Marminge <[email protected]>
2026-09-05 16:22:15 -07:00
Chris Deeming 183c343309 feat: show provider usage limits with /usage-limits (#9875) 2026-09-05 16:17:36 -07:00
Julius MarmingeandClaude Fable 5 89cc7434f0 fix(mobile): stop clipping expanded tool groups (#10212)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-05 15:57:44 -07:00
Julius MarmingeandClaude Fable 5 7eda989d38 fix(mobile): only make work rows expandable when the body adds something (#10210)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-05 15:57:43 -07:00
Julius MarmingeandClaude Fable 5 1cb49c3df2 fix(mobile): even out the working pill's spacing (#10209)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-05 15:57:43 -07:00
Julius MarmingeandClaude Fable 5 3fb8942a42 fix(mobile): restore live tool shimmer and add a Thinking row (#10173)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-05 15:57:42 -07:00
Julius MarmingeandClaude Code 7451d17a69 fix(mobile): size a chat image's frame before its bytes arrive (#10199)
Co-authored-by: Claude Code <[email protected]>
2026-09-05 15:51:08 -07:00
Julius Marminge b92a812287 refactor(mobile): remove unused cloud pending-status mapper (#10071) 2026-09-05 02:02:12 -07:00
Julius Marminge ee150e178b refactor(mobile): remove unused cloud relay URL normalizer (#10068) 2026-09-05 01:54:36 -07:00
Julius Marminge 4db2c542a8 refactor(mobile): remove obsolete whole-file review highlighters (#10067) 2026-09-05 01:53:42 -07:00
Julius Marminge d524eb9693 refactor(mobile): remove obsolete native diff token stream (#10062) 2026-09-05 01:50:46 -07:00
Julius Marminge 5b7f6bcfbc refactor(mobile): remove write-only terminal font cache (#10058) 2026-09-05 01:49:06 -07:00
Julius Marminge c2aff911c3 refactor(mobile): keep review reset hashing private (#10048) 2026-09-05 01:30:22 -07:00
Julius Marminge c059d09b9b refactor(mobile): remove obsolete review list builder (#10039) 2026-09-05 01:23:45 -07:00
Julius Marminge 37bf4e6ec4 refactor(mobile): remove unused awareness relay URL normalizer (#10029) 2026-09-05 01:19:42 -07:00
Julius Marminge 1449deca0a refactor(mobile): test final connection status presentation (#10007) 2026-09-05 00:27:13 -07:00
Julius Marminge 8d48a3134f refactor(mobile): remove unused file tree walkers (#10003) 2026-09-05 00:26:51 -07:00
Julius Marminge 393d1ffc9e refactor(mobile): test terminal palettes through public theme API (#10002) 2026-09-05 00:26:34 -07:00
Julius Marminge 3382b26c4f refactor(mobile): remove unused native style constants (#10001) 2026-09-05 00:26:31 -07:00
Julius Marminge 1c59d3b72c refactor(mobile): keep review default ID helper private (#10000) 2026-09-05 00:26:27 -07:00
Julius Marminge 1e24b43d3f refactor(mobile): keep project selection helper private (#9999) 2026-09-05 00:26:23 -07:00
Julius MarmingeandClaude Fable 5 50027bb3ad fix(mobile): keep highlighting review diffs after a long line (#9911)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-05 00:15:36 -07:00
Julius Marminge a399473c30 test(mobile): keep composer selection helper private (#9953) 2026-09-04 23:25:59 -07:00
maria f47a3fe903 fix(settings): share restart continuation across environments (#9933) 2026-09-05 01:33:25 -04:00
Theo Browne 94cc8152ff fix(chat): show hours for long runs (#9894)
Long runs display total minutes, such as `419m 50s`, which is hard to read.

Show `6h 59m 50s` instead. Web, desktop, and mobile use the shared formatter for long live, completed, and stopped runs.

## Verification

- 210 tests pass with `vp test run packages/shared/src/orchestrationTiming.test.ts apps/web/src/components/chat/MessagesTimeline.logic.test.ts apps/mobile/src/lib/threadActivity.test.ts`.
- Shared, web, and mobile typechecks pass.
- Changed-file lint and formatting pass, with existing lint warnings.
- Browser verification and screenshots skipped at Theo's request.

Created with GPT-6 Astra (preview) in Codex.
2026-09-04 21:11:22 -07:00
Julius Marminge ac90950f1a fix(mobile): keep usage tabs below the header when switching (#9876) 2026-09-04 19:53:45 -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
b6f72681da fix: stop favicon requests for private link hosts on web and mobile (#5838)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: codex <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
2026-09-04 17:36:28 -07:00
Julius MarmingeandClaude Fable 5 24aef0e6c1 feat(mobile): split the usage page into Usage and Limits tabs (#9775)
Co-authored-by: Claude Fable 5 <[email protected]>
2026-09-04 14:10:30 -07:00
Theo Browne 77b655c47b perf(mobile): defer file preview highlighter startup (#9752) 2026-09-04 12:07:23 -07:00
Theo Browne d6e29dc9de perf(mobile): bound the parsed review cache (#9749)
Bound cached parsed review sections by eight entries and 4,194,304 full source characters. Evicted inactive parsed and native results can be collected. Raw patches, comments, and view state stay unchanged.

Prewarm only nearby sections that fit beside the selected section. Use actual retained source weights for normalized cache hits, and skip oversized prewarms.

Created with GPT-6 Astra (preview) in Codex.
2026-09-04 11:38:54 -07:00
c4353bc6b9 fix(mobile): read file-backed image drafts before enabling them (#9713)
Accept file-backed image drafts and v4 outbox records while keeping current inline image creation and v3 outbox writes.

Retain image files during previews, uploads, and legacy inline reads. Preserve image MIME types and stop canceled sends after asynchronous reads.

The later file-backed writers remain held until new native runtime fingerprints contain these readers and the storage guards.

Continue Wout Stiens' mobile draft work with separate reader-only corrections. The original contribution remains unchanged.

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 10:20:53 -07:00
Julius Marminge 9eb4d71681 fix(mobile): remove provider setup (#9721) 2026-09-04 09:52:01 -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 777f5bb2e1 perf(mobile): reuse diff rows during comment edits (#9693) 2026-09-04 07:49:02 -07:00
Theo Browne 7cf5b284e6 perf(mobile): skip unused legacy list work (#9679) 2026-09-04 07:03:49 -07:00
Theo Browne 3b6be3ef4d perf(mobile): bound diff syntax highlighting work (#9673) 2026-09-04 06:50:51 -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
Julius Marminge c3b8825bf4 fix: preserve tool icons on failed calls (#9606) 2026-09-04 00:30:55 -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
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