Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- In a Claude thread, have the agent open a PR in a repo where a teammate (not the T3 user) must approve before merging.
- Request review from the teammate. Wait for CI to go green.
- Tell the agent "babysit the PR, land it when approved". It calls
watch_pull_request(watching: true) and ends its turn. - Look at the sidebar.
Expected behavior
The thread stays in Working until the approval (or a comment, failure or conflict) wakes the agent, and then the agent merges. That's how it worked between #16204 and #33214. The user has handed the whole job to the agent and isn't needed again unless something goes wrong.
Actual behavior
The thread goes straight to the inbox, as if it needed the user, while it waits for someone else's review. The PR watch is still active (pendingBackgroundTasks lists pull-request-watch:…, and the composer shows "Watching pull request #N"), so the agent will still act on the approval. Only the sidebar placement is wrong.
#33214 lists this as a known gap ("A merge waiting on someone's approval also sits in the inbox until that approval arrives"). On a team with required reviews, that gap applies to nearly every PR. #33214 assumes that once checks finish, "a person moves the PR next", and that the person is the T3 user. That holds when you review your own agent's PRs. It doesn't hold when a teammate approves and the agent merges. Then the inbox fills with threads that need nothing from the user, and the inbox stops meaning "needs me".
Two ways to keep #33214's fix (no threads stuck forever after "ready for your review") and still cover this:
- Automatic: after checks finish, keep holding while the PR has pending review requests for someone other than the authenticated user. If the reviewer is the user, release to the inbox as fix(server): a watched PR stops holding its thread once its checks finish #33214 does now. This applies fix(server): a watched PR stops holding its thread once its checks finish #33214's own reasoning about who moves next.
- Explicit: let
watch_pull_requesttake an intent, for exampleuntil: "approved"or"merged". With it, the watch holds Working until that event. Agents told to "land it when approved" would pass it, and plain watches keep the new behavior.
Impact
Major degradation or frequent failure
Version or commit
0.1.10-nightly.20261113.4630
Environment
macOS desktop app, Claude provider (Opus 5.5), GitHub
Workaround
None found. The thread stays in the inbox until a review wakes the agent.
Activity
jawr commentedon Nov 14, 2026
Same here on
0.1.10-nightly.20261113.4656(desktop, Claude provider, thread on a linked Linux environment). Every PR in our repo needs a teammate's approval, so after #33214 nearly every watched thread drops into the inbox the moment checks go green, while the agent is still waiting for that approval and will merge once it arrives.Reproduced from one thread's history:
watch_pull_requestreturnedwatching: true;pendingBackgroundTasksstill listspull-request-watch:github.com/<repo>#<n>(kindmonitor).Suggested approach: the explicit option, off by default.
watch_pull_requesttakes an optionaluntilApproved. Without it, nothing changes from #33214. With it, once checks finish the watch keeps holding the thread while the PR is open, not a draft, and itsreviewDecisionisreview-required. It lets go when the PR is approved, gets changes requested, becomes a draft, or merges.Making it opt-in keeps #34770 fixed: an agent handing a PR back for the user's own review still sends the thread to the inbox. Only the agent knows whether the next step is a teammate's, and our monitor skill would pass
untilApproved: trueexactly when the PR is only waiting on others.How it's wired:
ThreadPullRequestWatchgainsuntilApproved?: true.thread.pull-request.watchtakesuntilApproved?: boolean, and the MCP tool passes it throughPullRequestWatchService. Watching again without the parameter keeps the current value.nextand an in-flightpull-request-watch.synckeep the flag, so a read that started before the agent set it doesn't drop it.pullRequestWatchTasks, from the flag plus the snapshot's existingisDraftandreviewDecision. No new host reads.agentContextBudget.jsonis updated.Tests:
orchestrationV2PendingBackgroundWork.test.ts: holds with the flag whilereview-required; releases without it, and when approved, changes-requested,nullor draft.runtimeLayer.test.ts: the flag is set by the command, survives an in-flight read, a re-watch without the parameter and a projection rebuild, and clears withfalse. This test fails without theOrchestrator.tschange.vp run check:changedpasses.mcp-tool-useeval case for the new parameter, and a dev-server run against a real PR.Since this adds a tool option, I'd rather ask before opening a PR: would you take it? If so I'll add the eval case and open it against
main.Diff (13 files, +218 −53, mostly reindentation in
Orchestrator.ts)bartlomiejbloniarz commentedon Nov 14, 2026
Same here on
0.1.10-nightly.20261114.4695(macOS desktop, Claude provider).I hand most PRs to agents to babysit. Since #33214, each of those threads drops into the inbox as soon as CI goes green, while the agent is still watching and the next move belongs to the reviewer. The composer still shows "Watching pull request #N" and
pendingBackgroundTasksstill lists thepull-request-watch:task. With several of these at once, the inbox fills with threads that don't need me.I'd prefer the automatic option: keep holding the thread while the PR has review requests pending for someone other than me. It needs nothing from the agent, and it keeps #33214's fix for "ready for your review" hand-offs, where the reviewer is me.
A separate section for these threads would also help, like the Watching PRs section in #27341 or the broader Waiting section suggested there. Threads waiting on a reviewer or CI wouldn't sit in Working next to running agents, and wouldn't fill the inbox either.
jawr commentedon Nov 15, 2026
Having a dedicated section to split it out of working would be even better!
CubityFirst commentedon Nov 16, 2026
Same here on
0.1.10-nightly.20261115.4749(Windows desktop app, Claude provider, Opus 5.5).The agent opened a fix PR on an upstream open-source repo (ShareX/ShareX#9192) and was asked to babysit it. All 23 checks passed on the head, and the stored watch state shows
checksPending: false,passed: true. The thread dropped from Working to the inbox while the watch stayed on (watching: true;pendingBackgroundTasksstill listspull-request-watch:github.com/sharex/sharex#9192, kindmonitor, with noawaitedflag).The next move belongs to an outside maintainer, not to me. Here the wait for review can last days, so the thread sits in the inbox the whole time with nothing for me to do. I'd prefer the automatic option (keep holding while review is pending from someone other than the authenticated user), since it covers both teammate and upstream maintainer review without the agent having to pass an intent.
Triaged with Claude Opus 5.5 in T3 Code.
christo-ivanov commentedon Nov 16, 2026
Same on
0.1.10-nightly.20261116.4774(Linux server, macOS desktop client, Claude provider, Opus 5.5). This case is on GitLab, and the agent is the reviewer, not the author, so the gap #33214 leaves is wider than approvals:watch_pull_request(watching: true) and ended its turn, waiting for the MR author to push a fix.checksPending: false(passed: false,failedChecks: []). SopullRequestWatchTasksdroppedawaited, and the thread left Working almost immediately.pendingBackgroundTasksstill listspull-request-watch:gitlab.com/<repo>#<n>(kindmonitor), the composer shows "Running · Watching pull request #N", and the watch kept syncing after a server restart. Only the sidebar placement is wrong."Once every check finished, a person moves the PR next" fails twice here: there were never any checks, and the person who moves next is the MR author, not the T3 user. An opt-in hold like the one proposed above would cover this only if it isn't limited to approvals. A review babysit waits on the author's next push or reply, so something like "hold until the next wake" would cover more cases than
untilApprovedalone.Diagnosed by Claude Code (Opus 5.5) via T3 Code triage.
jacksonloughmiller-netizen commentedon Nov 17, 2026
Same here on v0.1.10 (desktop app, macOS arm64, local server 0.1.10). I'm adding a case that makes this worse: Codex threads.
On a Codex thread, the PR watch was the only thing that could keep the thread in Working. In the v0.1.10 source, only
ClaudeAdapterV2.tsimplementsawaitBackgroundTasks.CodexAdapterV2.tsdoes not, andThreadManagementService.tsreturnsreason: "unsupported"for it. So a Codex babysitter thread can't uset3_background_waitas a fallback. Since #33214 (orchestrationV2PendingBackgroundWork.ts:330,checksPending === false ? {} : { awaited: true }), a Codex thread that watches a PR until it merges leaves Working as soon as CI goes green. It then sits in the inbox for the days the PR waits on a teammate's review. The only workaround I've found is to spawn a Claude child whose job is a dummy awaited background command, renewed every 2 hours.+1 to an explicit
until: "approved" | "merged"option onwatch_pull_request. Whatever ships, please make it work for Codex threads, not only Claude ones. I've filed the provider-independent part separately: #38330.alejandroiglesias commentedon Nov 17, 2026
I hit this when upgrading to 0.1.10 stable. Three existing PR babysits moved from Working → Waiting to Done right after the update, although their PR watches were still running. In one thread, calling
watch_pull_requestagain reportedwasWatching: trueand left the thread in Done.I reproduced the upgrade behavior in isolation with code from the release tags and a saved watch whose CI had already finished. The same watch held its thread in 0.1.8 and 0.1.9. In 0.1.10 it still held before the first PR read. After a read with no new PR events, the evaluator recorded
checksPending: false. The monitor stayed active but lostawaited, so the thread left Working. A control with pending CI stayed in Working. This reproduces the transition without a database migration. I haven't verified the CI state of all three original PRs at the time of the update.I'd like T3 to distinguish an ongoing babysit from a handoff for my review. When the agent is still responsible for the PR, the thread should stay in Working → Waiting while it waits for CI, a review, or a reply. When the agent hands the PR back for my review or needs my input, it should return to the inbox. An explicit babysit mode on the watch would also cover waits beyond required approvals.
jndegens commentedon Nov 17, 2026
Another case, with a merge queue: the agent queued the PR (
gh pr merge --auto), calledwatch_pull_requestand ended its turn with post-merge work still pending (live check, release log). The thread went to the inbox right away, though the user had nothing to do. The PR then merged from the queue; no wake arrived (#25160), the watch retired silently (wasWatching: falseafterwards), and the thread sat in the inbox until the user asked why. So both gaps stack: the thread leaves Working while the agent is still the one to move, and the event that would let it finish never comes.fix(server): a PR watch the agent owns keeps its thread working until…