diff --git a/test/twin/openai/src/debug_ui.rs b/test/twin/openai/src/debug_ui.rs index 97ea3c90c..8c760d499 100644 --- a/test/twin/openai/src/debug_ui.rs +++ b/test/twin/openai/src/debug_ui.rs @@ -371,7 +371,9 @@ async function refresh() { } catch(e) { /* silent -- next interval will retry */ } } -setInterval(refresh, 2000); +if (new URLSearchParams(window.location.search).get('refresh') !== '0') { + setInterval(refresh, 2000); +} function renderState(data) { if (data.namespaces.length === 0) { diff --git a/test/twin/openai/tests/debug_ui.rs b/test/twin/openai/tests/debug_ui.rs index bae437792..bef6ccc64 100644 --- a/test/twin/openai/tests/debug_ui.rs +++ b/test/twin/openai/tests/debug_ui.rs @@ -313,7 +313,10 @@ async fn debug_page_renders_in_headless_chrome() { command.arg("--no-sandbox"); } let output = command - .arg(format!("{}/__debug", server.base_url)) + // Static mode keeps the page visually identical for the screenshot + // while avoiding a live refresh loop that can stall headless Chrome + // on Linux CI. + .arg(format!("{}/__debug?refresh=0", server.base_url)) .output() .expect("Chrome should run");