Feature hasn't been suggested before.
Describe the enhancement you want to request
The attach command supports --dir to specify the working directory, but run doesn't have this option when using --attach.
It would be useful to have --dir on run for both:
- Local runs: change to that directory before starting
- Remote runs with
--attach: pass the directory to the remote server
Example usage:
opencode run --dir /path/to/project "do something"
opencode run --attach http://localhost:4096 --dir /path/to/project "do something"
I already made the PR before realising I needed the issue, #12443