mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-18 15:28:48 +03:00
fix(session-ui): drop the leading slash from project file labels (#55677)
This commit is contained in:
committed by
GitHub
Unverified
parent
74fb86137c
commit
187486ede3
@@ -241,7 +241,7 @@ function relativizeProjectPath(path: string, directory?: string) {
|
||||
|
||||
if (!path.startsWith(prefix)) return path
|
||||
|
||||
return path.slice(directory.length)
|
||||
return path.slice(prefix.length)
|
||||
}
|
||||
|
||||
function displayDirectory(path: string | undefined) {
|
||||
|
||||
Reference in New Issue
Block a user