Commit c00f3dc
committed
fix: add directory to plugin client for multi-project support
When OpenCode Server serves multiple projects, plugin's internal client
needs to specify the target directory. Without this, API calls from
plugins (e.g., delegate_task calling session.get) would fallback to
process.cwd(), causing NotFoundError when accessing sessions from
different projects.
This fix ensures each Instance's plugin client includes the correct
directory parameter, enabling proper cross-project session access in
multi-project environments like oh-my-opencodeui.1 parent 0b91e90 commit c00f3dc
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments