Before submitting#
Area#
apps/web
Steps to reproduce#
- Have a git repository at /path/to/repo (so /path/to/repo/.git exists).
- Configure a project/open a workspace whose cwd is a sub-package, e.g. /path/to/repo/apps/server.
- Start a thread, let the agent edit files.
- Open the diff / checkpoint panel.
Expected behavior#
Per-turn diffs should appear in the diff panel and checkpoints should be captured, the same way they do when the workspace is opened at the repo root. Running git status from that same cwd in a terminal works fine, so t3code should treat it as a git workspace too.
Actual behavior#
The diff panel stays empty and no checkpoints are recorded for the thread. Git-backed features silently no-op, with no UI hint that the workspace was classified as non-git.
Impact#
Major degradation or frequent failure
Version or commit#
main @ 17b43960 and 0.0.22-nightly.20260501.170 (17b43960e863)
Environment#
macOS 15.7.3 (arm64), Node v22.22.2, Bun 1.3.13
Logs or stack traces#
Screenshots, recordings, or supporting files#
No response
Workaround#
No response
Additional reproduction with current T3 Code (Alpha) 0.0.35 on 2026-08-27, using Windows 11 + WSL2 Ubuntu 24.04.4 LTS.
The T3 project is configured as a nested workspace:
/.git /frontend <-- this is where I have the T3 Project opened (and I need it here; I need the codex agent to start out directly inside /frontend/)
From the exact project cwd, Git works and reports the expected changes:
git rev-parse --is-inside-work-tree -> true git rev-parse --show-toplevel -> git status --porcelain=2 --branch -> 4 modified tracked files + 1 untracked directory git diff --patch --no-color --no-ext-diff --no-textconv --minimal HEAD -> non-empty patch
However, opening the right-hand Diff panel for the in-place/local checkout and selecting Working tree shows:
No patch available for this selection.
The captured WSL server trace shows ws.rpc.review.getDiffPreview and ReviewService.getDiffPreview completing successfully, but no GitVcsDriver.getReviewDiffPreview.dirtyTracked span for that request. The UI therefore receives a successful empty result rather than a useful error or the patch Git can produce from the same cwd.
I also checked current main at a6797b3. The legacy apps/server/src/git/Utils.ts helper still defines isGitRepository(cwd) as existsSync(join(cwd, ".git")), and CheckpointReactor still calls it. The proposed nested-repository fix in #2443 was closed unmerged. The newer Git VCS detector uses git rev-parse, so repository/status detection can succeed while checkpoint handling, and in this reproduction the review panel, still fail for a nested project.
The legacy
isGitRepository()check directly explains the missing checkpoints. The Working-tree review failure appears to be a separate nested/WSL VCS-detection failure, sinceReviewServiceuses the newerrev-parse-basedregistry rather than that legacy helper.This may overlap #5616 and #4022, especially for the WSL/server-root aspect, but it is a current 0.0.35 reproduction of the nested-workspace case in this issue. Please consider linking and triaging these reports together.
This issue has been investigated and composed by AI, and manually reviewed, revised and accepted by me.