Skip to content

[FEATURE]: Add cwd option to createOpencodeServer #3321

@simonxabris

Description

@simonxabris

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I'm working on a vite plugin that starts an opencode server in the onStart hook. My problem is that I'm working in a monorepo and my app is at packages/app, the server will be spawned in packages/app and won't have access to other parts of the monorepo.

By adding a cwd property to the options of createOpencodeServer, I could spawn the opencode server process at the root of the monorepo and opencode would have access to the whole monorepo.

If it's approved I'm happy to create the PR, it's a fairly small change imo.

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions