tinyhumansai/openhuman · error

unknown tui arg: {other}

Error message

unknown tui arg: {other}

What it means

TUI argument loop hit a dash-prefixed token that matches none of the known flags (--thread, --new, --resume, --last, --no-alt-screen, -v, -h); a typo'd or unsupported option. Startup aborts immediately.

Source

Thrown at src/tui/runner.rs:72

            }
            "--last" => {
                use_last = true;
                i += 1;
            }
            "--no-alt-screen" => {
                no_alt_screen = true;
                i += 1;
            }
            "-v" | "--verbose" => {
                verbose = true;
                i += 1;
            }
            "-h" | "--help" => {
                print_help();
                return Ok(());
            }
            other if other.starts_with('-') => {
                return Err(anyhow::anyhow!("unknown tui arg: {other}"));
            }
            prompt => {
                prompt_parts.push(prompt.to_string());
                i += 1;
            }
        }
    }

    // File-only logging — never stderr while the TUI owns the terminal.
    let data_dir = resolve_data_dir();
    let log_dir = crate::core::logging::init_for_tui(&data_dir, verbose);
    log::info!(
        "[tui] starting tabbed terminal UI (thread={:?} new={} logs={:?})",
        thread_id,
        force_new,
        log_dir
    );

View on GitHub (pinned to 7491200858)

Solutions

  1. Check flag spelling against `openhuman tui -h`
  2. Remove the unsupported option
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/tui/runner.rs:72 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/7f14c7d33d3a22d8. Report an issue: GitHub.