Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: T3 prompts agents to link CLI issues by key when the project has no supported issue tracker binding #48643

Openawong87(GitHub profile, opens in a new tab) opened this issue 1 comment

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

  1. 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_read shows repositoryIdentity.provider: "unknown".)
  2. Start a T3 thread with Claude Code or Codex and T3 MCP enabled. T3 advertises link_issue and tells the agent: "If available, call link_issue for each issue you take on or file, even via CLI; skip issues you only read."
  3. From that thread, call list_issues with {}. To exercise the linking path, call link_issue with {"key":"EXAMPLE-1"} and omit projectId and url.

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, and ci_rerun use EnabledWhen(hiddenWithoutForge). T3 hides them when the cached PullRequestService.servesProject lookup for the thread returns false.
  • The issue toolkit has no corresponding annotation. When IssueService.projectScope finds no supported binding for the selected project, the MCP handler maps tracker-unsupported to IssueProjectNotFoundError.
  • The link_issue sentence in PULL_REQUEST_LINKING_INSTRUCTIONS is 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.

  1. tanstack-source added labelsbug

  2. ilude(GitHub profile, opens in a new tab)commented

    @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.

Sign in to join this conversation.