nikivdev/code · error
clipboard command exited with status {}
Error message
clipboard command exited with status {} What it means
Error "clipboard command exited with status {}" thrown in nikivdev/code.
Source
Thrown at src/failure.rs:785
.spawn();
let mut child = match result {
Ok(child) => child,
Err(_) => Command::new("xsel")
.arg("--clipboard")
.arg("--input")
.stdin(Stdio::piped())
.spawn()
.context("failed to spawn xclip or xsel")?,
};
if let Some(stdin) = child.stdin.as_mut() {
stdin.write_all(text.as_bytes())?;
}
let status = child.wait()?;
if !status.success() {
bail!("clipboard command exited with status {}", status);
}
}
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
{
bail!("clipboard not supported on this platform");
}
Ok(true)
}
#[cfg(test)]
mod tests {
use super::{
FailureCopyFormat, FailureEntry, FailurePromptTool, FailureRecord, compact_output_tail,
render_ai_prompt, render_excerpt, render_prompt, repo_failure_dir, repo_failure_filename,
slug_component, unique_history_path,
};View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/failure.rs:785 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/2a954fff7c0e89ac.
Report an issue: GitHub.