code-mode: clean up terminal cell dispatch gates

This commit is contained in:
Channing Conger
2026-06-21 06:58:12 +00:00
parent 18fb5edda3
commit 54d30e5fa1
12 changed files with 204 additions and 11 deletions

View File

@@ -61,6 +61,12 @@ pub trait CodeModeSessionDelegate: Send + Sync {
text: String,
cancellation_token: CancellationToken,
) -> NotificationFuture<'a>;
/// Reports that a cell has reached its terminal state and will issue no more callbacks.
///
/// Implementations must keep this non-blocking. The session does not wait for an
/// acknowledgement or retry delivery after a transport failure.
fn cell_closed(&self, cell_id: &CellId);
}
/// A stateful code-mode session owned by one Codex thread.