{"record":{"id":"57e49164f95851aa","repo":"tinyhumansai/openhuman","slug":"unknown-run-arg-other","errorCode":null,"errorMessage":"unknown run arg: {other}","messagePattern":"unknown run arg: (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/core/cli.rs","lineNumber":418,"sourceCode":"                i += 1;\n            }\n            \"-h\" | \"--help\" => {\n                println!(\"Usage: openhuman run [--host <addr>] [--port <u16>] [--jsonrpc-only|--headless-api] [-v|--verbose]\");\n                println!();\n                println!(\n                    \"  --host <addr>    Bind address (default: 127.0.0.1 or OPENHUMAN_CORE_HOST)\"\n                );\n                println!(\n                    \"  --port <u16>     Listen address port (default: 7788 or OPENHUMAN_CORE_PORT)\"\n                );\n                println!(\"  --jsonrpc-only   HTTP JSON-RPC only; disable Socket.IO\");\n                println!(\"  --headless-api   HTTP JSON-RPC only; disable all background services\");\n                println!(\"  -v, --verbose    Shorthand for RUST_LOG=debug when RUST_LOG is unset\");\n                println!();\n                println!(\"Logging: set RUST_LOG (e.g. RUST_LOG=debug openhuman run). Default level is info.\");\n                return Ok(());\n            }\n            other => return Err(anyhow::anyhow!(\"unknown run arg: {other}\")),\n        }\n    }\n\n    crate::core::logging::init_for_cli_run(verbose, log_scope);\n\n    // Initialize the Tokio multi-threaded runtime.\n    //\n    // A single agent turn is a very large async state machine (system prompt +\n    // hundreds of tool specs + the nested provider/tool loop), and delegating\n    // to a sub-agent runs another full turn one level down. Even with the inner\n    // sub-agent future boxed (`subagent_runner::ops`), that nesting overflows\n    // tokio's default 2 MiB worker-thread stack and aborts the whole process\n    // (SIGABRT: \"thread 'tokio-rt-worker' has overflowed its stack\"), taking\n    // the JSON-RPC server down mid-request. Give workers a roomier stack.\n    let rt = tokio::runtime::Builder::new_multi_thread()\n        .enable_all()\n        .thread_stack_size(crate::core::runtime::AGENT_WORKER_STACK_BYTES)\n        .max_blocking_threads(crate::core::runtime::MAX_BLOCKING_THREADS)","sourceCodeStart":400,"sourceCodeEnd":436,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/cli.rs#L400-L436","documentation":"CLI argument parsing in run_server_command: an unrecognized argument was passed to the run subcommand (accepted: --host, --port, --jsonrpc-only/--headless-api, -v/--verbose, -h/--help). The offending token is in `{other}`; run `openhuman run --help` for the flag list.","triggerScenarios":"Thrown at src/core/cli.rs:418 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check spelling against `openhuman run --help`","Remove the unrecognized argument"],"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-23T08:17:48.524Z"}