Add regression test for command dialog option filtering #6837

Closed
opened 2026-02-16 18:05:24 -05:00 by yindo · 1 comment
Owner

Originally created by @adolago on GitHub (Jan 19, 2026).

Originally assigned to: @rekram1-node on GitHub.

Problem

No test covers the undefined registration crash or keybind footer mapping.

Proposed fix

  • Create packages/agent-core/test/cli/tui/dialog-command.test.ts with mocked TUI deps.
  • Instantiate createCommandDialog, register undefined entries, and assert filtered output and footer mapping.

Acceptance criteria

  • Test passes and validates undefined entries are ignored.

Test plan

  • cd packages/agent-core
  • bun test test/cli/tui/dialog-command.test.ts
Originally created by @adolago on GitHub (Jan 19, 2026). Originally assigned to: @rekram1-node on GitHub. ## Problem No test covers the undefined registration crash or keybind footer mapping. ## Proposed fix - Create `packages/agent-core/test/cli/tui/dialog-command.test.ts` with mocked TUI deps. - Instantiate `createCommandDialog`, register undefined entries, and assert filtered output and footer mapping. ## Acceptance criteria - Test passes and validates undefined entries are ignored. ## Test plan - `cd packages/agent-core` - `bun test test/cli/tui/dialog-command.test.ts`
yindo closed this issue 2026-02-16 18:05:24 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 19, 2026):

For keybind-related issues, please also check our pinned keybinds documentation: #4997

@github-actions[bot] commented on GitHub (Jan 19, 2026): For keybind-related issues, please also check our pinned keybinds documentation: #4997
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6837