list_tasks
List delegation sessions from the opencode server to recover a session_id when a delegated task fails to return one. Accepts an optional directory to sweep additional project scopes.
Instructions
List delegation sessions from the SERVER (survives bridge restarts), enriched with this bridge's registry. Use it to recover a session_id when a delegate_task failed without returning one.
IMPORTANT: GET /session on the opencode server is SCOPED BY DIRECTORY. This tool sweeps the server's default scope plus every directory this bridge knows about, and it always prints which scopes it swept. If the bridge was restarted its registry is empty, so a session created with a project directory may not show up - in that case call it again passing that directory explicitly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | Extra project directory to sweep (GET /session is directory-scoped; pass the project root of the missing session) |