Skip to content

TUI consumes legacy editor undo before a side conversation exists #3928

Closed

Description

@me2seeks

What happened

After side conversation switching was added, the TUI raw input listener consumes the legacy 0x1f byte even when no side conversation exists. Legacy terminals use that byte for Ctrl+/, Ctrl+_, and the editor's default Ctrl+- undo binding.

With no side pair, the side toggle is a no-op, but the editor never receives the byte, so ordinary draft undo stops working. The expected behavior is to reserve the ambiguous byte for side switching only while a side pair exists and otherwise let the editor handle it.

How to reproduce

  1. Start the Maka TUI in a terminal that uses legacy control-key encoding.
  2. Do not open /side.
  3. Type a draft.
  4. Press Ctrl+-, which emits 0x1f.
  5. Observe that the draft remains instead of being undone.

Environment

  • Maka commit: 6d8826e27
  • OS and version: Any environment using legacy terminal control-key encoding
  • Surface: TUI
  • Editor dependency: @earendil-works/pi-tui 0.84.2

Logs, screenshots, or additional context

The editor binds tui.editor.undo to Ctrl+- and parses 0x1f as that key. The Maka input listener currently consumes matchesSideConversationToggle(data) before editor dispatch even when its side-conversation state is absent.

Reported after #3760 in #3760 (comment).

Activity

  1. me2seeks commented on Aug 26, 2026

    @me2seeks
    ContributorAuthor

    I'm working on this.

    Posted by Codex on behalf of @me2seeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions