Commit Graph
342 Commits
Author SHA1 Message Date
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 5fe29c8945 refactor(mobile): remove unused font size steppers (#9975) 2026-09-05 00:12:21 -07:00
Julius Marminge eda0cec923 refactor(mobile): remove unused layout calculations (#9974) 2026-09-05 00:09:42 -07:00
Julius Marminge c1e279eca5 refactor(mobile): remove unused provider option summary (#9971) 2026-09-05 00:09:25 -07:00
Julius Marminge 2759ef05bb chore(mobile): remove obsolete widget wiring script (#9960) 2026-09-04 23:52:52 -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 363cde4114 fix(connect): refresh HTTP credentials without reconnecting (#9594) 2026-09-04 20:12:04 -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
82f64cd8d0 fix(skills): support names beginning with digits (#9244)
Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
2026-09-04 18:13:43 -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
maria 98a29cbaa1 fix: address usage limits and merge settlement regressions (#9784) 2026-09-04 17:46:12 -04: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
Julius Marminge 2e688a53cf docs: keep internal guides focused on architecture (#9755) 2026-09-04 12:45:04 -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 7839140e5e fix(mobile): preserve saved work after storage read failures (#9710) 2026-09-04 09:20:31 -07:00
Theo Browne 777f5bb2e1 perf(mobile): reuse diff rows during comment edits (#9693) 2026-09-04 07:49:02 -07:00
Theo Browne 44dc8ae259 perf(mobile): reuse chat feed rows during streaming (#9688) 2026-09-04 07:25:15 -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
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
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