Skip to content

fix(cli): keep TUI keys, tool yaml, and relay from dropping state - #52

Merged
duyetbot merged 1 commit into
mainfrom
fix/cli-review-correctness
Sep 6, 2026
Merged

fix(cli): keep TUI keys, tool yaml, and relay from dropping state#52
duyetbot merged 1 commit into
mainfrom
fix/cli-review-correctness

Conversation

@duyet

@duyet duyet commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Shift-Tab (BackTab) now cycles settings tabs; unknown Ctrl no longer quits.
  • PATH misses are not cached, so --install can see the new binary.
  • Partial tools: YAML no longer wipes gateway discovery or /v1; extra (including yolo) round-trips and launch honors it.
  • Claude spawn sets ANTHROPIC_API_KEY so a parent-shell key cannot win.
  • Relay pairing returns the minted token instead of panicking on re-read; worker spawn failure is an Error frame.

Checklist

  • Version stays on 0.1.x (do not introduce 0.2 / 1.0)
  • Do not auto-merge release-please PRs

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

anyr size and startup

Startup is wall time for a cold anyr --version / anyr --help (median of 21 runs). Size is the stripped release binary, or the .wasm for the browser demo.

Size budget: anyr-linux-x86_64 must stay ≤ 4.0 MiB (4194304 bytes) stripped.

Asset Kind Size --version median --help median
anyr-darwin-arm64 native 2.8 MiB 3.5 ms 3.02 ms
anyr-darwin-x86_64 native 3.0 MiB 44.63 ms 44.3 ms
anyr-linux-arm64 native 2.8 MiB 0.86 ms 0.87 ms
anyr-linux-x86_64 native 3.1 MiB 0.96 ms 0.94 ms
anyr-windows-x86_64.exe native 2.6 MiB 6.89 ms 6.97 ms
anyr.wasm wasm 176.0 KiB

Budget check: ok

raw timings
[
  {
    "asset": "anyr-darwin-arm64",
    "kind": "native",
    "path": "/Users/runner/work/cli/cli/anyr-darwin-arm64",
    "bytes": 2927832,
    "size": "2.8 MiB",
    "version": "0.1.11 (built 2026-09-06 03:29:10)",
    "target": "aarch64-apple-darwin",
    "os": "macos-latest",
    "startup_version": {
      "n": 21,
      "min_ms": 3.32,
      "median_ms": 3.5,
      "p95_ms": 3.84,
      "mean_ms": 3.53
    },
    "startup_help": {
      "n": 21,
      "min_ms": 2.89,
      "median_ms": 3.02,
      "p95_ms": 3.46,
      "mean_ms": 3.09
    }
  },
  {
    "asset": "anyr-darwin-x86_64",
    "kind": "native",
    "path": "/Users/runner/work/cli/cli/anyr-darwin-x86_64",
    "bytes": 3133760,
    "size": "3.0 MiB",
    "version": "0.1.11 (built 2026-09-06 03:29:49)",
    "target": "x86_64-apple-darwin",
    "os": "macos-latest",
    "startup_version": {
      "n": 21,
      "min_ms": 37.13,
      "median_ms": 44.63,
      "p95_ms": 52.48,
      "mean_ms": 45.53
    },
    "startup_help": {
      "n": 21,
      "min_ms": 35.48,
      "median_ms": 44.3,
      "p95_ms": 51.17,
      "mean_ms": 45.08
    }
  },
  {
    "asset": "anyr-linux-arm64",
    "kind": "native",
    "path": "/home/runner/work/cli/cli/anyr-linux-arm64",
    "bytes": 2888744,
    "size": "2.8 MiB",
    "version": "0.1.11 (built 2026-09-06 03:28:51)",
    "target": "aarch64-unknown-linux-gnu",
    "os": "ubuntu-24.04-arm",
    "startup_version": {
      "n": 21,
      "min_ms": 0.78,
      "median_ms": 0.86,
      "p95_ms": 0.99,
      "mean_ms": 0.86
    },
    "startup_help": {
      "n": 21,
      "min_ms": 0.82,
      "median_ms": 0.87,
      "p95_ms": 0.98,
      "mean_ms": 0.88
    }
  },
  {
    "asset": "anyr-linux-x86_64",
    "kind": "native",
    "path": "/home/runner/work/cli/cli/anyr-linux-x86_64",
    "bytes": 3230720,
    "size": "3.1 MiB",
    "version": "0.1.11 (built 2026-09-06 03:28:58)",
    "target": "x86_64-unknown-linux-gnu",
    "os": "ubuntu-latest",
    "startup_version": {
      "n": 21,
      "min_ms": 0.93,
      "median_ms": 0.96,
      "p95_ms": 0.99,
      "mean_ms": 0.96
    },
    "startup_help": {
      "n": 21,
      "min_ms": 0.92,
      "median_ms": 0.94,
      "p95_ms": 1.03,
      "mean_ms": 0.95
    }
  },
  {
    "asset": "anyr-windows-x86_64.exe",
    "kind": "native",
    "path": "D:\\a\\cli\\cli\\anyr-windows-x86_64.exe",
    "bytes": 2675200,
    "size": "2.6 MiB",
    "version": "0.1.11 (built 2026-09-06T03:30:11Z)",
    "target": "x86_64-pc-windows-msvc",
    "os": "windows-latest",
    "startup_version": {
      "n": 21,
      "min_ms": 6.73,
      "median_ms": 6.89,
      "p95_ms": 7.2,
      "mean_ms": 6.93
    },
    "startup_help": {
      "n": 21,
      "min_ms": 6.81,
      "median_ms": 6.97,
      "p95_ms": 7.16,
      "mean_ms": 6.98
    }
  },
  {
    "asset": "anyr.wasm",
    "kind": "wasm",
    "path": "/home/runner/work/cli/cli/target/wasm-pkg/anyr_cli_bg.wasm",
    "bytes": 180265,
    "size": "176.0 KiB",
    "version": "wasm",
    "target": "wasm32-unknown-unknown",
    "os": ""
  }
]

Rebased onto post-split main (#48): the commands.rs hunks now land in their
per-domain cmd/ modules (run_whoami→usage, run_keys→keys, run_launch→launch,
launcher_uses_palette/persist_tool_command→dispatch,
run_config_tui/settings_tab_index/fill_agent_settings→config_tui,
run_menu→menu, dispatch cursor/cline/windsurf→stub).

Kept tip-of-main UX (#50-#54) where PR #52's #51-era assumptions diverged:
- help stays examples-first + the 'help commands' map (commands_help()
  retained); --help no longer dumps CORE COMMANDS.
- the compact HUD stays the default launcher, so the palette-only 'empty
  agents shows install' assertion was dropped (the HUD always offers
  Launch claude).
- config_reset_row's ToolCommand row keeps main's interactive prompt rather
  than PR #52's reset-to-default (newer UX); the should_persist_command guard
  is still applied so bare builtins are no longer written to config.

Carried forward the rest of PR #52: skip_confirm/--ok alias, confirmation
skips in keys, claude_fable display in whoami, settings tab via
ANYR_TUI_TAB, ToolCommand Install→Mapping, yolo via tool.extra_flag,
should_persist_command, plus the parse/relay/spawn/tui fixes and tests.
@duyetbot
duyetbot force-pushed the fix/cli-review-correctness branch from 2be8da7 to fa124c7 Compare September 6, 2026 03:26
@duyetbot
duyetbot merged commit 30547a2 into main Sep 6, 2026
9 checks passed
@duyetbot
duyetbot deleted the fix/cli-review-correctness branch September 6, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants