Skip to content

fix: resolve STATUS.md path from repo root in workspace mode dashboard - #40

Merged
HenryLach merged 1 commit into
mainfrom
fix/dashboard-status-md-workspace-path
Mar 16, 2026
Merged

fix: resolve STATUS.md path from repo root in workspace mode dashboard#40
HenryLach merged 1 commit into
mainfrom
fix/dashboard-status-md-workspace-path

Conversation

@HenryLach

Copy link
Copy Markdown
Owner

The dashboard's eye icon to view STATUS.md failed in workspace mode because resolveTaskFolder() computed paths relative to the workspace root, but worktrees are inside specific repos.

Fix

Enhanced path resolution with fallback chain: try workspace-relative path, then infer repo root from worktree directory structure and compute repo-relative path.

Testing

398/398 tests passing.

In workspace mode, resolveTaskFolder() computed the relative path from the
workspace root, but the worktree is inside a specific repo. This produced
double-prefixed paths (e.g., platform-docs/.worktrees/wt-1/platform-docs/...).

Now tries the workspace-relative path first, then falls back to inferring
the repo root from the worktree path structure (.worktrees/ parent = repo root)
and computing a repo-relative path that resolves correctly in the worktree.
@HenryLach
HenryLach merged commit e1300a0 into main Mar 16, 2026
1 check passed
@HenryLach
HenryLach deleted the fix/dashboard-status-md-workspace-path branch March 16, 2026 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant