opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: add optional cwd path argument to serve command

Open pschiel opened this issue 1 week ago • 2 comments

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

pschiel avatar Jan 01 '26 23:01 pschiel