ClaudeCode.Session (ClaudeCode v0.16.0)
View SourceGenServer that manages Claude Code sessions.
Each session maintains a connection to Claude (via an adapter) and handles request queuing, subscriber management, and session continuity.
The session uses adapters for communication:
ClaudeCode.Adapter.CLI(default) - Manages a CLI subprocess via PortClaudeCode.Adapter.Test- Delivers mock messages for testing
Summary
Functions
Returns a specification to start this module under a supervisor.
Starts a new session GenServer.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Starts a new session GenServer.
The session lazily connects to the adapter on the first query.