Commit 59eb7a2
fix(ui): scope session list by workspace folder (#386)
## Summary
- Scope session listing requests to the current workspace folder by
passing `directory: instance.folder` to OpenCode.
- Prevent non-git workspace sessions from leaking across projects when
OpenCode stores them under the shared `global` project.
- Include the scoped directory in session list logs for easier
debugging.
## Why
OpenCode groups non-git folders under the shared `global` project.
CodeNomad previously called `session.list()` without a directory filter,
so fresh non-git folders could show sessions from unrelated folders.
## Testing
- `npm ci`
- `npm run typecheck --workspace @codenomad/ui`
---------
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>1 parent ff4446a commit 59eb7a2
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
| |||
0 commit comments