Keep existing chat history visible when attaching to an in-flight streaming response. - Commit attach-triggered message loads for the streaming session before active session refs settle. - Avoid clearing cached main chat messages on attach cache misses while fetching prior thread history. - Add regression coverage for main chat and QuickChat streaming thread visibility, plus quarantine ledger updates. Files changed: .changeset/fn-6599-chat-streaming-thread.md | 5 + docs/architecture.md | 1 + docs/dashboard-guide.md | 2 +- packages/core/vitest.config.ts | 1 + .../__tests__/ChatView.streaming-thread.test.tsx | 168 +++++++++++++++++++++ .../dashboard/app/hooks/__tests__/useChat.test.ts | 51 +++++++ .../app/hooks/__tests__/useQuickChat.test.ts | 39 +++++ packages/dashboard/app/hooks/useChat.ts | 37 +++-- packages/dashboard/app/hooks/useQuickChat.ts | 27 ++-- scripts/lib/test-quarantine.json | 5 + 10 files changed, 307 insertions(+), 29 deletions(-) Fusion-Task-Id: FN-6599 Fusion-Task-Lineage: b2c94391-6a5b-4048-836d-e4bc56e16786
31 lines
3.2 KiB
JSON
31 lines
3.2 KiB
JSON
{
|
|
"$comment": "Flaky-test quarantine ledger (deletion ratchet — see AGENTS.md 'Flaky tests: quarantine on sight' and docs/testing.md 'Quarantine ledger and the deletion ratchet'). A test observed failing without a corresponding real bug is quarantined ON SIGHT: add an entry here AND a matching one-line `exclude` entry in that package's vitest config, in the same commit. Every entry needs a non-empty `reason` (link the failing run) and a `quarantinedAt` date — the entry expires 14 days later, at which point the test file is DELETED unless someone rescues it with evidence it catches real regressions plus a root-cause fix (never appeasement). There is deliberately no loader module and no automation around this file: it is a dated record, the vitest config exclude is the mechanism, and the sweep is policy executed by whoever touches the suite.",
|
|
"entries": [
|
|
{
|
|
"file": "plugins/fusion-plugin-compound-engineering/src/__tests__/sync.test.ts",
|
|
"reason": "CE broad package verification under NODE_ENV=production fix hit a 10000ms beforeEach hook timeout only in the full @fusion-plugin-examples/compound-engineering lane, while an immediate isolated compound-engineering-node run of sync.test.ts passed in 15.43s. Quarantined per deletion-ratchet policy without hookTimeout increases, retries, or assertion loosening.",
|
|
"quarantinedAt": "2026-06-17"
|
|
},
|
|
{
|
|
"file": "plugins/fusion-plugin-compound-engineering/src/__tests__/work-bridge.test.ts",
|
|
"reason": "CE broad package verification under NODE_ENV=production fix hit a 10000ms beforeEach hook timeout only in the full @fusion-plugin-examples/compound-engineering lane, while an immediate isolated compound-engineering-node run of work-bridge.test.ts passed in 10.96s. Quarantined per deletion-ratchet policy without hookTimeout increases, retries, or assertion loosening.",
|
|
"quarantinedAt": "2026-06-17"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/task-list-format.test.ts",
|
|
"reason": "FN-6596 verification: pnpm test failed in the broad changed-package @fusion/core lane with a beforeEach hook timeout in task-list-format after the merge gate had passed; immediate isolated rerun of the file passed. Quarantined as a suite-load timeout flake without timeout bumps, retries, or assertion loosening.",
|
|
"quarantinedAt": "2026-06-17"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/test-project.test.ts",
|
|
"reason": "FN-6596 verification: pnpm test failed in the broad changed-package @fusion/core lane with a test timeout in test-project after the merge gate had passed; immediate isolated rerun of the file passed. Quarantined as a suite-load timeout flake without timeout bumps, retries, or assertion loosening.",
|
|
"quarantinedAt": "2026-06-17"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/task-list-format.test.ts",
|
|
"reason": "FN-6599 broad pnpm test: @fusion/core package lane timed out in the file beforeAll hook after the merge gate and impacted dashboard tests had passed; immediate file-specific rerun passed. Classified as unrelated package-lane hook-timeout flake and quarantined without timeout bumps or assertion changes.",
|
|
"quarantinedAt": "2026-06-17"
|
|
}
|
|
]
|
|
}
|