Skip to content

code-mode: introduce durable session interface#24180

Open
cconger wants to merge 4 commits into
mainfrom
cconger/code-mode-session-runtime
Open

code-mode: introduce durable session interface#24180
cconger wants to merge 4 commits into
mainfrom
cconger/code-mode-session-runtime

Conversation

@cconger
Copy link
Copy Markdown
Contributor

@cconger cconger commented May 23, 2026

Summary

Introduce a CodeModeSession interface for executing and managing code-mode cells.

This moves cell lifecycle, callback delegation, termination, and shutdown behind a session abstraction, while continuing to use the existing in-process implementation, and the ability to implement an external process one behind this interface.

A Codex session owns one CodeModeSession, which in turn owns its running cells and stored code-mode state. Each cell is represented to the caller as a StartedCell, exposing its cell ID and initial response.

It also introduces a CodeModeSessionDelegate callback interface. A session uses the delegate to invoke nested host tools and emit notifications while a cell is running, allowing the runtime to communicate with its owning Codex session without depending directly on core turn handling.

@cconger cconger requested a review from a team as a code owner May 23, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant