You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ACP unstable_listSessions only returns sessions for the current project #18575
unstable_listSessions in the ACP agent calls sdk.session.list() which is scoped to the current project via Instance.project.id. When running opencode acp from / (or any non-git directory), the project ID resolves to "global", so sessions from actual git projects are never returned.
The global session list endpoint (GET /experimental/session) backed by Session.listGlobal() already exists and queries SQLite across all projects, but the ACP agent doesn't use it.
Steps to reproduce
Have sessions in multiple git projects
Start ACP server from /: opencode acp --cwd /
Call unstable_listSessions({ cwd: "/" })
Only sessions with projectID === "global" are returned — sessions from git projects are missing
Expected behavior
unstable_listSessions should return sessions from all projects, using the existing experimental.session.list endpoint.
Activity
fix(acp): use global session list in unstable_listSessions
github-actions commentedon Mar 22, 2026
This issue might be a duplicate of existing issues. Please check:
opencode acpfrom a non-git or different directory.fix(acp): list sessions across projects
fix(acp): list sessions across projects