Skip to content

fix(tui): /resume, /new, /learn, /refine, /heartbeat every complete as they run; MCP sign-in asks for the resource's scope - #39

Merged
DEVfancybear merged 3 commits into
masterfrom
fix/resume-picker
Nov 20, 2026
Merged

DEVfancybear merged 3 commits into
masterfrom
fix/resume-picker

Conversation

@DEVfancybear

Copy link
Copy Markdown
Owner

What

Slash-menu fixes, plus a fix for MCP OAuth scope selection.

  • /resume: Enter on the bare command opens the session picker again. Before, the menu completed to latest. latest and the session ids are still offered once you start typing.

  • /new: Enter first shows its flags (--name, --). A second Enter starts the session. A flag is applied only if you move the highlight onto it.

  • /heartbeat every / /schedule add: accepting an interval (5m, @daily, in 10m) leaves a trailing space and waits for the instruction. Before, it ran with an empty instruction ("RLM heartbeat instruction cannot be empty").

  • /refine: the blank right after the command shows its flags. Later blanks are free text, where flags appear only once you type -.

  • /learn, /name: commands with nothing to choose on a blank run on Enter (commands::runs_bare).

  • Reference panels (/features, /help, …): typing a printable key closes the panel, so the cursor and the completion menu show again.

  • MCP sign-in (Vercel invalid_scope): the requested scope is chosen in this order:

    1. the scope in the WWW-Authenticate challenge;
    2. the protected resource's scopes_supported;
    3. only when the resource publishes no metadata, the authorization server's scopes_supported.

    Before, every scope the authorization server listed was requested.

  • OPERATOR_GUIDE.en/.vi: the completion rules, the /refine and /resume rows, and MCP scope selection.

Tests

  • cargo fmt --all --check: passed.

  • cargo clippy --locked --workspace --all-targets -- -D warnings: passed.

  • cargo test --locked --workspace --no-fail-fast -j 2: 2685 passed, 0 failed, 64 ignored.

  • New unit tests cover runs_bare, the flags on a blank, waiting after an interval, Enter on /resume, /new and /refine , typing closing a panel, and chosen_scope.

  • pty_probe on the release ha.exe (sandbox HA_HOME):

    • /resume + Enter opens the agents-view picker;
    • /new lists its flags;
    • /heartbeat every 5m waits for the instruction;
    • /refine lists 4 flags;
    • typing after /features brings back the menu.

    The probe ran on the build before the clippy-only commit 8c13027, SHA-256 3e87892734390b5c7d28ad78a1049d9fe4d4d8147613daa6d7c960a3123f14eb.

  • No live suites ran: this is a UI/TUI fix. The maintainer merges it and runs live once on the merged master.

🤖 Generated with Claude Code

DuongLT and others added 3 commits November 20, 2026 21:19
…e as they run; MCP sign-in asks for the resource's scope

- /resume offered `latest` on a blank, so Enter resumed it and the session
  picker was out of reach; sessions are now offered once their name is
  begun, and a command whose blank offers nothing (/resume, /learn) runs on
  Enter once its name is complete.
- Right after a command its blank offers the flags too (/refine, /new);
  Enter there runs the line as typed unless the highlight was moved to a
  flag. Later blanks are free text: a flag shows once its dash is typed.
- /heartbeat every <interval> and /schedule add <when> type a space after
  the value and wait for the instruction instead of running without one.
- Typing while a reference panel (/features, /help) is open closes it, so
  the composer shows its cursor and menu again.
- MCP OAuth asks for the scope the server's challenge names, else the
  resource metadata's scopes_supported, not the authorization server's whole
  list: Vercel's lists ema_issuer:manage and refused it as invalid_scope.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	docs/guides/OPERATOR_GUIDE.en.md
#	docs/guides/OPERATOR_GUIDE.vi.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DEVfancybear
DEVfancybear merged commit 78afd41 into master Nov 20, 2026
31 of 36 checks passed
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.

1 participant