t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: "No Project" Projects Do Not Group

Open Lightning11wins opened this issue 1 month ago • 1 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open T3.code with multiple machines configured.
  2. Send chats with no project on multiple devices (might be optional).
  3. Go to settings and see that the "No project" project is listed multiple times, not grouped as one project on multiple machines.

Example: (Machine names redacted.)

Image

Expected behavior

These "No project" scratch projects should share one logical group key, not a key from their path which varies by machine. This lets them group together.

Actual behavior

See above

Impact

Minor bug or occasional failure

Version or commit

No response

Environment

No response

Logs or stack traces


Screenshots, recordings, or supporting files

No response

Workaround

No response

Lightning11wins avatar Oct 26 '26 16:10 Lightning11wins

Reproduced on the macOS desktop app 0.1.3-nightly.20261027.3754 with four connected environments (three macOS, one Linux/WSL). Each environment has its own scratch project (<T3 home>/scratch), so their workspace roots differ per machine.

What I found in the bundled client (logicalProject-*.js):

  • The grouping function only collapses scratch projects into the shared "\0no-project" key when the caller passes groupScratchProjects: true:
    if (options?.groupScratchProjects && project.isScratch) return NO_PROJECT_KEY;
    
    Otherwise the key falls back to environmentId:workspaceRoot, because scratch projects have no repositoryIdentity. That makes every machine's "No project" a separate group.
  • Only the sidebar calls the grouping with groupScratchProjects: true. The settings project list (settingsLayout-*.js) and the other grouping calls in _chat-*.js and main-*.js omit it. So those views show one "No project" per environment.

Possible fix: pass groupScratchProjects: true in the settings list too, or make it the default for views that list projects.

Note: #26000 asks for the opposite in the new-thread picker and the command palette: one "No project" row per environment, labeled with its machine, so the user can choose where to run. If that is the intended design for the picker, the fix for this issue should cover settings (and other listing views) only, not the picker.

Birzool avatar Oct 27 '26 16:10 Birzool