Skip to content

mecatui: general debug mode (unified gate for /debug-* builtins) #551

Closed

Description

@jbeda

Summary

#488 introduced /debug-ask — a palette builtin that injects a fake permission ask for hand-testing the modal. It is gated by its own env var (MECATUI_DEBUG_ASK=1), deliberately minimal. That was the second mecatui debug affordance with its own ad-hoc gate (the first: MECATUI_DEBUG_MOUSE).

Proposal

A unified debug mode:

  • ONE gate (e.g. --debug flag or MECATUI_DEBUG=1) that un-hides a debug-* builtin family.
  • Migrate MECATUI_DEBUG_ASK and MECATUI_DEBUG_MOUSE onto it (keep the old env vars as aliases for a deprecation window, or break cleanly — mecatui is pre-1.0 UX).
  • A naming/registration convention so future /debug-* builtins (fake hook events, fake MCP errors, layout stress content) register in one place.
  • Debug builtins must never appear in --help or palette completion for normal users.

Why separate from #488

The #488 operator decision was explicitly "let's not do all that now" — /debug-ask shipped with the minimal env gate so the general apparatus could be designed once, here.

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementfit-and-finishtui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions