Skip to content

Commit a89d80c

Browse files
yugo-ibukiclaude
andcommitted
fix: encode dots in CWD path for JSONL session lookup
encodeCwd() only replaced `/` with `-`, but Claude Code also replaces `.` with `-` in project directory names (e.g. `github.com` → `github-com`). This caused findSessionJsonl() to fail, falling back to raw capture which lacks scrollback in FLICK (alternate screen) mode. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9adb8e0 commit a89d80c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/tmux.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const TOOL_ICONS: Record<string, string> = {
6666
}
6767

6868
function encodeCwd(cwd: string): string {
69-
return cwd.replace(/\//g, '-')
69+
return cwd.replace(/[/.]/g, '-')
7070
}
7171

7272
async function findSessionJsonl(target: string): Promise<string | null> {

0 commit comments

Comments
 (0)