Skip to content

opencode -c in a new directory shows the wrong working directory #42221

Closed

Description

@shinelon

Description

Running opencode -c for the first time in a new directory (one with no prior sessions) displays a previous/old directory instead of the current one. The TUI resumes a session from a different directory.

Steps to reproduce

  1. Use opencode in directory A (creates sessions there)
  2. cd to a new directory B
  3. Run opencode -c
  4. The TUI shows directory A instead of B

Operating System

Windows 11

Terminal

Git Bash

Activity

  1. github-actions commented on Aug 13, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of an existing issue. Please check:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions