Skip to content

Conversation

@0xajka
Copy link
Contributor

@0xajka 0xajka commented Jan 7, 2026

Fix for #7229 : Project sidebar displays full paths instead of folder names on Windows

Problem:

On Windows, the sidebar showed full paths like C:\Users{name}...\project-name instead of just project-name
The tooltip on hover also displayed the full path
Root cause:

getFilename() utility only split by /, not handling Windows \ separator
Tooltip directly used worktree instead of extracting the folder name
Duplicate getFilename function in dialog-edit-project.tsx
Changes:

Updated getFilename() in packages/util/src/path.ts to split by both / and
Changed tooltip in packages/app/src/pages/layout.tsx to show folder name
Removed duplicate function, using imported utility in packages/app/src/components/dialog-edit-project.tsx

Before:
sidebar

After:
sidebar2

0xajka and others added 14 commits January 2, 2026 10:51
- Add dialog to list and restore archived sessions
- Update server to support archived filter in session list
- Add archived parameter to SDK session.list method
- Add search functionality via List component's built-in search
- Simplify code by removing manual loading/empty state handling
- Enable keyboard navigation and fuzzy search for archived sessions
- Fix getFilename() to handle both / and \ for cross-platform support
- Change tooltip to show folder name instead of worktree path
- Remove duplicate getFilename function in dialog-edit-project
@0xajka 0xajka requested a review from adamdotdevin as a code owner January 7, 2026 16:39
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@0xajka 0xajka closed this Jan 7, 2026
@0xajka
Copy link
Contributor Author

0xajka commented Jan 7, 2026

Accidently included commits from an unmerged PR, resetting and will do a new PR

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