{"record":{"id":"0645db31f35148e8","repo":"tinyhumansai/openhuman","slug":"missing-value-for-thread","errorCode":null,"errorMessage":"missing value for --thread","messagePattern":"missing value for --thread","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/tui/runner.rs","lineNumber":42,"sourceCode":"///   * `--no-alt-screen` — render in the current terminal buffer.\n///   * a positional prompt — send immediately after startup.\n///   * `-v` / `--verbose` — debug-level file logging.\npub fn run_from_cli(args: &[String]) -> anyhow::Result<()> {\n    let mut thread_id: Option<String> = None;\n    let mut force_new = false;\n    let mut verbose = false;\n    let mut resume_picker = false;\n    let mut use_last = false;\n    let mut no_alt_screen = false;\n    let mut prompt_parts = Vec::new();\n\n    let mut i = 0usize;\n    while i < args.len() {\n        match args[i].as_str() {\n            \"--thread\" => {\n                thread_id = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow::anyhow!(\"missing value for --thread\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"--new\" => {\n                force_new = true;\n                i += 1;\n            }\n            \"--resume\" => {\n                resume_picker = true;\n                i += 1;\n            }\n            \"--last\" => {\n                use_last = true;\n                i += 1;\n            }\n            \"--no-alt-screen\" => {\n                no_alt_screen = true;","sourceCodeStart":24,"sourceCodeEnd":60,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/tui/runner.rs#L24-L60","documentation":"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.","triggerScenarios":"Thrown at src/tui/runner.rs:42 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a thread id after --thread, e.g. `openhuman tui --thread <id>`","Use --last or --resume to pick a thread interactively"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}