Commit Graph
1172 Commits
Author SHA1 Message Date
Julius MarmingeandClaude Code 4701041eef test(server): skip posix executable fixtures on a Windows host (#9565)
Co-authored-by: Claude Code <[email protected]>
2026-09-04 20:33:19 +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
Julius Marminge bfef973d9e fix(server): remove retired Codex models after refresh (#9773) 2026-09-04 13:24:40 -07:00
Julius Marminge bc03c3640d fix(models): make GPT-6-Astra current (#9762) 2026-09-04 12:15:41 -07:00
Theo Browne 6365919f2e perf(server): skip history reads for metadata commands (#9758) 2026-09-04 12:12:49 -07:00
Theo Browneandwill cf9729d5ee perf(server): bound terminal history by bytes (#9748)
Keep at most 5,000 lines and 8 MiB of retained UTF-8 terminal history. Discard the oldest text at either limit while preserving complete live output.

Track bytes and newlines in small chunks. Join split surrogates before eviction. Restore only the needed file tail, handle short reads, and close the file before rewriting current or legacy history.

Created with GPT-6 Astra (preview) in Codex.

Co-authored-by: will <[email protected]>
2026-09-04 11:49:15 -07:00
Theo Browne c8f77e0d44 perf(server): stop caching unused OpenCode tool parts (#9738)
Do not retain OpenCode tool parts after emitting their runtime events. The remaining cache readers need text, reasoning, or step-usage parts, not tool input and output.

Keep tool lifecycle events, output bytes, late-role assistant text, and usage handling unchanged. Add focused lifecycle coverage and verify retained memory through the real adapter.

Created with GPT-6 Astra (preview) in Codex.
2026-09-04 11:04:05 -07:00
Theo Browne 50bfca43d7 perf(server): replay only the selected thread (#9726)
Read only the selected thread's events when resuming its detail stream. Measure bounded row counts and serialized payload bytes before replay, using the existing aggregate index and a captured authoritative head.

Keep snapshot resets for oversized or invalid cursors. Reset recreated threads when a snapshot exists, and keep bounded replay for deleted threads whose snapshot is absent. Shell replay and the detail-event filter are unchanged.

Created with GPT-6 Astra (preview) in Codex.
2026-09-04 10:35:27 -07:00
Theo Browne 8ccb933a8a test(server): allow either valid file-search match (#9720) 2026-09-04 12:48:16 -04:00
Theo Browne 108f295cc3 fix(server): bound slow-client event buffers (#9715) 2026-09-04 09:47:23 -07:00
Guillermo Casanova d536b0580d fix(server): settle inactive threads with open PRs (#9610) 2026-09-04 12:44:01 -04:00
Theo Browne dffb4cd3b1 perf(server): use one query for buffered provider events (#9706) 2026-09-04 08:46:29 -07:00
Theo Browneandwill 3bbbc1d9fd perf(server): stop rebuilding terminal history per chunk (#9703)
Append terminal history incrementally and materialize text for snapshots and coalesced disk writes.
Clear evicted line references without changing retained output.

Continues [#9357](https://github.com/pingdotgg/t3code/pull/9357). The original contribution and author credit are preserved.
The current line limit and wire format stay unchanged. A strict byte limit remains separate work.

Created with GPT-6 Astra (preview) in Codex.

Co-authored-by: will <[email protected]>
2026-09-04 08:31:17 -07:00
Theo Browne c163d502dd perf(server): avoid full patches for checkpoint summaries (#9694) 2026-09-04 08:05:37 -07:00
Theo Browne 1587f248dd feat(server): measure provider turn token usage (#9132) 2026-09-04 07:54:23 -07:00
Theo Browne ec8b2119c3 perf(server): omit repeated OpenCode progress logs (#9689) 2026-09-04 07:26:51 -07:00
Theo Browne f2e3764c25 perf(server): stop retaining unused OpenCode tool history (#9684) 2026-09-04 07:19:43 -07:00
Theo Browne 2263e13fda perf(server): batch projector cursor writes (#9671) 2026-09-04 07:19:37 -07:00
Theo Browne 27e6cc27fe perf(server): cache and stream static web assets (#9669) 2026-09-04 07:14:42 -07:00
Theo Browne 8ac5462920 perf(server): stop loading message bodies for thread summaries (#9662) 2026-09-04 06:24:41 -07:00
Theo BrowneandClaude Fable 5.1 560afffdea fix(server): update Claude Agent SDK to 0.3.260 (#9135)
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-04 06:23:12 -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
seeb1337andTheo Browne eb77683e55 fix(server): prevent duplicate desktop clients after restart
Replace stale local desktop sessions in one transaction. Preserve paired clients and browser sessions, and keep the previous credential valid if replacement fails.

Closes https://github.com/pingdotgg/t3code/issues/6283.

Original implementation by seeb1337. Reviewed and verified with GPT-6 Astra (preview) in Codex.

Co-authored-by: seeb1337 <[email protected]>
Co-authored-by: Theo Browne <[email protected]>
2026-09-04 04:20:53 -07:00
Barry 2152d44de2 fix(server): load OpenCode workspace skills via SDK to avoid 64KB CLI pipe truncation (#9585) 2026-09-04 03:58:56 -04:00
Julius Marminge 99e3b721c5 fix(connect): diagnose incomplete headless server setup (#9602) 2026-09-04 00:43:47 -07:00
Julius MarmingeandClaude Code 61a91b6ef1 fix(web): group image views like other tool calls (#9597)
Co-authored-by: Claude Code <[email protected]>
2026-09-04 00:27:16 -07: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
Theo Browne 2675e3c703 fix(antigravity): keep subagent batches active after launch (#9579) 2026-09-03 20:29:56 -07:00
Theo BrowneandClaude Fable 5.1 4e547318b6 fix(server): find newly opened pull requests after agent turns (#9125)
Refresh missing PR associations after agent turns on the thread's current branch. Preserve background policy, known PR caches, and failed-lookup backoff. Serialize status loads and refreshes to prevent stale responses from hiding a PR. Find branches pushed under their own name while still tracking the default branch.

Original work by Theo Browne with Claude Fable 5.1 in Claude Code. Takeover fixes created with GPT-6 Astra (preview) in Codex.

Co-authored-by: Theo Browne <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
2026-09-03 19:19:26 -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 Marminge 617edab653 fix(server): reveal normalized paths in File Explorer (#9551) 2026-09-03 19:07:24 -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
dddc0bdcb2 fix(server): include SQLite conditions in persistence errors
Include SQLite conditions and schema issue tags without copying query data.

Continue @Sy-D's [#4837](https://github.com/pingdotgg/t3code/pull/4837). Add the missing Bun error codes and test the real SQL client.

Created with GPT-6 Astra (preview) in Codex.

Co-authored-by: Sy-D <[email protected]>
Co-authored-by: Claude Opus 5 <[email protected]>
2026-09-03 18:35:27 -07:00
Jake Leventhal f54ab901fa Fix worktree removal timing out on large install trees (#3902) 2026-09-03 18:17:36 -07:00
Derek Trimm b90898077e fix(server): back off relay client restarts after rapid exits (#8788) 2026-09-03 18:16:16 -07:00
mariaandmaria-rcks 2b96220f00 fix(server): settle branch threads immediately on pull request merge (#9528)
Co-authored-by: maria-rcks <[email protected]>
2026-09-03 21:11:57 -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 9d28c21a26 fix(auth): keep pairing credentials out of access read models (#9523) 2026-09-03 17:17:38 -07:00
Theo Browne 9c9ae3dc0e fix(server): keep events during thread subscription startup (#9521) 2026-09-03 17:08:54 -07:00
Theo Browne f8a14b28ff feat(antigravity): show subagent calls and results (#9515) 2026-09-03 17:02:25 -07:00
Theo Browne 8ea52c8f2f fix(antigravity): update managed runtime to 1.1.1 (#9509) 2026-09-03 16:39:24 -07:00
Theo Browne eb334ca574 fix(antigravity): handle native sign-in URLs on stderr (#9514) 2026-09-03 16:39:17 -07:00
Theo Browne baf67b6e3a fix(antigravity): keep model choices up to date (#9511) 2026-09-03 16:35:19 -07:00
Theo Browne f25e442896 fix(antigravity): allow slow runtime startup during setup (#9510) 2026-09-03 16:30:31 -07:00
WellyngtonF e01c153c18 fix(antigravity): forward Google sign-in URLs from browser helper (#9425) 2026-09-03 16:19:27 -07:00
SimoneandSimone 0aae1e2ad7 fix(antigravity): discover legacy workspace skills (#9410)
Co-authored-by: Simone <[email protected]>
2026-09-03 16:17:57 -07:00
d2b6f3b929 fix(server): full-access OpenCode threads no longer ask for approvals (#9282)
Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
2026-09-03 20:38:12 +00:00