Skip to content

fix(mecatui): simplify in-TUI help - #1664

Merged
jhrozek merged 1 commit into
mainfrom
fix/mecatui-help-overlay-1609
Sep 17, 2026
Merged

jhrozek merged 1 commit into
mainfrom
fix/mecatui-help-overlay-1609

Conversation

@danbarr

@danbarr danbarr commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Rewrite the in-TUI ? help overlay around user actions and outcomes instead of implementation terminology.
  • Reorganize shortcuts into prompting, active-run, permission, inspection, navigation, exit, feature, and usage sections.
  • Replace the awkward double-Escape block from Awkward descriptions of escape key in mecatl help menu #1609 while preserving its complete fail-closed safety contract and keeping the universal Clear prompt fallback visible in the initial viewport.
  • Surface /help as the reliable way to open help when the prompt is not empty.

Development stage

  • Plan / Interface — Bounded/Architectural behavioral and exact-interface contract; no implementation
  • Implementation — based on an approved, merged Plan / Interface PR
  • Combined — compact one-task Bounded/Architectural exception; no separate plan PR, and the in-PR plan declares **Expected tasks:** 1, a non-placeholder **Combined rationale:**, and no runtime/public/operator/persistence/trust-boundary interface change (None — rationale; workflow-only meta-changes may review process docs/skills here)
  • Spike / Routine — acceptance-plan spine exempt; Spike evidence does not ship as-is

Contract linkage

  • Work classification: Routine
  • Classification rationale: Focused TUI copy, grouping, and regression-test changes; shortcut behavior, capability gating, and runtime interfaces are unchanged.
  • Decision record: None — no durable architectural decision. Existing ADR 0303 remains authoritative for double-Escape behavior.
  • Human waiver of spine: No
  • Acceptance plan: N/A — Routine copy cleanup tracked by Awkward descriptions of escape key in mecatl help menu #1609.
  • Human decisions resolved and recorded: N/A — no open product or interface decision.
  • Plan / Interface PR: N/A
  • Approved commit baseline: N/A
  • Combined/exemption rationale: Routine work is acceptance-plan exempt.

Interface conformance

  • No behavioral interface change. The overlay continues to use live key bindings and server capabilities, and the double-Escape help retains every safety condition required by ADR 0303.

Issue relationship

Closes #1609

Type of change

  • Behavioral/interface plan
  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation/process
  • Other (describe):

Test plan

Baseline checks

  • Acceptance-plan checker
  • Linting (task lint)
  • Offline test suite (task test)
  • Offline demo (go run ./cmd/mecademo)
  • Markdown changed: docs generation/link checks (task docs)
  • User docs/user-facing behavior changed: site build (task site:build)
  • Guarded engine API affected: compatibility check (task api:check)
  • Intentional engine API change: task api:update + engine/CHANGELOG.md
  • Landed plan: strict acceptance trace (task ac-trace-strict)
  • Final implementation review: /panel-review

Additional checks:

  • go test ./cmd/mecatui ./cmd/mecatui/ui
  • task build
  • git diff --check
  • Inspected embedded and all-capabilities help goldens at the standard compact viewport

The panel found one initial-viewport problem and two meaningful coverage gaps; all three were addressed. Two advisory observations about pre-existing meta-test structure remain non-blocking.

Changes

File Change
cmd/mecatui/ui/help.go Reorganize and rewrite the complete ? overlay, including #1609 and /help discoverability.
cmd/mecatui/ui/help_test.go Update copy/keybinding assertions and add independent capability-gating coverage.
cmd/mecatui/ui/double_escape_test.go Preserve the ADR 0303 disclosure contract in user language and cover every draft-content-only boundary.
Help goldens and liveness tests Verify the compact viewport, live remappings, and revised task-oriented wording.

User-facing change

The ? menu now groups shortcuts by task, uses concise action language, explains how to open help with /help, and describes double-Escape clearing without requiring users to decode an implementation specification.

Special notes for reviewers

The standard 30-row view intentionally keeps the full double-Escape safety explanation and remappable Clear prompt fallback together above the fold. Text-selection shortcuts move to the later conversation-navigation section.

Rewrite the question-mark help overlay around user actions and outcomes while preserving capability, keybinding, and double-Escape safety details.

Addresses #1609.

@jhrozek jhrozek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the PR. The original double-Escape wording is acceptable in context, and I found no remaining blocking issue for this help-copy change.

@jhrozek
jhrozek merged commit 5daad13 into main Sep 17, 2026
62 of 64 checks passed
@jhrozek
jhrozek deleted the fix/mecatui-help-overlay-1609 branch September 17, 2026 10:52
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 21, 2026
2 tasks
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.

Awkward descriptions of escape key in mecatl help menu

2 participants