File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " agentdeck" ,
3- "version" : " 4.8.2 " ,
3+ "version" : " 4.8.3 " ,
44 "description" : " Electron desktop app for managing WSL agent sessions" ,
55 "main" : " ./out/main/index.js" ,
66 "license" : " Elastic-2.0" ,
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ describe('ClaudeAdapter', () => {
6666 expect ( adapter . agent ) . toBe ( 'claude-code' )
6767 } )
6868
69- it ( 'getLogDirs returns project-specific sessions dir only' , ( ) => {
69+ it ( 'getLogDirs returns project-specific dir only' , ( ) => {
7070 const dirs = adapter . getLogDirs ( '/home/rooty/my-project' )
7171 expect ( dirs ) . toHaveLength ( 1 )
7272 } )
@@ -77,7 +77,7 @@ describe('ClaudeAdapter', () => {
7777 if ( ! first ) throw new Error ( 'Expected first dir' )
7878 // slashes replaced by dashes
7979 expect ( first ) . toContain ( '-home-rooty-my-project' )
80- expect ( first ) . toContain ( '/sessions/' )
80+ expect ( first ) . toMatch ( / ~ \/ \. c l a u d e \/ p r o j e c t s \/ - h o m e - r o o t y - m y - p r o j e c t \/ $ / )
8181 } )
8282
8383 it ( 'getFilePattern returns "*.jsonl"' , ( ) => {
Original file line number Diff line number Diff line change @@ -111,11 +111,11 @@ export function createClaudeAdapter(): LogAdapter {
111111 getLogDirs ( projectPath : string ) : string [ ] {
112112 // Replace every `/` with `-` to match Claude's path-slug convention.
113113 const pathSlug = projectPath . replace ( / \/ / g, '-' )
114- // Only search the project-specific sessions directory.
115- // The old fallback `~/.claude/projects/` recursively scanned ALL projects,
116- // returning hundreds of candidates and causing discovery timeouts with
117- // multiple concurrent sessions (each candidate requires a `wsl.exe head` call) .
118- return [ `~/.claude/projects/${ pathSlug } /sessions/ ` ]
114+ // JSONL files live directly in the project slug directory (no sessions/ subdir) .
115+ // Only search the project-specific directory — the old fallback
116+ // `~/.claude/projects/` recursively scanned ALL projects, returning hundreds
117+ // of candidates and causing discovery timeouts with multiple concurrent sessions .
118+ return [ `~/.claude/projects/${ pathSlug } /` ]
119119 } ,
120120
121121 getFilePattern ( ) : string {
You can’t perform that action at this time.
0 commit comments