Commit Graph
741 Commits
Author SHA1 Message Date
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 1568b3fd08 refactor(shared): remove unused viewport formatters (#9970) 2026-09-05 00:09:23 -07:00
Julius Marminge dfc70a3294 test(contracts): keep driver default lookup private (#9968) 2026-09-05 00:02:19 -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
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
maria a0eb23993a fix(web): prioritize open panel pull request when copying (#9877) 2026-09-04 23:40:02 -04:00
Julius Marminge 363cde4114 fix(connect): refresh HTTP credentials without reconnecting (#9594) 2026-09-04 20:12:04 -07:00
Julius Marminge 7ee52b0773 fix(web): render and filter usage as environments respond (#9860) 2026-09-04 19:45:13 -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
c3caceade1 perf(shared): skip duplicate PATH entries and per-probe tracing (#9618)
Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
2026-09-04 18:10:46 -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
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
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
Julius MarmingeandClaude Opus 5 ed2bdbb278 feat(desktop): import cookies from Safari (#7262)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
2026-09-04 17:23:06 -07:00
Julius Marminge f33fdc9924 fix(ssh): exec managed servers without npm wrappers (#9843) 2026-09-04 16:43:45 -07:00
Julius Marminge 5a433244d0 feat: add custom model names and option descriptors (#9807) 2026-09-04 16:11:20 -07:00
maria b906ce2d73 fix(server): recover opted-in threads after machine restarts (#9803) 2026-09-04 18:35:42 -04: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
SimoneandSimone b7d6e65021 fix(contracts): include tool.denied in runtime event types (#9770)
Co-authored-by: Simone <[email protected]>
2026-09-04 16:48:00 -04:00
Julius MarmingeandClaude Code 9fa54eeb4c test: resolve the Windows temp directory to its long name (#9573)
Co-authored-by: Claude Code <[email protected]>
2026-09-04 20:33:22 +00:00
Julius MarmingeandClaude Code 1108be0fc8 test: skip POSIX mode-bit assertions on a Windows host (#9571)
Co-authored-by: Claude Code <[email protected]>
2026-09-04 20:33:21 +00:00
Julius MarmingeandClaude Code 30f128faba test: skip symlink fixtures where the host cannot create symlinks (#9566)
Co-authored-by: Claude Code <[email protected]>
2026-09-04 20:33:20 +00:00
Julius MarmingeandClaude Code cc60753aa2 test: stop path and platform tests depending on the host OS (#9564)
Co-authored-by: Claude Code <[email protected]>
2026-09-04 20:33:19 +00: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 1587f248dd feat(server): measure provider turn token usage (#9132) 2026-09-04 07:54:23 -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
Julius Marminge b34ff8f564 fix(usage): deduplicate CLI proxy subscription accounts (#9584) 2026-09-03 21:38:45 -07: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
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
Yukun Shan 75ab5ab3fb fix(codex): accept rate limit errors on thread resume (#8897) 2026-09-03 18:16:35 -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 d76b24dd15 feat(codex): support async questions (#9512) 2026-09-03 17:36:41 -07:00
Theo Browne 9d28c21a26 fix(auth): keep pairing credentials out of access read models (#9523) 2026-09-03 17:17:38 -07:00
Julius MarmingeandClaude Opus 5 498ab9c399 feat(desktop): resolve Chromium cookie keys on Linux (#7261)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
2026-09-03 16:30:21 -07:00