Skip to content

fix(lastcode): end PR watch waits at a configurable quiet deadline - #542

Merged
lastobelus merged 1 commit into
lastcode/mainfrom
lastcode/pr-watch-stale-review
Oct 29, 2026
Merged

lastobelus merged 1 commit into
lastcode/mainfrom
lastcode/pr-watch-stale-review

Conversation

@lastobelus

@lastobelus lastobelus commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

A PR watch armed on a check or review that never finished could leave the agent parked indefinitely. New watch waits default to a persisted, one-shot quiet deadline. When it expires, the agent re-checks the gates, reports anything still pending as a blocker, and unwatches.

Behavior

  • Deadline setting: a LastCode setting (Settings → LastCode). Default 45 minutes, bounds 1–1,440.
  • Which deadline applies: new waits, and explicit re-arms that use the current setting, take the setting's value. A timer that is already armed keeps its saved deadline.
  • On quiet expiry: fresh gate check. Still-pending gates are reported as a blocker, then the watch is removed. There are no automatic repeated paid waits and no timeout approval, so approval and merge requirements are unchanged.
  • Stale reviews: the gate's stale-review age is a separate check, read from the same current saved setting. An eyes reaction can no longer keep an old Codex review request pending forever.
  • Provider shells and terminals: both read the owning environment's custom server settings path.

Provenance

The watcher core is independently contributed in upstream PR #26839, ported through functional head 9facad75e4e8c5fcd6c2dc9c9b4622d29e263068. This copy keeps LastCode's pause and reaction behavior.

Closes #538.

Validation

Current head: 19a90a829892b322b09d9ab0e457042c312d30c1.

  • Affected checks, identical source tree: vp run check:changed origin/lastcode/main passed — 1,130 tests across 22 files, 32 package typechecks, format, lint, knip and GraphQL. Runtime coverage includes restart/replay, unchanged fingerprints, one-shot delivery, explicit-disable races, custom defaults and pause/resume.
  • UI: React compiler check passed. Real isolated browser run: default 45, save 60, reload 60, reset 45.
  • Local reviews: GPT-6 Astra High and Claude Opus 5.5 High final functional reviews were both clean at 55695847ae. Two TypeScript include-list fixes followed. The current commit consolidates carry ownership; its file tree is identical to fully validated a3d84d2252c0ad25fb8bd8444677e29d3efd03d5. GPT-6 Astra High and Claude Opus 5.5 High metadata rechecks are clean at the current head.
  • Carry reconstruction: exact same-base compilation passed at the current head after moving this coupled feature to Incubator, after its PR-gate and guidance prerequisites. The gate scripts first appear in Build & CI, and their current guidance finishes landing in Incubator; Tooling runs too early. The change is to source history only.
  • Quick CI: earlier failures were missing TypeScript include entries, now fixed. This is not a fresh whole-Quick-CI receipt; GitHub CI remains required before merge.
  • MCP context budget: metadata grew 65,513 → 66,033 bytes (+520), measured. The intentional-growth label is applied. Other context sizes are unchanged.
  • Model-behavior eval: the paid eval did not run because API credentials were unavailable. Offline request construction and grader tests passed.

Screenshots

Before After
Before After

Implemented with GPT-6.1 Sol in the Codex harness; reviewed with GPT-6 Astra High and Claude Opus 5.5 High.

@lastobelus lastobelus added the agent-context-increase Intentional agent context growth approved by a maintainer label Oct 29, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T07:59:26.750010Z 19a90a8 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lastobelus lastobelus changed the title fix(lastcode): surface stalled pull request waits fix(lastcode): end PR watch waits at a configurable quiet deadline Oct 29, 2026
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: a3d84d2252

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Persist one bounded quiet wait, expose the environment default in LastCode settings, and surface stalled gates without weakening review or merge requirements.

Upstream provenance: https://redirect.github.com/pingdotgg/t3code/pull/26839 at 9facad75e4e8c5fcd6c2dc9c9b4622d29e263068.

Carry-Group: incubator
Carry-Fix: #538
Carry-Upstream: https://redirect.github.com/pingdotgg/t3code/pull/26839 head 9facad75e4e8c5fcd6c2dc9c9b4622d29e263068
Carry-Observation: The gate, guidance and timeout setting use current Incubator interfaces and must replay together after those prerequisites. Earlier groups do not yet contain the PR-gate implementation.
@lastobelus
lastobelus force-pushed the lastcode/pr-watch-stale-review branch from a3d84d2 to 19a90a8 Compare October 29, 2026 07:50
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 19a90a8298

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lastobelus
lastobelus merged commit 7588fe1 into lastcode/main Oct 29, 2026
27 of 56 checks passed
@lastobelus
lastobelus deleted the lastcode/pr-watch-stale-review branch October 29, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-context-increase Intentional agent context growth approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PR watches can wait indefinitely for reviews that never finish

1 participant