Files
oh-my-claudecode/scripts/lib/encode-project-path.mjs
우종호 fb032107cd fix(session-search): encode underscores in project dir name (current-scope returns 0 matches) (#3330)
* fix(session-search): encode underscores (and all non-alphanumerics) in project dir name

encodeProjectPath replaced only / \ . : , leaving underscores intact. Claude
Code names ~/.claude/projects/<dir> by replacing every non-alphanumeric char
with '-', so any project whose path contained '_' was looked up under a dir
that never existed -> session_search returned 0 matches in 'current' scope
(project: 'all' was unaffected). Widen the class to [^a-zA-Z0-9], a superset
that still covers the path-separator/dot/drive-colon cases. Mirror the change
in the hook-runtime .mjs copy and add regression tests.

Fixes #3329

* docs: clarify Claude Code path encoding scope

---------

Co-authored-by: Yeachan-Heo <hurrc04@gmail.com>
Co-authored-by: Codex Review <codex-review@example.com>
2026-06-24 10:34:30 +09:00

1.4 KiB