Repository navigation
fix(server): keep Claude workflows alive while they report progress - #17715
Merged
Merged
Conversation
The idle pin budget started on the first deferral and only a new turn reset it, so a long background workflow was released 4 hours in even while it was still emitting events. Provider activity now restarts the pin budget, and a pin expiry that stops pending work records a lastError instead of looking finished. Fixes pingdotgg#16697
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a localized session-lifecycle bug fix that keeps active provider workflows alive while preserving timeout behavior for silent sessions. The production change is small and covered by a focused regression test. Notes:
You can add or adjust custom eligibility rules. Learn more. |
Drop the pin-expiry lastError: a non-null session error replaces the turn's usage_limit class, which stops auto-resume. Also drop the adapter test, which passes without this change.
macroscopeapp
Bot
dismissed
their stale review
October 11, 2026 00:34
Dismissing prior approval to re-evaluate 1ff672a
macroscopeapp
Bot
dismissed
their stale review
October 11, 2026 00:37
Dismissing prior approval to re-evaluate 2436b15
github-actions Bot
added a commit
to omarcresp/t3code-flake
that referenced
this pull request
Oct 11, 2026
## What's Changed * fix(pi): preserve tool images and structured results by @StiensWout in pingdotgg/t3code#17851 * fix(server): Claude 5 task lists reach the tasks drawer by @Mnigos in pingdotgg/t3code#14964 * fix(web): find bar and thread details panel stop covering each other by @MatthewFeroz in pingdotgg/t3code#17858 * fix(web): use server metadata for file chip icons by @Yash-Singh1 in pingdotgg/t3code#17923 * fix(desktop): copy images from HTML previews by @Bil0000 in pingdotgg/t3code#17555 * docs(pi): update installation and remote login guidance by @StiensWout in pingdotgg/t3code#17836 * fix(pi): preserve native abort outcomes by @StiensWout in pingdotgg/t3code#17853 * fix(pi): keep thinking defaults specific to each model by @StiensWout in pingdotgg/t3code#17835 * fix(pi): preserve shell command exit codes by @StiensWout in pingdotgg/t3code#17834 * fix(pi): expire and cancel extension approvals by @StiensWout in pingdotgg/t3code#17840 * feat(pi): include native sessions in usage reports by @StiensWout in pingdotgg/t3code#17848 * fix(server): route Copilot ACP subagent output into subagent threads by @maria-rcks in pingdotgg/t3code#17714 * fix(web): composer banner titles truncate beside their icon instead of wrapping by @maria-rcks in pingdotgg/t3code#17699 * fix(server): Muse turns no longer fail on Windows by @ntindle in pingdotgg/t3code#17163 * fix(pi): allow known read-only T3 tools without approval by @StiensWout in pingdotgg/t3code#17852 * fix: worktree threads keep their worktree when the agent starts, and messages sent during setup queue by @maria-rcks in pingdotgg/t3code#17654 * fix(server): keep Claude workflows alive while they report progress by @maria-rcks in pingdotgg/t3code#17715 * fix(web): media preview centers its content and pins the close button by @maria-rcks in pingdotgg/t3code#17951 * fix(server): threads without a project no longer need Git installed by @t3dotgg in pingdotgg/t3code#17959 * fix(web): toggling tools and thinking at the bottom keeps you at the bottom by @t3dotgg in pingdotgg/t3code#17954 * fix(web): Compact chip follows Claude's real prompt cache TTL by @t3dotgg in pingdotgg/t3code#17945 * fix(usage): bound OpenCode history reads to prevent backend OOM by @Yash-Singh1 in pingdotgg/t3code#17961 * refactor: format diff line counts through one shared helper by @maria-rcks in pingdotgg/t3code#17948 * fix: new projects start their first thread in the project folder, not a worktree by @t3dotgg in pingdotgg/t3code#17371 ## New Contributors * @ntindle made their first contribution in pingdotgg/t3code#17163 **Full Changelog**: pingdotgg/t3code@v0.0.46-nightly.20261010.2948...v0.0.46-nightly.20261011.2955 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.46-nightly.20261011.2955
github-actions Bot
added a commit
to davidvanderklay/t3code-flake
that referenced
this pull request
Oct 11, 2026
## What's Changed * fix(pi): preserve tool images and structured results by @StiensWout in pingdotgg/t3code#17851 * fix(server): Claude 5 task lists reach the tasks drawer by @Mnigos in pingdotgg/t3code#14964 * fix(web): find bar and thread details panel stop covering each other by @MatthewFeroz in pingdotgg/t3code#17858 * fix(web): use server metadata for file chip icons by @Yash-Singh1 in pingdotgg/t3code#17923 * fix(desktop): copy images from HTML previews by @Bil0000 in pingdotgg/t3code#17555 * docs(pi): update installation and remote login guidance by @StiensWout in pingdotgg/t3code#17836 * fix(pi): preserve native abort outcomes by @StiensWout in pingdotgg/t3code#17853 * fix(pi): keep thinking defaults specific to each model by @StiensWout in pingdotgg/t3code#17835 * fix(pi): preserve shell command exit codes by @StiensWout in pingdotgg/t3code#17834 * fix(pi): expire and cancel extension approvals by @StiensWout in pingdotgg/t3code#17840 * feat(pi): include native sessions in usage reports by @StiensWout in pingdotgg/t3code#17848 * fix(server): route Copilot ACP subagent output into subagent threads by @maria-rcks in pingdotgg/t3code#17714 * fix(web): composer banner titles truncate beside their icon instead of wrapping by @maria-rcks in pingdotgg/t3code#17699 * fix(server): Muse turns no longer fail on Windows by @ntindle in pingdotgg/t3code#17163 * fix(pi): allow known read-only T3 tools without approval by @StiensWout in pingdotgg/t3code#17852 * fix: worktree threads keep their worktree when the agent starts, and messages sent during setup queue by @maria-rcks in pingdotgg/t3code#17654 * fix(server): keep Claude workflows alive while they report progress by @maria-rcks in pingdotgg/t3code#17715 * fix(web): media preview centers its content and pins the close button by @maria-rcks in pingdotgg/t3code#17951 * fix(server): threads without a project no longer need Git installed by @t3dotgg in pingdotgg/t3code#17959 * fix(web): toggling tools and thinking at the bottom keeps you at the bottom by @t3dotgg in pingdotgg/t3code#17954 * fix(web): Compact chip follows Claude's real prompt cache TTL by @t3dotgg in pingdotgg/t3code#17945 * fix(usage): bound OpenCode history reads to prevent backend OOM by @Yash-Singh1 in pingdotgg/t3code#17961 * refactor: format diff line counts through one shared helper by @maria-rcks in pingdotgg/t3code#17948 * fix: new projects start their first thread in the project folder, not a worktree by @t3dotgg in pingdotgg/t3code#17371 ## New Contributors * @ntindle made their first contribution in pingdotgg/t3code#17163 **Full Changelog**: pingdotgg/t3code@v0.0.46-nightly.20261010.2948...v0.0.46-nightly.20261011.2955 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.46-nightly.20261011.2955
6 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #16697.
Long background Claude
Workflowruns were stopped mid-batch withquery.close. The session was leftstoppedwithlastError: null, so the thread looked finished.ProviderSessionManagerstarted its 4-hour idle pin the first time it deferred release, and only a new turn reset it. Provider events from a workflow that was still running never extended it.local_workflowstays on the subagent path. That path already counts it as running pending work.Verification:
query.closecame during the second silent step while the workflow was still running, and the session wentstoppedwithlastError: null.vp test run apps/server/src/orchestration-v2/ProviderSessionManager.test.tspasses (57 tests). The new test fails when the pin reset is removed.apps/servertypecheck and lint on the changed files are clean.🤖 Generated with Claude Code