mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-09-17 16:22:23 -07:00
6740e26261
Sessions in a linked worktree previously showed only the worktree's directory name, so the underlying repository was unidentifiable and the session looked like an unrelated project. The project segment now renders as "repo | worktree". Repo identity comes from git rev-parse --git-common-dir, so it is correct regardless of how the worktree directory was named. A leading repo prefix is stripped from the worktree name, and the name collapses to a bare marker when it merely restates the branch already on screen -- matched across / _ . - separators and type prefixes like feature/, and only when the branch is displayed. Gated behind the new items.worktree config flag (default on). Costs one extra timeout-bounded git call, skipped entirely outside git repos.
19 lines
336 B
JSON
19 lines
336 B
JSON
{
|
|
"autocompactBuffer": 33000,
|
|
"color": true,
|
|
"compact": false,
|
|
"items": {
|
|
"model": true,
|
|
"effort": true,
|
|
"project": true,
|
|
"worktree": true,
|
|
"branch": true,
|
|
"contextBar": true,
|
|
"contextTokens": true,
|
|
"planUsage": true,
|
|
"linesChanged": true,
|
|
"duration": true,
|
|
"sessionCost": true
|
|
}
|
|
}
|