Skip to content

--dir ignored when attaching to specific session #33357

Closed as not planned
Closed as not planned

Description

@AlexeyDmitriev

Description

--dir ignored when attaching to specific session

Plugins

No response

OpenCode version

1.17.1

Steps to reproduce

opencode serve is running
opencode attach http://127.0.0.1:4096 --dir. creates session in expected directory
cd /somewhere_else
opencode attach http://127.0.0.1:4096 --dir . -s ses_XXX
my expectation: cwd of the session is somewhere_else (I believe that was true some versions ago)
reality: cwd is still at initial path.

Screenshot and/or share link

No response

Operating System

opencode is on ubuntu, I connect it by ssh from MacOS

Terminal

iterm2

Activity

  1. github-actions commented on Aug 22, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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