session method
Switch to a session.
Maps to: .session <name>
If session exists, replays its history. If new, starts recording to session file.
Implementation
@override
Future<void> session(String sessionId) async {
final isNew = _state.startSession(sessionId);
if (!isNew) {
// Replay existing session
final sessionPath = _state.getSessionPath(sessionId);
if (File(sessionPath).existsSync()) {
await replay(sessionPath);
}
}
}