[PR #12443] feat(cli): add --dir option to run command #14217

Closed
opened 2026-02-16 18:19:01 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12443

State: closed
Merged: Yes


What does this PR do?

I use opencode with a tailscale setup, sometimes I just want my opencode to run a opencode run on my remote server to do some stuff, attach has a --dir flag to set the directory, but run didnt, added that so I i can spawn a remote session in correct dir with run

On a seprate note, the server doesn't verify directory exists when creating a session with a non existent directory

How did you verify your code works?

Manually running the command, with and without attach, found the bug with non existing dirs, but thats a seprate bug

Fixes #12444

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12443 **State:** closed **Merged:** Yes --- ### What does this PR do? I use opencode with a tailscale setup, sometimes I just want my opencode to run a `opencode run` on my remote server to do some stuff, attach has a `--dir` flag to set the directory, but `run` didnt, added that so I i can spawn a remote session in correct dir with run On a seprate note, the server doesn't verify directory exists when creating a session with a non existent directory ### How did you verify your code works? Manually running the command, with and without attach, found the bug with non existing dirs, but thats a seprate bug Fixes #12444
yindo added the pull-request label 2026-02-16 18:19:01 -05:00
yindo closed this issue 2026-02-16 18:19:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14217