Buddi icon indicating copy to clipboard operation
Buddi copied to clipboard

Chat history is empty when the project path contains spaces or non-ASCII characters

Open winstonskold-ship-it opened this issue 1 month ago • 0 comments

Bug: Buddi only shows tool names (e.g. "Bash") in the chat view, and the session title falls back to the folder name, for projects whose path contains spaces or characters like å/ä/ö (e.g. ~/Library/Application Support/..., which is where Claude Desktop sessions live).

Cause: ConversationParser.sessionFilePath builds the project folder name with only / and . replaced by -. Claude Code replaces every non-alphanumeric character with -, so Application Support becomes Application-Support on disk and the .jsonl file is never found. The same logic appears in AgentFileWatcher.swift:45, JSONLInterruptWatcher.swift:44 and ConversationParser.swift:77, 900, 992.

Suggested fix: use one shared helper, e.g. cwd.replacingOccurrences(of: "[^a-zA-Z0-9]", with: "-", options: .regularExpression).

Buddi 0.1.6, macOS 26.7.1.

winstonskold-ship-it avatar Oct 20 '26 10:10 winstonskold-ship-it