From 3ab09075c5370a3a7e9577c6cc79e5011f39d55c Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Wed, 8 Jul 2026 20:55:13 +0800 Subject: [PATCH] test(webui): tolerate wrapped bootstrap CLI output --- tests/cli/test_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cli/test_commands.py b/tests/cli/test_commands.py index feeab51a..7d6232ef 100644 --- a/tests/cli/test_commands.py +++ b/tests/cli/test_commands.py @@ -1672,7 +1672,7 @@ def test_webui_yes_creates_config_and_enables_local_websocket( assert data["agents"]["defaults"]["workspace"] == str(workspace) assert seen["templates"] == workspace assert seen["gateway_kwargs"] == {"port": 18888, "open_browser_url": None} - compact_output = _strip_ansi(result.stdout).replace("\n", " ") + compact_output = re.sub(r"\s+", " ", _strip_ansi(result.stdout)) assert "bootstrap secret was generated" in compact_output assert "channels.websocket.tokenIssueSecret" in compact_output assert "rerun without --no-open" in compact_output