[PR #6788] fix(cli): properly pass directory context in attach command #12106

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

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

State: closed
Merged: No


This PR fixes an issue where the attach command would not correctly pass the directory context to the server, resulting in the TUI session running in a default context instead of the specified or current directory.

Changes:

  • Update AttachCommand in attach.ts to resolve the directory (defaulting to process.cwd()) and pass it to tui.
  • Update tui signature in app.tsx to accept and propagate the directory parameter.
  • Update SDKProvider in sdk.tsx to initialize the client with the directory context.
  • Add build-fullstack.ts and install-systemd-service.sh scripts to support local fullstack development and deployment.
  • Add scalar documentation support.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6788 **State:** closed **Merged:** No --- This PR fixes an issue where the `attach` command would not correctly pass the directory context to the server, resulting in the TUI session running in a default context instead of the specified or current directory. **Changes:** - Update `AttachCommand` in `attach.ts` to resolve the directory (defaulting to `process.cwd()`) and pass it to `tui`. - Update `tui` signature in `app.tsx` to accept and propagate the `directory` parameter. - Update `SDKProvider` in `sdk.tsx` to initialize the client with the directory context. - Add `build-fullstack.ts` and `install-systemd-service.sh` scripts to support local fullstack development and deployment. - Add scalar documentation support.
yindo added the pull-request label 2026-02-16 18:17:02 -05:00
yindo closed this issue 2026-02-16 18:17:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12106