[PR #6605] feat: add optional cwd path argument to serve command #11998

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

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

State: closed
Merged: No


Problem:

  • for debugging, bun needs to start in the development build directory
  • makes it currently impossible to debug different scenarios/projects

This patch adds positional argument for cwd folder opencode serve [cwd]

Usage:

bun run --cwd ${OPENCODE_DEV_PATH} --inspect-wait=ws://localhost:6499/ ./src/index.ts \
  serve --port 4096 /my/project/path
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6605 **State:** closed **Merged:** No --- Problem: - for debugging, bun needs to start in the development build directory - makes it currently impossible to debug different scenarios/projects This patch adds positional argument for cwd folder `opencode serve [cwd]` Usage: ```bash bun run --cwd ${OPENCODE_DEV_PATH} --inspect-wait=ws://localhost:6499/ ./src/index.ts \ serve --port 4096 /my/project/path ```
yindo added the pull-request label 2026-02-16 18:16:56 -05:00
yindo closed this issue 2026-02-16 18:16:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11998