Problem
Observed during the PR #294 review: components::app::chat_delegate::tests::clear_ensure_subscription_sent_is_scoped_to_supplied_vk (ui/src/components/app/chat_delegate.rs) failed once in a parallel full-suite cargo test -p river-ui --bins run, then passed in isolation, passed with --test-threads=1, and passed on a re-run.
This is pre-existing and unrelated to PR #294 — that PR does not touch chat_delegate.rs.
Hypothesis
Classic shared-global-mutable-state flake: the test asserts on a global signal/state that another test mutates concurrently. The pass-in-isolation / pass-with---test-threads=1 behaviour points at cross-test interference rather than a logic bug in the test itself.
Suggested fix
Isolate the global state the test depends on (per-test reset, or a test-local scope), or serialize the affected tests. Per the project's "flaky tests are broken tests" rule this should be fixed at the root, not retried.
[AI-assisted - Claude]
Problem
Observed during the PR #294 review:
components::app::chat_delegate::tests::clear_ensure_subscription_sent_is_scoped_to_supplied_vk(ui/src/components/app/chat_delegate.rs) failed once in a parallel full-suitecargo test -p river-ui --binsrun, then passed in isolation, passed with--test-threads=1, and passed on a re-run.This is pre-existing and unrelated to PR #294 — that PR does not touch
chat_delegate.rs.Hypothesis
Classic shared-global-mutable-state flake: the test asserts on a global signal/state that another test mutates concurrently. The pass-in-isolation / pass-with-
--test-threads=1behaviour points at cross-test interference rather than a logic bug in the test itself.Suggested fix
Isolate the global state the test depends on (per-test reset, or a test-local scope), or serialize the affected tests. Per the project's "flaky tests are broken tests" rule this should be fixed at the root, not retried.
[AI-assisted - Claude]