mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
Prepare TUI startup to accept multiple backend sessions (#56097)
## What changed - Add `InitialBackendSessions` to carry the initial session and additional sessions into the TUI event loop. Existing launches continue to supply a single session. - Shut down all supplied sessions on startup errors, cancellation, and early exits. - Register the under-development `tui_multi_backend` feature flag, disabled by default, and expose it in the configuration schema. ## Testing Add a regression test that fails bootstrap and verifies that both initial backends receive shutdown requests. Update multi-source event polling coverage to use the new initialization path. GitOrigin-RevId: e5db439552de97594e6f13360b90be71256ab2f0
This commit is contained in:
committed by
copyberry
parent
c2d5ea52e1
commit
86e17e98c7
@@ -120,6 +120,8 @@ pub enum Feature {
|
||||
|
||||
/// Automatically start the shared local daemon for eligible interactive launches.
|
||||
DaemonAutoStart,
|
||||
/// Allow the TUI to discover and select among multiple conversation backends.
|
||||
TuiMultiBackend,
|
||||
/// Enable negotiated zstd compression for app-server WebSocket and UDS connections.
|
||||
AppServerWebSocketCompression,
|
||||
|
||||
@@ -1057,6 +1059,12 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::TuiMultiBackend,
|
||||
key: "tui_multi_backend",
|
||||
stage: Stage::UnderDevelopment,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::AppServerWebSocketCompression,
|
||||
key: "app_server_websocket_compression",
|
||||
|
||||
Reference in New Issue
Block a user