Recover code mode after host process failures

This commit is contained in:
Channing Conger
2026-06-10 17:22:23 -07:00
parent 945eb18f37
commit cf6c29cd06
6 changed files with 249 additions and 19 deletions
@@ -110,6 +110,14 @@ pub trait CodeModeSessionDelegate: Send + Sync {
/// must keep those values isolated. Implementations may execute cells
/// in-process or remotely.
pub trait CodeModeSession: Send + Sync {
/// Returns whether the session can still accept requests.
///
/// Remote implementations should return `false` after their underlying
/// connection fails so callers can create a fresh session for later work.
fn is_alive(&self) -> bool {
true
}
fn execute<'a>(
&'a self,
request: ExecuteRequest,