mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Route TUI Windows sandbox setup through the app server (#44945)
## What changed Use `windowsSandbox/setupStart` for elevated and unelevated setup, and handle completion notifications while retaining the pending approval preset and permission profile selection. Verify the effective sandbox mode before enabling Agent mode. Keep input locked and setup pending when the start request times out or its response is lost. Block thread replacement during setup, ignore completion notifications for a different mode, and clear interrupted setup state with a restart message after reconnection. Preserve the fallback prompt when elevated setup fails and report unelevated setup failures. Remove the TUI's direct sandbox setup helpers and sandbox-mode configuration writes. ## Testing Add regression coverage for uncertain setup responses, matching completion modes, blocked thread replacement with retained input, and interrupted setup during reconnection. GitOrigin-RevId: 5ec1101a1a69b3f96f01fc2ba6a03112705f4918
This commit is contained in:
1 parent
39d193d72d
commit
cebdb732ea
13 files changed
+452
-348
No files matched your search
@@ -334,6 +334,9 @@ impl App {
|
||||
app_server: &mut AppServerSession,
|
||||
root_thread_id: ThreadId,
|
||||
) -> color_eyre::Result<AppRunControl> {
|
||||
if self.windows_sandbox_blocks_thread_switch() {
|
||||
return Ok(AppRunControl::Continue);
|
||||
}
|
||||
if self.current_displayed_thread_id() == Some(root_thread_id)
|
||||
&& (!self.thread_unavailable(root_thread_id)
|
||||
|| self.chat_widget.is_external_writer_view())
|
||||
|
||||
Reference in new issue
Block a user