mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
Preserve workspace roots across client and server platforms (#62377)
## Why A TUI connected to an app server on another platform can receive workspace roots that its own filesystem cannot represent. For example, a Windows drive path from the server cannot be stored as a native absolute path on a Unix client. ## What changed Keep `runtimeWorkspaceRoots` as native path strings on the wire for thread start, resume, and fork. Validate absolute paths on the server and store the returned roots as `PathUri` values in the TUI. Use the session's roots for active remote forks, including side chats, and preserve permissions for those roots in the TUI's permission display. ## Testing Cover thread startup with workspace and writable roots from another platform, remote root retention through start, turn, resume, and fork, and server rejection of relative roots. GitOrigin-RevId: 1e9e3bff64a6e7ddadb941f16c4952c44724af54
This commit is contained in:
@@ -141,6 +141,7 @@ async fn creation_attaches_to_original_task_and_survives_service_restart_scenari
|
||||
let saved_side = Box::pin(server.fork_side_thread(
|
||||
&LocalSettings::from(&config),
|
||||
config.clone(),
|
||||
/*workspace_roots*/ None,
|
||||
started.session.thread_id,
|
||||
/*selected_profile*/ None,
|
||||
SideChatStorage::Attached,
|
||||
|
||||
Reference in New Issue
Block a user