Skip to content

Fix inconsistent Path.cwd() fallbacks in directory browser callbacks Four callback handlers (CB_DIR_SELECT, CB_DIR_UP, CB_DIR_PAGE, CB_DIR_CONFIRM) and build_directory_browser's invalid-path fallback used raw Path.cwd() instead of config.browse_root. This meant users could escape the configured browse root if user_data was lost or the path became invalid during navigation. https://claude.ai/code/session_01Vn1pxPc8KahAYpofYGhLjY#2

Merged
JanusMarko merged 1 commit intomainfrom
claude/add-browse-root-config-56kvZ
Feb 28, 2026

Conversation

@JanusMarko
Copy link
Copy Markdown
Owner

No description provided.

Four callback handlers (CB_DIR_SELECT, CB_DIR_UP, CB_DIR_PAGE,
CB_DIR_CONFIRM) and build_directory_browser's invalid-path fallback
used raw Path.cwd() instead of config.browse_root. This meant users
could escape the configured browse root if user_data was lost or the
path became invalid during navigation.

https://claude.ai/code/session_01Vn1pxPc8KahAYpofYGhLjY
@JanusMarko JanusMarko merged commit f2f765e into main Feb 28, 2026
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.

2 participants