agent-ecosystem/test
Mike 4c359d5185 perf(team): precompute ActivityTimeline session anchors once per render
Replace the per-item backward scan that located the most recent session
anchor with a single forward pass via useMemo.

Before: for every timeline item the render loop walked backward until
it found a lead-thought anchor, so N items produced up to N * N anchor
lookups on every render pass.

After: a single O(n) sweep builds previousSessionAnchorByIndex; render
time lookup is O(1). getItemSessionAnchorId is hoisted to module scope
so it is not recreated per render.

Behavior is unchanged. The three existing separator tests still pass,
and four new cases cover three-session transitions, long runs of
non-anchor items between thought groups, consecutive same-session
thoughts, and single-item lists.
2026-04-19 09:00:59 +05:00
..
features/recent-projects fix(recent-projects): show active projects during provisioning 2026-04-18 14:11:17 +03:00
fixtures fix(team): restore task log fallback and block launch auto-assignment 2026-04-18 14:13:15 +03:00
main feat(team): enhance Claude logs handling and improve retrieval logic 2026-04-19 01:38:58 +03:00
mocks feat(wsl): add support for finding WSL Claude root candidates 2026-02-14 13:53:13 +09:00
renderer perf(team): precompute ActivityTimeline session anchors once per render 2026-04-19 09:00:59 +05:00
shared feat(team): auto-resume rate-limited teams when the limit resets 2026-04-18 10:21:23 +03:00
setup.ts feat: add Sentry error tracking and update docs 2026-03-22 17:03:15 +02:00