You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0758efc
Browse filesBrowse the repository at this point in the historyBrowse files
feat(opencode-attach): inject --dir $PWD so attached session uses terminal CWD
Bare `opencode attach <url>` falls back to the server's process.cwd()
(the dir openweb was launched from), so every attached session lands in
the same project regardless of where the alias was invoked. Forward
`--dir "$PWD"` by default so the attached session uses the terminal's
CWD instead. Detects caller-supplied `--dir` (both `--dir <path>` and
`--dir=<path>` forms) and skips the default injection so the explicit
value wins.
Adds regression tests for default injection, CWD reflection, caller
override (both flag forms), and coexistence with other passthrough args.
Refs: anomalyco/opencode#14460
run "$SCRIPT""http://h:9" -- --session abc
0 commit comments