Repository navigation
Commit 70e9c5f
fix(acp): list sessions across projects
Use the global session listing endpoint for ACP session discovery so clients like Zed can import OpenCode history across projects instead of only the current project.
ACP session/list defines cwd as an optional filter: when clients omit cwd, they are asking for the first page of sessions known to the agent, not sessions scoped to the ACP process working directory. The previous implementation delegated to the legacy project-scoped /session endpoint, which made registry-launched ACP processes appear to have stale or empty history. Delegate to the global /experimental/session endpoint instead and keep applying cwd only when the client supplies it.
Closes anomalyco#33036
Closes anomalyco#18575
Closes anomalyco#16137
Co-authored-by: opencode <[email protected]>1 parent dd8ab39 commit 70e9c5f
2 files changed
Lines changed: 40 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
216 | 224 | | |
217 | 225 | | |
218 | 226 | | |
| |||
244 | 252 | | |
245 | 253 | | |
246 | 254 | | |
247 | | - | |
248 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
249 | 258 | | |
250 | | - | |
| 259 | + | |
| 260 | + | |
251 | 261 | | |
252 | 262 | | |
253 | 263 | | |
| |||
295 | 305 | | |
296 | 306 | | |
297 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
298 | 316 | | |
299 | 317 | | |
300 | 318 | | |
| |||
330 | 348 | | |
331 | 349 | | |
332 | 350 | | |
| 351 | + | |
| 352 | + | |
333 | 353 | | |
334 | 354 | | |
335 | 355 | | |
| |||
418 | 438 | | |
419 | 439 | | |
420 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
421 | 450 | | |
422 | 451 | | |
423 | 452 | | |
| |||
1318 | 1347 | | |
1319 | 1348 | | |
1320 | 1349 | | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
1321 | 1355 | | |
1322 | 1356 | | |
1323 | 1357 | | |
| |||
0 commit comments