Repository navigation
fix(server): wake threads when watches and waits go stale - #179
Draft
nullStack65 wants to merge 6 commits into
Draft
nullStack65 wants to merge 6 commits into
nullStack65 wants to merge 6 commits into
Conversation
nullStack65
marked this pull request as ready for review
November 23, 2026 08:40
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
nullStack65
marked this pull request as draft
November 23, 2026 08:42
nullStack65
marked this pull request as ready for review
November 23, 2026 16:57
nullStack65
marked this pull request as draft
November 23, 2026 17:00
nullStack65
force-pushed
the
t3/mandatory-wait-monitor-staleness-timeout-clo1133
branch
2 times, most recently
from
November 24, 2026 04:45
28ef7b8 to
b53001f
Compare
nullStack65
marked this pull request as ready for review
November 24, 2026 04:45
nullStack65
marked this pull request as draft
November 24, 2026 05:14
Model: gpt-6.2-sol Task: fix Agent: Codex Lane: codex
Model: gpt-6.2-sol Task: fix Agent: Codex Lane: codex
Model: gpt-6.2-sol Task: fix Agent: Codex Lane: codex
Persist background wait deadlines before provider enrollment and recover older awaited work. Deliver active-run diagnostics through system notices, refresh queued groups at delivery, and keep PR watch overrides and intentional holds intact. Model: gpt-6.2-sol Task: fix Agent: Codex Lane: codex Harness: t3/codex
Place the deadline helper with the staleness handlers so the sibling snooze-queue repair applies cleanly. Model: gpt-6.2-sol Task: fix Agent: Codex Lane: codex Harness: t3/codex
…dable The repeated-host-read-failures cases keep a watch unreadable for exactly the 30 minute stale window. The watch now wakes the thread once about the missing progress, so these cases expect that notice before the recovery summaries. Model: claude-sonnet-5-5 Task: test Agent: Claude Code Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
nullStack65
force-pushed
the
t3/mandatory-wait-monitor-staleness-timeout-clo1133
branch
from
November 24, 2026 05:16
b53001f to
5c8a499
Compare
nullStack65
marked this pull request as ready for review
November 24, 2026 05:18
nullStack65
marked this pull request as draft
November 24, 2026 05:22
This branch has not been deployed
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.
PR watches and background waits can go quiet indefinitely when a check stays queued or a child stops making progress. Give each wait a durable idle deadline. PR watches default to 30 minutes. Background waits, native monitors and awaited delegations default to 45 minutes. The MCP tools accept a 5–1440 minute override.
The existing server sweeps wake the owning thread with one diagnostic per quiet period. Progress re-arms the deadline, and unwatching or completion cancels it. SQLite retains the deadline and alert state across restarts. The tests exercise the deadlines using a deterministic clock and projection replay.
Deploy: none
Implemented with GPT-6.2 Sol in Codex.
Test change on rebase (note: CI does not run
runtimeLayer.test.ts)handles repeated host read failures(both variants) holds the watch unreadable for exactly 30 minutes, which isPR_WATCH_STALE_MINUTES.stalePullRequestWatchfires at idle >= the timeout (inclusive), so the stale notice now appears once at the final sweep. The cases now expect#8: no observed progress for 30 minutesbefore the recovery summaries, compared order-insensitively. Verified locally: the same two cases failed on the original PR head too, and pass after this change (5 passed in the filtered run). The earlier green CI did not cover this file.