Drop bang-only enter alias
This commit is contained in:
@@ -167,11 +167,23 @@ def test_handle_message_short_enter_alias_sends_enter_only(monkeypatch) -> None:
|
||||
bridge._handle_command("start", "codex", "C1")
|
||||
pty = FakePtyManager.instances[-1]
|
||||
|
||||
bridge._handle_message("!", "C1")
|
||||
bridge._handle_message("!e", "C1")
|
||||
|
||||
assert pty.sent_inputs == []
|
||||
assert pty.enter_count == 2
|
||||
assert pty.enter_count == 1
|
||||
|
||||
|
||||
def test_handle_message_bang_is_plain_input(monkeypatch) -> None:
|
||||
FakePtyManager.instances.clear()
|
||||
bridge = _make_bridge(monkeypatch)
|
||||
|
||||
bridge._handle_command("start", "codex", "C1")
|
||||
pty = FakePtyManager.instances[-1]
|
||||
|
||||
bridge._handle_message("!", "C1")
|
||||
|
||||
assert pty.sent_inputs == ["!"]
|
||||
assert pty.enter_count == 0
|
||||
|
||||
|
||||
def test_split_message_preserves_all_content(monkeypatch) -> None:
|
||||
|
||||
Reference in New Issue
Block a user