tinyhumansai/openhuman · error
missing value for --thread
Error message
missing value for --thread
What it means
Hand-rolled parsing for `openhuman tui`: the --thread flag was the last token with no following thread id to resume. Aborts before the core runtime boots.
Source
Thrown at src/tui/runner.rs:42
/// * `--no-alt-screen` — render in the current terminal buffer.
/// * a positional prompt — send immediately after startup.
/// * `-v` / `--verbose` — debug-level file logging.
pub fn run_from_cli(args: &[String]) -> anyhow::Result<()> {
let mut thread_id: Option<String> = None;
let mut force_new = false;
let mut verbose = false;
let mut resume_picker = false;
let mut use_last = false;
let mut no_alt_screen = false;
let mut prompt_parts = Vec::new();
let mut i = 0usize;
while i < args.len() {
match args[i].as_str() {
"--thread" => {
thread_id = Some(
args.get(i + 1)
.ok_or_else(|| anyhow::anyhow!("missing value for --thread"))?
.clone(),
);
i += 2;
}
"--new" => {
force_new = true;
i += 1;
}
"--resume" => {
resume_picker = true;
i += 1;
}
"--last" => {
use_last = true;
i += 1;
}
"--no-alt-screen" => {
no_alt_screen = true;View on GitHub (pinned to 7491200858)
Solutions
- Pass a thread id after --thread, e.g. `openhuman tui --thread <id>`
- Use --last or --resume to pick a thread interactively
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/tui/runner.rs:42 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/0645db31f35148e8.
Report an issue: GitHub.