Skip to content

Sessions fails when installed in a directory path with a space #82

@ck37

Description

@ck37

cc-sessions Version

0.3.6

Installation Method

pip (Python)

Operating System

macOS

Shell/Terminal

Zsh

IDE/Environment

Other

Bug Description

I installed cc-sessions into a project. When I then close out of CC and start a new session, I don't see the startup message. I typed the prompt: "is claude code sessions installed?" and it fails with an error message (included below per issue template).

The actual path is "/Users/x/First-Word Another Word/projects/blah/" -> i.e. something is failing to either escape the space in the directory name or put the path in quotes.

Steps to Reproduce

  1. Install cc-sessions in a directory where a parent directory has a space in the name.
  2. Run claude
  3. Ask if cc sessions is installed

Expected Behavior

The parent directory with a space in the name needs to be either escaped or enclosed in quotes.

Error Messages

⏺ UserPromptSubmit operation blocked by hook:
  [python $CLAUDE_PROJECT_DIR/sessions/hooks/user_messages.py]: python: can't
  open file '/Users/x/First-Word': [Errno 2] No such file or directory

Additional Context

I'm running CC and cc-sessions via a ZSH terminal running in Zed. I installed cc-sessions using the proposed pipx syntax and the suggested pip version check command didn't work, so I looked at the session-state.json file instead to determine the cc-sessions version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions