Scope code mode cell IDs to the host process

This commit is contained in:
Channing Conger
2026-06-10 17:22:19 -07:00
parent 72d48f9df9
commit 945eb18f37
3 changed files with 51 additions and 7 deletions
+2
View File
@@ -25,6 +25,7 @@ async fn serves_code_mode_sessions_over_stdio() {
.kill_on_drop(true)
.spawn()
.expect("spawn codex-code-mode-host");
let host_id = child.id().expect("host process id");
let mut stdin = child.stdin.take().expect("host stdin");
let mut stdout = child.stdout.take().expect("host stdout");
@@ -70,6 +71,7 @@ async fn serves_code_mode_sessions_over_stdio() {
}) => cell_id,
message => panic!("unexpected execute response: {message:?}"),
};
assert_eq!(cell_id.as_str(), format!("{host_id}_1"));
let response = match read_frame(&mut stdout)
.await
.expect("initial response frame")