Skip to content

Goose CLI: Working dir not properly set for new sessions #2790

@sudo-tee

Description

@sudo-tee

Describe the bug

When running goose for the first time (new session) the working path is not set properly in the session file. Restoring the session will then echo a warning like so WARNING: The original working directory of this session was set to ...

After reviewing the session file the working_dir is set to /home/user instead of my current cwd.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any folder
  2. call goose to create a new session
  3. Quit goose
  4. Resume the session
  5. Observe the warning WARNING: The original working directory of this session was set to /home/francis. Your current directory is /home/francis/dots. Do you want to switch back to the original working directory?

Expected behavior
goose should set the correct working_dir the first time

Screenshots

Image

Image

Please provide following information:

  • OS & Arch: [Ubuntu WSL (Linux MTL-DB283 6.6.87.1-microsoft-standard-WSL2 SMP PREEMPT_DYNAMIC Mon Apr 21 17:08:54 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux)]
  • Interface: [CLI]
  • Version: [1.0.24-canary+2f8f8e5]
  • Extensions enabled: [developper, fetch, memory]
  • Provider & Model: [github_copilot]

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2Priority 2 - Medium

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions