nikivdev/code · error
open is only supported for Codex sessions; use `f codex open
Error message
open is only supported for Codex sessions; use `f codex open ...`
What it means
Error "open is only supported for Codex sessions; use `f codex open ...`" thrown in nikivdev/code.
Source
Thrown at src/ai.rs:7786
if let Some(first) = candidate.first_user_message.as_deref() {
println!(" first: {}", truncate_recover_text(first));
} else if let Some(title) = candidate.title.as_deref() {
println!(" title: {}", truncate_recover_text(title));
}
}
println!();
println!("Summary:");
println!("{}", output.summary);
}
fn open_codex_session(
path: Option<String>,
query: Vec<String>,
exact_cwd: bool,
provider: Provider,
) -> Result<()> {
if provider != Provider::Codex {
bail!("open is only supported for Codex sessions; use `f codex open ...`");
}
ensure_provider_tty(Provider::Codex, "open")?;
let plan = build_codex_open_plan(path, query, exact_cwd)?;
record_codex_open_plan(&plan, "open");
execute_codex_open_plan(&plan)
}
fn connect_codex_session(
path: Option<String>,
query: Vec<String>,
exact_cwd: bool,
json_output: bool,
scope: CodexFindScope,
provider: Provider,
) -> Result<()> {
if provider != Provider::Codex {
bail!("connect is only supported for Codex sessions; use `f codex connect ...`");View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/ai.rs:7786 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01).
Data as JSON: /api/errors/e8d14c5e0ad3bf1f.
Report an issue: GitHub.