Files
openclaw/src/cli/tui-cli-options.ts
T
Peter Steinberger 917fd92686 feat(cli): openclaw resume attaches the TUI to a recent session (#120664)
* feat(cli): openclaw resume attaches the TUI to a recent session

Implements docs/plan/runners.md milestone 2.

* fix(cli): resume covers global sessions and preflights TTY

* fix(cli): require a terminal before resume

* fix(cli): adapt resume gateway disconnect state

* fix(cli): preserve global resume ownership

* test(cli): prove qualified global resume crosses the gateway boundary
2026-08-09 02:52:06 -07:00

12 lines
594 B
TypeScript

// Shared Gateway connection options for terminal attach commands.
import type { Command } from "commander";
/** Add the shared Gateway connection flags used by terminal attach commands. */
export function addTuiOptions(command: Command): Command {
return command
.option("--url <url>", "Gateway WebSocket URL (defaults to gateway.remote.url when configured)")
.option("--token <token>", "Gateway token (if required)")
.option("--password <password>", "Gateway password (if required)")
.option("--tls-fingerprint <sha256>", "Expected Gateway TLS certificate fingerprint");
}