feat(ui): update UI backend options to use 'cli' and 'tui'

This commit is contained in:
X-iZhang
2026-03-08 15:34:22 +00:00
parent 659fbc7f84
commit 07e57e110b
9 changed files with 40 additions and 40 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ def test_cmd_interactive_dispatches_to_textual(monkeypatch):
def _fake_resolve_ui_backend(value, *, warn_fallback=False): # noqa: ANN001
captured["resolved_input"] = value
captured["warn_fallback"] = warn_fallback
return "textual"
return "tui"
def _fake_run_textual_interactive(**kwargs): # noqa: ANN003
captured["kwargs"] = kwargs
@@ -33,10 +33,10 @@ def test_cmd_interactive_dispatches_to_textual(monkeypatch):
provider="demo-provider",
run_name="demo-run",
thread_id="thread-1",
ui_backend="textual",
ui_backend="tui",
)
assert captured["resolved_input"] == "textual"
assert captured["resolved_input"] == "tui"
assert captured["warn_fallback"] is True
kwargs = captured["kwargs"]