Skip to content

Commit 0d4bc2e

Browse files
committed
release: v4.8.3 — fix cost badge with multiple tabs
Co-Authored-By: Rooty
1 parent a36e851 commit 0d4bc2e

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

src/main/log-adapters.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(/~\/\.claude\/projects\/-home-rooty-my-project\/$/)
8181
})
8282

8383
it('getFilePattern returns "*.jsonl"', () => {

src/main/log-adapters.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)