Skip to content

fix(file-picker): default the case picker to Codeman Cases, not Home - #383

Open
opticon454 wants to merge 1 commit into
Ark0N:masterfrom
opticon454:fix/case-picker-default-root
Open

fix(file-picker): default the case picker to Codeman Cases, not Home#383
opticon454 wants to merge 1 commit into
Ark0N:masterfrom
opticon454:fix/case-picker-default-root

Conversation

@opticon454

Copy link
Copy Markdown
Contributor

The "Link Existing" case picker opens with an empty path and no sessionId, so the browse endpoint's fallback root picked whichever root happened to be first in the list — which was always Home.

On the native default that's harmless (~/codeman-cases nests inside Home anyway), but a Docker deployment binds CODEMAN_APPDATA_PATH (Home) and CODEMAN_CASES_PATH at unrelated host paths, so the picker opened somewhere with no cases in sight. Worse: if CODEMAN_CASES_PATH is ever changed after cases already exist, the old cases directory lingers, still reachable, under Home — indistinguishable at a glance from the real one under the new Codeman Cases root.

Prefer the Codeman Cases root in the fallback chain, ahead of the generic roots[0].

Verified end-to-end against a live Docker deployment (before/after GET /api/filesystem/browse on a running container).

🤖 Generated with Claude Code

The "Link Existing" case picker opens with an empty path and no
sessionId, so the browse endpoint's fallback root picked whichever
root happened to be first in the list — which was always `Home`.
On the native default that's harmless (~/codeman-cases nests inside
Home anyway), but a Docker deployment binds CODEMAN_APPDATA_PATH
(Home) and CODEMAN_CASES_PATH at unrelated host paths, so the picker
opened somewhere with no cases in sight. Worse: if CODEMAN_CASES_PATH
is ever changed after cases already exist, the old cases directory
lingers, still reachable, under Home — indistinguishable at a glance
from the real one under the new Codeman Cases root.
Prefer the Codeman Cases root in the fallback chain, ahead of the
generic roots[0].
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R9ZSTEenc8soSu9bTi8Xru
Sign up for freeto 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

@opticon454