[Bug]: Mandatory PR watcher blocks custom VCS/CI workflows; allow custom providers or full opt-out #22369
Summary#
T3's mandatory PR-watching instructions break development workflows using custom VCS/PR and CI systems. When the built-in watcher cannot serve that workflow, the agent still treats T3's instructions as a prohibition on alternative CI monitoring. This turns an unsupported integration into a blocker for otherwise possible work.
Area#
Not sure — host-injected agent instructions / PR and CI monitoring.
Steps to reproduce#
This describes the reported workflow; it is not a newly executed minimal reproduction.
- Use T3 with a custom VCS/PR and CI workflow that the built-in PR watcher cannot handle.
- Ask the agent to monitor CI status and continue development once checks finish.
- Ask it to use the workflow's own CLI/API or another waiting mechanism.
- The agent refuses alternative monitoring because T3's host instructions require its watcher and prohibit polling or running another watcher.
Expected behavior#
The agent can complete user-authorized CI monitoring through tools appropriate to the project's VCS and CI system. An unsupported built-in integration should not prevent that.
Please provide either:
- An extension point for a custom VCS/PR/CI provider, including status monitoring and completion notifications.
- A setting to fully disable the built-in PR integration, including the injected instructions that mandate linking/watching PRs and prohibit alternative monitoring.
Disabling the integration must change the agent instructions as well as the UI/tools. Hiding controls while leaving the prohibition in place would not resolve the blocker.
At minimum, the watcher mandate should apply only when the watcher supports the actual provider and can monitor the requested PR. Tool availability alone is not sufficient.
Actual behavior#
Attempts to arrange CI monitoring repeatedly hit the host-level restriction. The agent explicitly says (translated into English):
"Ordinary waiting is currently prohibited by the T3 host instruction, which requires its watcher."
The relevant injected instruction requires watch_pull_request when available and tells the agent not to poll or run its own watcher. It does not provide an explicit fallback for custom or unsupported providers.
The resulting deadlock is: the required integration cannot handle the workflow, while the agent considers the usable alternatives forbidden.
Impact#
Blocks work completely for the affected workflow. The agent cannot carry the development loop through CI completion, and repeated attempts to establish monitoring are rejected on the same instruction-level grounds.
Workaround#
No reliable in-T3 workaround established. Asking the agent to use another monitoring mechanism still encounters the host instruction.
Broader issue: configurable host instructions#
This is not the first time T3's host-injected instructions have disrupted my development workflow. The PR watcher restriction is one example of a recurring problem: host-level workflow rules prevent the agent from following the development process I actually need.
I strongly want a supported way to disable or configure T3's injected workflow instructions, globally and/or per project. This should cover the instructions themselves, not just individual integrations or UI features. Users need control over which T3 workflow policies apply so that project-specific tooling and development processes remain usable.
Privacy#
This report intentionally contains no environment details, private repository or service names, internal URLs, local paths, session identifiers, or session logs.
tanstack-source added labelsbug
+1, with one more case where the injected PR instructions can't be followed.
Our repos live on a self-hosted Bitbucket Data Center instance whose hostname has no
bitbucketlabel. T3 doesn't recognise that host (see #26493 and discussion #30914), solink_pull_requestcan't link anything there:- with the PR URL:
This is not a recognised pull request URL. Pass repository and number instead. - with
repository+number:This thread's project is on a host with no known pull request URL shape. Pass url.
The host instructions still tell the agent to link every PR it creates "as your next call". So each PR ends with two failed tool calls and a note to the user, and linking can't succeed on this host at all.
Either of these would fix it:
- Skip the PR linking and watching instructions for a project whose host T3 can't browse. T3 already knows this case: sync skips such projects as
provider-unsupported(#26493). - Or add a setting, global or per project, that turns the built-in PR integration off, instructions included.
- with the PR URL:
Adding a case for the opt-out. I want my agents to use gh for all pull request work. I added a report to #41287 for 0.1.13: a Codex thread refused gh for branches it had pushed to five other repositories, even after I asked for gh.
For Claude sessions I found a user-level workaround. A
permissions.denyentry in~/.claude/settings.jsonfor eachpull_request_*tool and forci_logsandci_rerunhides those tools from the model, even under themcp__t3-code__*allow rule that T3 passes. The rule's condition, "When pull_request_* tools are listed", then no longer holds. I checked this on Claude Code 2.1.332, and the tools left a running T3 session as soon as the file changed.Codex has no clean equivalent. T3 sets its own
disabled_toolslist onmcp_servers.t3-codefor each Codex thread (CodexAdapterV2.ts). Codex replaces a list when it merges config layers (merge.rs), so T3's list replaces anydisabled_toolslist that the user sets for that server. Anenabled_toolslist is different: in my test on Codex 0.172.0, Codex kept it under an override shaped like T3's. But the user's config then needs a[mcp_servers.t3-code]entry, and Codex rejects that entry outside T3 unless it has a transport of its own ("invalid transport"). The list would also hide every tool that T3 adds later. The wrapper described above covers both providers, but its author had to update it after a T3 release.A setting that removes the
pull_request_*andci_*tools together with the sentence that tells agents not to use gh, per provider instance or globally, would cover both providers. I would like to keeplink_pull_request, so that PRs opened with gh can still be linked to their threads.
Sign in to join this conversation.
A workaround that I have been using: put a filtering wrapper between T3 and the real Claude/Codex provider executable.
The general setup is:
This lets my own workflow handle “wait for CI through the project's CLI/API, then run the next script / continue the task” without depending on T3's PR integration supporting that host.
For Codex, a relevant filtering point in current T3 source is
turn/start.additionalContext: T3 usest3_code_runtime(which contains the<pull_request_linking>policy),t3_code_orchestration_*, andt3_code_tools. These entries are not all equivalent; filter the unwanted policy rather than blindly deleting every developer message. Claude has a different injection path, so it needs its own handling.This is a workaround, not a stable integration contract. I had to update my wrappers after the latest T3 update. Instruction wording and delivery can change: #24850 rewrote the policy text, and #24737 changed how Codex mode instructions are supplied. Filters based on exact old sentences are fragile. Recheck what actually reaches the provider after upgrades, including resumed conversations where earlier instructions may remain in history.
A supported setting to disable/configure the injected workflow policies would still be preferable to maintaining these wrappers.