{"record":{"id":"f05383f8201a7171","repo":"openai/codex","slug":"force-requires-a-session-uuid-names-must-be-con","errorCode":null,"errorMessage":"--force requires a session UUID; names must be confirmed interactively","messagePattern":"--force requires a session UUID; names must be confirmed interactively","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/cli/src/main.rs","lineNumber":941,"sourceCode":"        remote.remote.or(root_remote),\n        remote.remote_auth_token_env.or(root_remote_auth_token_env),\n    )?;\n    codex_tui::run_session_archive_command(\n        action,\n        target,\n        codex_tui::SessionArchiveCommandOptions {\n            cli: interactive,\n            arg0_paths,\n            explicit_remote_endpoint,\n        },\n    )\n    .await\n    .map_err(|err| anyhow::anyhow!(\"{err}\"))\n}\n\nfn delete_action(target: &str, force: bool) -> anyhow::Result<codex_tui::SessionArchiveAction> {\n    if force && codex_protocol::ThreadId::from_string(target).is_err() {\n        anyhow::bail!(\"--force requires a session UUID; names must be confirmed interactively\");\n    }\n    let confirmation = match force {\n        true => codex_tui::DeleteConfirmation::Skip,\n        false => codex_tui::DeleteConfirmation::Prompt,\n    };\n    Ok(codex_tui::SessionArchiveAction::Delete(confirmation))\n}\n\nasync fn run_debug_app_server_command(cmd: DebugAppServerCommand) -> anyhow::Result<()> {\n    match cmd.subcommand {\n        DebugAppServerSubcommand::SendMessageV2(cmd) => {\n            let codex_bin = std::env::current_exe()?;\n            codex_app_server_test_client::send_message_v2(&codex_bin, &[], cmd.user_message, &None)\n                .await\n        }\n    }\n}\n","sourceCodeStart":923,"sourceCodeEnd":959,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/cli/src/main.rs#L923-L959","documentation":"Error \"--force requires a session UUID; names must be confirmed interactively\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/cli/src/main.rs:941 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}