resolve_current_agent_session
Resolve 'this session' to the correct captured Suvadu session before searching or summarizing work, using explicit IDs, native agent data, or cwd context and returning candidates when ambiguous.
Instructions
Resolve 'this/current session' conservatively to a captured Suvadu session. Call this first whenever the user says 'this session', 'what I was just doing' or 'summarize our work' — search_commands and recent_commands have no idea which session is yours and will return other projects' work. Uses an explicit ID first, then agent-provided native session environment (Codex and Claude Code only; OpenCode and Cursor have no such environment variable, so they fall straight through to the cwd fallback), then an unambiguous recent session in the current directory. Returns candidates instead of guessing when ambiguous. The in-progress turn may not be captured until Stop/SessionEnd. Times are epoch milliseconds UTC.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory hint | |
| agent | No | Optional agent: openai-codex/codex, claude-code/claude, opencode, or cursor | |
| native_id | No | Optional native agent session ID | |
| session_id | No | Optional explicit Suvadu session ID |