Skip to content

mecatui: footer / inline-card affordance strings don't reflect keymap overrides #457

Closed

Description

@jbeda

Problem

Following #455 (which makes the ? help overlay read live from the keyMap), several other mecatui surfaces still hardcode chord strings and won't reflect an operator's keymap override:

  • cmd/mecatui/ui/footer.go — footer affordance text, e.g. ctrl+a agents, ctrl+t trace (lines ~382, 390, 419, 426, 443, 450).
  • cmd/mecatui/ui/render.go — inline-card / affordance strings referencing ctrl+a, ctrl+t (lines ~1192, 1194, 1692, 1891, 1901, 2355, 2403).

After an operator remaps Agents off ctrl+a (the motivating case in #455 — freeing ctrl+a/ctrl+e for line editing), the footer would still tell them to press ctrl+a. The help overlay is fixed in #455; these surfaces are a separate, larger liveness sweep because the chord text is woven through many render paths rather than centralized behind a marking helper.

What "done" looks like

  • Audit footer.go / render.go (and any other surface that prints a chord) for hardcoded chord literals that correspond to a rebindable keyMap action.
  • Route each through a live marking (the same agentsKeyMarking() / helpKeyMarkings() pattern from help.go) so a rebind propagates.
  • Where a chord is genuinely fixed (not in keyMap / validActions), leave it — but confirm it's actually non-rebindable first.
  • Test: extend the liveness test pattern from docs: mecatui keybindings are configurable but undocumented #455 (TestHelpReflectsKeyOverride) to assert a remapped action's new chord appears in the footer/affordance rendering and the old one doesn't.

Context

Activity

  1. self-assigned this
    on Aug 12, 2026
  2. added
    tui
    fit-and-finish
    on Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

fit-and-finishtui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions