feat(settings): support worktree layout mappings (#582) - #993
Conversation
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
Squashed branch changes: - fix(frontend): restore Korean localization - fix(settings): satisfy worktree layout gates (kenn-io#582) - feat(settings): support worktree layout mappings (kenn-io#582)
6d8026f to
646770c
Compare
roborev: Combined Review (
|
Layout rows persist an empty project, so the legacy project identity fallback's mapping.Project == project guard never matched repo_dot_worktrees mappings and sessions fell back to per-branch cwd identities, making the repo ambiguous. Match mappings layout-aware and anchor repo_dot_worktrees identities at the shared repo.worktrees directory.
roborev: Combined Review (
|
…c-include-cwd-prefixes * origin/main: feat(usage): show session context and token breakdown (kenn-io#982) (kenn-io#989) perf(push): ignore volatile stat fields for session candidacy (kenn-io#1014) feat(settings): support worktree layout mappings (kenn-io#582) (kenn-io#993) fix(config): apply port from config.toml to Config struct (kenn-io#1005) feat(parser): add Qoder session support (kenn-io#1013) fix(usage): wire agent exclusions through usage filters (kenn-io#972) fix(frontend): preserve calendar range picker selections (kenn-io#1016) feat: semantic search with run-grouped embeddings and conversation-unit citations (kenn-io#999) feat(parser): add ZCode SQLite sync support (kenn-io#1003) (kenn-io#1012) fix(sync): drop unchanged opencode-family container sessions (kenn-io#1015) fix(sync): skip local git discovery for foreign-machine sessions (kenn-io#1008) fix(activity): count subagent sessions in activity report cost (kenn-io#1006) feat(i18n): add Korean (ko) locale support (kenn-io#1002)
Worktree mappings currently preserve project names only when each repository has its own explicit path-prefix row. That works for a few deleted worktrees, but it does not scale for layouts such as
{repo}.worktrees/{branch}where the canonical project is already present in the path segment.This adds a layout mode to the existing worktree mapping row instead of creating a separate template system. Existing rows stay explicit and keep their current behavior. A new
{repo}.worktrees/{branch}layout lets one parent-directory mapping derive the project fromservice.worktreesstyle directories, while the existing longest-prefix precedence still lets a more specific explicit mapping override the generic layout.The resolver stays in the worktree mapping layer, and the settings API and UI only adapt that row shape. Scope is limited to the local worktree mapping path; parser behavior, backend sync semantics, and unrelated project inference remain unchanged.
Fixes #582