Repository navigation
Keep the issue visible and say what to do next after an Interactive Issue run (#406) - #414
Merged
rochecompaan merged 8 commits intoNov 22, 2026
Conversation
…the-issue-visible-and-say-what-to-do-next-w
rochecompaan
marked this pull request as ready for review
November 22, 2026 19:21
rochecompaan
deleted the
agent/issue-406-keep-the-issue-visible-and-say-what-to-do-next-w
branch
November 22, 2026 19:31
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.
Closes #406
Keeps the issue visible in the console status bar for the whole Interactive Issue run and after it, and tells the maintainer what to do next.
Changes
src/kernel/review-wait.ts): the first message names the PR. It says that the maintainer merges it and then tells the agent to continue, what Patchmill does after the merge, how to ask for changes, and how to stop. A recheck says that the PR is not merged yet.src/kernel/run-once.ts,run-snapshot.ts): the ended snapshot recordscleanup: cleaned | kept | skipped.src/console/run-end.ts): maps a settled run to an end label, an end-of-run message (outcome, cleanup, next step) andstatus().ended.src/console/controller.ts):preparingat the start and keeps the end label until shutdown or an issue switch.announceRunEnd: false).src/console/tools.ts): covers who merges, PR changes during the wait (made by the agent, with safety limits), what to do after the run ends, and guarded fixes.patchmill_run_statusreports an ended run.docs/specsanddocs/plans. GLOSSARY: the Console agent entry is wider.Rulings (cost if wrong)
EndedRun.cleanupis set only for merged runs, and an absent value maps toskipped. Cost: none visible, because the message shows cleanup only for merged runs.notify(triggerTurn: false). Cost: none in production, because this path occurs only in tests.preparingis shown at the start and again on the firstderivingsnapshot. Cost: one redundantsetStatus.summaryOffromrun-end.tsinstead of a copy of the summary rule. Cost: none, because the behaviour is unchanged and the suite is green.Deferred Minor findings
run-end.tsderives the merged cleanup status twice (inendCaseand indescribeRunEnd). TheCasetype could carry it.facts.pullRequest.state === "merged"on the ended snapshot, which the console relies on to detect "merged". The current code sets it beforeended.Validation
npm test: passed, 1731 tests (the baseline was 1703).npm run lint(Prettier, ESLint, markdownlint): passed.npm run check:types: passed.Frontend review
Not applicable. There is no browser-visible change: the changes are the terminal status-bar text and the chat messages. The Web session behaviour is unchanged.
Human Reviewer Callouts (Non-Blocking)
ConsoleStatus.endedappears in thepatchmill_run_statusJSON, and there is a new optionalannounceRunEndoption oncreatePatchmillExtensionandConsoleController. Both are additive, and the default is unchanged (true).Patchmill run cost
Includes all retained local runs for this issue, including specification and planning PRs. Prompt tokens include uncached input, cache reads, and cache writes. Estimated cost uses Pi's recorded model pricing and includes parent and subagent sessions.