Skip to content
Source
Sign inSign up
pingdotgg/t3code

`#` pull request picker says "Pull requests are not available for this project" when the project root isn't a git repository #40397

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

What happened

In a multi-repository project, typing #25 in the composer opens the pull request picker with only this message:

Pull requests are not available for this project.

The project's folder is not a git repository itself. It contains two discovered tracked folders, and each one is a GitHub checkout. Both repositories have pull requests, but the picker doesn't list any of them.

Diagnosis

useComposerMenuItems (apps/web/src/components/chat/useComposerMenuItems.ts, around line 434) shows "Pull requests are not available for this project." whenever pullRequestRepository is null. ChatView (apps/web/src/components/ChatView.tsx, around lines 2067 and 3857) sets that value from sourceControlClients.repositorySelector(activeProject?.repositoryIdentity), which is only the project root's repository. When the root is a plain folder containing repositories (tracked_folders_json), there is no root identity. The prop is then null and the picker gives up before any lookup, even though every tracked folder has a resolvable repository.

The picker should search the repositories of the project's tracked folders, or let the user choose one. It should not treat the project as having no pull requests. The same code is unchanged on main (recent commits to useComposerMenuItems.ts: #40191, #39610).

Steps to reproduce

  1. Create a folder that is not a git repository, containing two git checkouts of different GitHub repositories, A and B.
  2. Add the folder as a project so that both checkouts are discovered as tracked folders (#39559).
  3. Open a thread in that project and type # or #<number> in the composer.
  4. The picker shows "Pull requests are not available for this project." and no results.

Version

0.1.12-nightly.20261121.5038 (Desktop and local server)

Environment

macOS 27.2 (darwin arm64), Node v24.22.1, T3 Code Desktop nightly against its local server

Evidence

Composer PR picker showing "Pull requests are not available for this project."

  • Project row: the workspace root is not a git repo (git rev-parse reports "not a git repository"). tracked_folders_json has two discovered: true folders, each with a github.com origin for a different repository.
  • The trace has no pull request lookup span for this attempt, which matches the client returning early.
  • #40350: review guides fail for pull requests in tracked repositories
  • #40318: repository rows in thread details can't open that repository's diff
  • #39559: multiple git repositories in one project directory

All three are the same family: features keyed only to the root repositoryIdentity and not to tracked folders.

Fix applied or workaround

Nothing was changed on the machine. Workaround: add one of the tracked repositories as its own project, or paste the full pull request URL.

Filed by

Claude Code (claude-opus-5-5) via t3 triage

  1. Guria(GitHub profile, opens in a new tab) added labelsvia-triage

  2. tanstack-source added labelsbug

  3. I am looking into this and will open a PR with a fix (and a regression test) shortly.

Sign in to join this conversation.