codex: fix notify helper resolution in app-server tests (#13534)

This commit is contained in:
Ahmed Ibrahim
2026-03-05 02:38:33 -08:00
parent 380c8f5ff3
commit 18a943582b
6 changed files with 91 additions and 32 deletions
@@ -7,10 +7,6 @@ license.workspace = true
[lib]
path = "lib.rs"
[[bin]]
name = "codex-app-server-test-notify-capture"
path = "src/bin/notify_capture.rs"
[dependencies]
anyhow = { workspace = true }
base64 = { workspace = true }
@@ -1,22 +0,0 @@
use std::env;
use std::fs::File;
use std::io::Write;
use std::path::PathBuf;
fn main() -> anyhow::Result<()> {
let mut args = env::args_os();
let _program = args.next();
let output_path = PathBuf::from(
args.next()
.ok_or_else(|| anyhow::anyhow!("expected output path as first argument"))?,
);
let payload = args
.next()
.ok_or_else(|| anyhow::anyhow!("expected payload as final argument"))?;
let mut file = File::create(&output_path)?;
file.write_all(payload.to_string_lossy().as_bytes())?;
file.sync_all()?;
Ok(())
}