Repository navigation
Commit 8add170
committed
fix(acp): use global session list in unstable_listSessions
`unstable_listSessions` called `sdk.session.list()` which is scoped to
the current project via `Instance.project.id`. Running ACP from `/` or
any non-git directory resolves to project `"global"`, hiding sessions
from git projects.
Switch to `sdk.experimental.session.list()` which calls
`Session.listGlobal()` — a SQLite query across all projects. Also
delegate sorting, cursor, and limit to the server instead of doing it
in-memory.
Closes anomalyco#185751 parent 10a3d6c commit 8add170
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
675 | 677 | | |
676 | 678 | | |
677 | 679 | | |
678 | 680 | | |
| 681 | + | |
| 682 | + | |
679 | 683 | | |
680 | 684 | | |
681 | 685 | | |
682 | 686 | | |
683 | 687 | | |
684 | | - | |
685 | | - | |
686 | | - | |
| 688 | + | |
| 689 | + | |
687 | 690 | | |
688 | 691 | | |
689 | 692 | | |
| |||
693 | 696 | | |
694 | 697 | | |
695 | 698 | | |
696 | | - | |
| 699 | + | |
697 | 700 | | |
698 | 701 | | |
699 | 702 | | |
| |||
0 commit comments