Use 'claude -c' instead of 'claude -r <session-id>' for session resume
Apra Fleet is an open-source MCP server
Brought to you by:
apralabs
Originally created by: kumaakh
When resuming a Claude CLI session, two flags are available:
claude -r <session-id> — resume a specific session by IDclaude -c — resume the most recent session (no ID needed)Fleet currently uses -r <session-id> for resume, which requires storing and passing session IDs around.
Switch to claude -c for session resume. Since fleet does not use session IDs to select which session to resume (it always resumes the most recent one for a given member), -c is sufficient and simpler.
Session IDs can still be collected and stored after each run for debugging and analysis purposes — they just don't need to be passed back in to drive the resume.
-c is more robust if a session ID is ever lost or corrupted-r <session-id> is currently used in execute_prompt / session management code-c behaves correctly when there is no prior session (should start a fresh session, same as today)
Originally posted by: kumaakh
Apply the same change for Gemini CLI — use the equivalent of
-c(resume most recent session without an explicit session ID) instead of resuming by ID. Session IDs should still be captured and stored for debugging, but not used as the resume mechanism.Originally posted by: kumaakh
Closed — fixed by PR [#143] (merged to main). Claude session resume now uses
-cflag instead of--resume <session-id>.Related
Tickets:
#143Ticket changed by: kumaakh