• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / neokai / 28604318833
82%

Build:
DEFAULT BRANCH: dev
Ran 02 Jul 2026 04:07PM UTC
Jobs 28
Files 623
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jul 2026 04:06PM UTC coverage: 82.435% (-0.001%) from 82.436%
28604318833

push

github

web-flow
fix(web): reset useAutoScroll latch on context switch via resetKey (#2223)

* fix(web): reset useAutoScroll latch on context switch via resetKey

useAutoScroll only reset its initial bottom-scroll latch on mount, when
isInitialLoad flipped back to true, or when messageCount hit 0. A parent
that swaps the underlying data in place without unmounting (and without
messageCount passing through 0) left hasScrolledOnMountRef latched true
from the previous context, so the hook preserved a stale scroll position
instead of snapping to the latest messages.

Add an optional resetKey (sessionId / taskId). When it changes, reset the
mount-scroll latch and message-count tracker so the next non-empty render
is treated as a fresh visit. Wire resetKey: sessionId in ChatContainer and
resetKey: taskId in SpaceTaskUnifiedThread (which renders without a key, so
it stays mounted across task switches). Add a regression test covering a
direct messageCount swap (40 -> 25) without dropping to 0.

* fix(web): re-run auto-scroll when resetKey changes (same messageCount)

Add resetKey to the auto-scroll layout effect's dependency array. Without
it, switching between two contexts that happen to have the same messageCount
(e.g. two tasks with 25 rows each) left resetKey as the only changed input:
the reset effect cleared the latch, but the auto-scroll effect never re-ran,
so the old scroll position was preserved. Add a test covering the
same-messageCount resetKey change.

* fix(web): refresh height snapshot on resetKey context reset

On a same-message-count context switch, resetKey is the only changed input,
so the scroll-detection effect does not re-run and lastScrollHeightRef keeps
describing the previous (e.g. taller) thread. If the new thread's content
grows asynchronously after the initial scroll, the ResizeObserver compares
against that stale height, grew stays false, and it never re-pins to the
bottom. Reset lastScrollHeightRef alongside the other context refs in the
resetKey... (continued)

11529 of 16607 branches covered (69.42%)

Branch coverage included in aggregate %.

8 of 8 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

98209 of 116513 relevant lines covered (84.29%)

301.71 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
84.94
-0.57% packages/web/src/components/MessageInput.tsx
Jobs
ID Job ID Ran Files Coverage
1 daemon-online-coordinator - 28604318833.1 02 Jul 2026 04:08PM UTC 351
7.82
GitHub Action Run
2 daemon-4-space-storage - 28604318833.2 02 Jul 2026 04:08PM UTC 161
53.6
GitHub Action Run
3 daemon-online-rpc-3 - 28604318833.3 02 Jul 2026 04:08PM UTC 362
18.82
GitHub Action Run
4 daemon-4-space-migrations-b - 28604318833.4 02 Jul 2026 04:08PM UTC 73
37.42
GitHub Action Run
5 daemon-online-features-2 - 28604318833.5 02 Jul 2026 04:08PM UTC 362
21.76
GitHub Action Run
6 daemon-5-space-runtime-a - 28604318833.6 02 Jul 2026 04:08PM UTC 132
39.69
GitHub Action Run
7 daemon-online-components - 28604318833.7 02 Jul 2026 04:08PM UTC 362
17.27
GitHub Action Run
8 daemon-online-git - 28604318833.8 02 Jul 2026 04:08PM UTC 362
18.25
GitHub Action Run
9 daemon-online-convo - 28604318833.9 02 Jul 2026 04:09PM UTC 362
21.54
GitHub Action Run
10 web - 28604318833.10 02 Jul 2026 04:09PM UTC 252
74.6
GitHub Action Run
11 daemon-online-features-1 - 28604318833.11 02 Jul 2026 04:08PM UTC 362
22.31
GitHub Action Run
12 daemon-online-rewind-2 - 28604318833.12 02 Jul 2026 04:08PM UTC 362
22.19
GitHub Action Run
13 daemon-online-sdk - 28604318833.13 02 Jul 2026 04:08PM UTC 362
21.63
GitHub Action Run
14 daemon-5-space-runtime-b - 28604318833.14 02 Jul 2026 04:09PM UTC 187
47.87
GitHub Action Run
15 daemon-4-space-migrations-a - 28604318833.15 02 Jul 2026 04:08PM UTC 50
54.68
GitHub Action Run
16 daemon-online-space-1 - 28604318833.16 02 Jul 2026 04:09PM UTC 362
31.45
GitHub Action Run
17 daemon-online-space-2 - 28604318833.17 02 Jul 2026 04:10PM UTC 362
31.76
GitHub Action Run
18 daemon-online-mcp - 28604318833.18 02 Jul 2026 04:07PM UTC 362
17.74
GitHub Action Run
19 daemon-online-rewind-1 - 28604318833.19 02 Jul 2026 04:09PM UTC 362
21.75
GitHub Action Run
20 daemon-1-core - 28604318833.20 02 Jul 2026 04:08PM UTC 367
34.79
GitHub Action Run
21 daemon-5-space-agent-other - 28604318833.21 02 Jul 2026 04:08PM UTC 289
25.58
GitHub Action Run
22 daemon-online-rpc-2 - 28604318833.22 02 Jul 2026 04:08PM UTC 362
22.65
GitHub Action Run
23 daemon-online-rpc-4 - 28604318833.23 02 Jul 2026 04:09PM UTC 362
22.32
GitHub Action Run
24 daemon-online-websocket - 28604318833.24 02 Jul 2026 04:08PM UTC 362
17.52
GitHub Action Run
25 daemon-online-agent-sdk - 28604318833.25 02 Jul 2026 04:08PM UTC 362
21.62
GitHub Action Run
26 daemon-online-rpc-1 - 28604318833.26 02 Jul 2026 04:08PM UTC 362
18.5
GitHub Action Run
27 daemon-online-lifecycle - 28604318833.27 02 Jul 2026 04:08PM UTC 362
21.93
GitHub Action Run
28 daemon-0-shared-handlers-workflow - 28604318833.28 02 Jul 2026 04:08PM UTC 367
32.3
GitHub Action Run
Source Files on build 28604318833
  • Tree
  • List 623
  • Changed 16
  • Source Changed 3
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28604318833
  • 773b2f15 on github
  • Prev Build on dev (#28600083195)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc