Files
cleveragents-core/features/tui_prompt_symbol.feature
HAL9000 b588de18d6 fix(tui): rebase onto master and add CHANGELOG entry for prompt symbol fix (#6431)
Rebases the TUI prompt symbol fix onto the latest master, resolving
conflicts with the TextArea→Input refactor and the dollar-prefix shell
mode addition. Adds the missing CHANGELOG.md entry for #6431 and
removes the now-obsolete tui_prompt_textarea feature/steps that tested
the old TextArea-based implementation.

ISSUES CLOSED: #6431
2026-05-08 11:15:36 +00:00

31 lines
997 B
Gherkin
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Feature: TUI prompt symbol reflects input mode
The prompt must display the correct mode symbol so users know
whether they are typing a normal message, a command, or shell input.
Scenario Outline: Symbol updates when mode changes
Given a TUI prompt widget
When I set the TUI prompt value to "<input>"
Then the TUI prompt symbol should be "<symbol>"
Examples:
| input | symbol |
| hello | |
| /help | / |
| !ls | $ |
Scenario: Consuming text resets the prompt symbol
Given a TUI prompt widget
When I set the TUI prompt value to "/metrics"
And I consume the TUI prompt text
Then the TUI prompt symbol should be ""
And the consumed TUI prompt text should be "/metrics"
Scenario: Multi-line input toggles the multi-line prompt symbol
Given a TUI prompt widget
When I set the TUI prompt value to
"""
line one
line two
"""
Then the TUI prompt symbol should be ""