Repository navigation
Replies: 2 comments
|
Thanks for the clear write-up. Triage: this is a valid enhancement, not a bug. T3 still uses one relocatable home ( Not a duplicate of #748 / #826. Those shipped the configurable single root. They did not split XDG categories. Not in scope for #9681. That PR is per-project worktree location only. Useful if you want worktrees off the default tree; it does not honor XDG for the rest of the home, and this issue should not ride on that PR. Prior implementation: #4419 (superseded) and #4437 (full five-root layout) were closed. #4437 was closed as an unsolicited cross-system architecture change that exceeds contribution policy. A correct XDG default is a storage-contract change (server, desktop, CLI, WSL/systemd, review/worktree path guards, docs) plus a safe policy for existing Workaround today: set Next: leave open for a maintainer storage-layout decision (classification + new-vs-legacy policy). Please do not open another large XDG PR unless that design is accepted. Per |
|
@juliusmarminge You noted this is waiting on a maintainer storage-layout decision (classification + new-vs-legacy policy). I wrote up a classification in #19591 and staged it so the decision splits in two. Opt-in location overrides come first; they change no defaults, so they need no legacy policy. XDG defaults for new installs come later as their own decision. Would that sequencing work for you? |
Uh oh!
There was an error while loading. Please reload this page.
Problem
T3 Code currently keeps most persistent files under
~/.t3.T3CODE_HOME/--home-dirmakes that tree relocatable, but configuration, state, logs, worktrees, attachments, caches, etc. still share one root.#748 / #826 solved the configurable-base-directory problem, but not XDG Base Directory separation.
On Linux, it would be useful for T3 Code to honor the standard XDG locations when
T3CODE_HOMEis not explicitly set.Possible layout
The exact classification depends on the semantics of the existing files, but roughly:
with the standard fallbacks (
~/.config,~/.local/state,~/.local/share,~/.cache) when those variables are unset.T3CODE_HOMEcould remain as an explicit override/backwards-compatible way to keep everything under one root.Worktrees are a special case: for T3-managed worktrees,
$XDG_STATE_HOME/t3/worktreesseems like a reasonable default because they are persistent machine/project-specific application state rather than cache. However, they can contain user changes, so independently configurable placement is useful regardless of the default; #9681 is addressing that part.Related
Drafted with GPT-5.6 Sol via ChatGPT.
All reactions