[Bug]: T3 prompts agents to link CLI issues by key when the project has no supported issue tracker binding #48643
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#
- Add a Git checkout whose only remote is a plain SSH Git server with no forge, and leave the project without a standalone issue tracker binding. (
t3_project_readshowsrepositoryIdentity.provider: "unknown".) - Start a T3 thread with Claude Code or Codex and T3 MCP enabled. T3 advertises
link_issueand tells the agent: "If available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read." - From that thread, call
list_issueswith{}. To exercise the linking path, calllink_issuewith{"key":"EXAMPLE-1"}and omitprojectIdandurl.
Expected behavior#
T3's guidance tells the agent to link by key only when it can identify a T3 project whose supported tracker serves that key. If the issue has only a CLI key and no such project, the agent can skip linking and continue the work.
Actual behavior#
T3 advertises link_issue and tells the agent to link issues it takes on or files, including via CLI. A key-only link_issue call in this thread fails with Project <id> was not found or has no issue tracker. Calling list_issues without a project ID returns the same error. Agents that follow the guidance then tell the user T3 could not show the issue beside the thread.
From reading main @ 1ed3a19:
pull_request_*,ci_logs, andci_rerunuseEnabledWhen(hiddenWithoutForge). T3 hides them when the cachedPullRequestService.servesProjectlookup for the thread returnsfalse.- The issue toolkit has no corresponding annotation. When
IssueService.projectScopefinds no supported binding for the selected project, the MCP handler mapstracker-unsupportedtoIssueProjectNotFoundError. - The
link_issuesentence inPULL_REQUEST_LINKING_INSTRUCTIONSis fixed text. Its wording does not depend on the thread's project or tracker.
A possible fix is to qualify the runtime instruction and the link_issue tool description. Use link_issue when you have a supported issue URL or a key and a T3 project whose tracker serves it. Pass projectId with a key when the tracker belongs to a different T3 project. If you only have an external CLI key and no matching T3 tracker, skip linking.
Impact#
Minor bug or occasional failure
Version or commit#
0.1.14-nightly.20261203.5664
Environment#
macOS, T3 Code desktop; Claude Code and Codex harnesses
Logs or stack traces#
list_issues {} -> Project <id> was not found or has no issue tracker.
Workaround#
In Claude Code, adding the mcp__t3-code__*_issue* tools to permissions.deny keeps them out of the session. I found no T3 environment or project setting that turns them or the runtime line off.
tanstack-source added labelsbug
Sign in to join this conversation.
@juliusmarminge T3 should not be injecting these prompts into peoples projects. See https://github.com/pingdotgg/t3code/blob/5dea97de40d63e89da137e3132775167d78557e4/packages/provider-core/src/server/runtimeInstructions.ts#L12-L16 That is T3's development workflow getting injected into every prompt I send on my projects and should be an opt-in option if included at all.
My pi instance keep trying to link t3 sessions to gitlab and github issues when I would prefer not to do that.