Repository navigation
fix: resolve Claude Code project folders whose names contain dots or underscores - #367
Closed
Mark Warren (ZeSnarf) wants to merge 1 commit into
Closed
Mark Warren (ZeSnarf) wants to merge 1 commit into
Mark Warren (ZeSnarf) wants to merge 1 commit into
Conversation
…underscores
Claude Code encodes a working folder as its project directory name by
turning every character other than an ASCII letter or digit into '-'.
encodeComponentForMatch only turned whitespace into '-', so a folder such
as '.agents' or 'my_app' never matched its directory entry and the
workspace name fell back to the encoded tail ('-agents'), splitting one
workspace into two in the dashboard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
github-actions
Bot
requested review from
TamasBoncz,
Aymen (aymenfurter) and
Sanjay Singh (san360)
November 3, 2026 20:47
Author
|
Closing as a duplicate of #270, which makes the same change and was opened first. Sorry for the noise. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Claude Code names a project folder by turning every character of the working folder's path that isn't an ASCII letter or digit into
-. For example,/work/.agentsbecomes-work--agentsand/work/my_appbecomes-work-my-app.projectNameFromEncodedmatches directory entries against that name, butencodeComponentForMatchonly turned whitespace into-. A folder with a dot or an underscore in its name therefore never matched. The workspace name fell back to the encoded tail (-agents), so one folder showed up as two workspaces (-agentsfrom Claude Code,.agentsfrom Codex and Copilot) on the dashboard and on Coding Moments.This PR:
encodeComponentForMatchencode every character other than a letter or digit, as Claude Code does;CACHE_VERSIONso cached workspace names are parsed again.We found this by running the extension on real Claude Code logs, where a
.agentsworking folder was split into two workspaces.Related Issues
None filed.
Checklist
npm run checkpasses (typecheck + lint + spellcheck + knip + tests)parser-claude.test.ts: folders named.agentsandmy_app.v2)