deerflow2/frontend/tests/unit/core/threads
Huixin615 9a53f9dfbb
fix(frontend): preserve chronological order of thread history after context compression (#3354)
* fix(frontend): preserve chronological order of thread history after context compression

Iterate runs from newest to match backend `list_by_thread` (newest-first) and the prepend semantics of the history loader, so refreshed history renders in A→B→C→D→E→F order.

Fixes #3352

* fix(frontend): auto-continue loading runs with no visible messages after context compression
2026-06-03 21:51:48 +08:00
..
api.test.ts fix: bucket subagent token usage into parent run totals (#2838) 2026-05-10 22:47:30 +08:00
export.test.ts fix(stability): resolve P0 blockers from v2.0-m1-rc1 stability audit (#3107) (#3131) 2026-05-21 21:18:10 +08:00
message-merge.test.ts fix(frontend): preserve chronological order of thread history after context compression (#3354) 2026-06-03 21:51:48 +08:00
token-usage.test.ts fix: use backend thread token usage for header total (#2800) 2026-05-09 19:40:32 +08:00
utils.test.ts feat(frontend): set up Vitest frontend testing infrastructure with CI workflow (#2147) 2026-04-12 18:00:43 +08:00