GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): stop late progress from reviving idle tasks by matsvarn · Pull Request #7129 · pingdotgg/t3code

Conversation

@matsvarn

@matsvarn matsvarn commented Aug 15, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

What Changed

Status-free task.progress can now maintain an existing live task, but it cannot create a new live entry by itself.

This prevents delayed descriptive progress from reviving a task after an idle or terminal update removed it. Explicit lifecycle events can still start or resume tasks.

A focused regression test covers the observed started → idle → delayed progress sequence.

Why

Providers can flush descriptive progress after a task becomes idle. ThreadBackgroundLiveness treated every non-terminal progress event as proof of live work.

The client then received backgroundLiveness: "working" while its agent fold reported zero live agents. This produced a persistent “Background work running” banner on finished threads.

Fixes #7128

UI Changes

n/a — no layout or styling change. This corrects stale server state.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes (n/a)
  • I included a video for animation/interaction changes (n/a)

Verification

vp test run apps/server/src/orchestration
# 27 files, 272 tests passed

vp run --filter t3 typecheck
# exit 0

vp lint apps/server/src/orchestration/ThreadBackgroundLiveness.ts \
  apps/server/src/orchestration/ThreadBackgroundLiveness.test.ts

vp fmt --check apps/server/src/orchestration/ThreadBackgroundLiveness.ts \
  apps/server/src/orchestration/ThreadBackgroundLiveness.test.ts

Without the new guard, the regression test fails with:

expected "working" to be null

Implemented with GPT-5 via the Codex desktop app.

Note

Fix recordTaskLiveness to ignore late progress events that would revive idle tasks

Progress events with undefined status no longer create a live entry in ThreadBackgroundLivenessService if the task was not already live. This prevents delayed progress updates from reviving thread liveness after a task has transitioned to idle or terminal state. The fix introduces a wasLive check computed from existing state sets before classifying the event as a drop or add.

Macroscope summarized ebe4eee.


Note

Low Risk
Narrow change to in-memory liveness bookkeeping with a focused guard and test; no auth, persistence, or API surface changes.

Overview
ThreadBackgroundLiveness no longer treats delayed, status-free progress events as proof of live work when the task is not already tracked.

After started → idle, providers can still flush descriptive task.progress payloads. Those events are ignored unless the task was already in the agent/monitor sets, so thread backgroundLiveness stays null instead of flipping back to working. Explicit lifecycle events (started, status-bearing updates) can still add or refresh entries.

A regression test covers the started → idle → delayed progress sequence.

Reviewed by Cursor Bugbot for commit ebe4eee. Bugbot is set up for automated code reviews on this repo. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@matsvarn
fix(server): ignore late progress for inactive tasks
ebe4eee
@coderabbitai

coderabbitai Bot commented Aug 15, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 3ca4eaec-b518-40a7-ab27-381c92b49dbb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Aug 15, 2026
@matsvarn
matsvarn marked this pull request as ready for review August 15, 2026 21:13
macroscopeapp[bot]
macroscopeapp Bot approved these changes Aug 15, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved ebe4eee

Straightforward bug fix adding a defensive guard to prevent late-arriving progress events from incorrectly reviving idle tasks. The change is minimal, well-commented, and includes a clear test case demonstrating the exact scenario.

You can customize Macroscope's approvability policy. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shivamhwp ChatGPT Codex Connector

shivamhwp commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

codebot on behalf of shivam: thanks for the solid fix. we reproduced the bug and verified both implementations; both passed the focused suite. we merged #7172 because it scopes the liveness lookup to the status-free progress path instead of doing extra map/set lookups for every event. closing this as covered by the merged fix.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shivamhwp shivamhwp closed this Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Finished threads stay Working after delayed task progress

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@matsvarn @shivamhwp
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.