<feed xmlns='http://www.w3.org/2005/Atom'>
<title>meshbay.git/packages/meshbay-hub/tests/test_chat_scroll_bottom.py, branch 0.15</title>
<subtitle>MeshBay — read-only public mirror</subtitle>
<id>https://git.meshbay.org/meshbay.git/atom?h=0.15</id>
<link rel='self' href='https://git.meshbay.org/meshbay.git/atom?h=0.15'/>
<link rel='alternate' type='text/html' href='https://git.meshbay.org/meshbay.git/'/>
<updated>2026-08-29T11:52:01Z</updated>
<entry>
<title>fix(hub): chat scroll-to-bottom, message loading on group switch, connecting spinner</title>
<updated>2026-08-29T11:52:01Z</updated>
<author>
<name>Christophe Besson</name>
<email>cbesson@gmail.com</email>
</author>
<published>2026-08-29T11:52:01Z</published>
<link rel='alternate' type='text/html' href='https://git.meshbay.org/meshbay.git/commit/?id=c4813d1aaf1f4fdf3eb9dc07909f324f5745544d'/>
<id>urn:sha1:c4813d1aaf1f4fdf3eb9dc07909f324f5745544d</id>
<content type='text'>
Three regressions fixed in ChatPanel:

- Scroll pinning: layout effect now depends on [messages, hasMore] so the
  "load older" button appearance triggers a re-pin; setHasMore is called
  before setMessages to avoid an intermediate render without the button;
  fit() is wrapped in fitAndPin() so panel resizing re-pins the scroll.

- Message loading on group switch: fetch effect depends on the status prop
  instead of transportRef.current?.connected to avoid racing with
  GroupPage's cleanup; loadedRef resets on fetch failure so a retry works.

- Connecting spinner restored in the Chat tab empty state.

Adds structural regression tests (test_chat_scroll_bottom.py) that lock
the dependency arrays and setState ordering so these invariants break
loudly in CI.

Co-Authored-By: Claude Opus 4.6 &lt;noreply@anthropic.com&gt;
</content>
</entry>
</feed>
