[Bug]: Last 2 messages disappear from chat thread (v0.13.4/0.13.5)
Summary
In any chat thread, after sending a couple of messages (usually after 4-5 user messages), the last 2 messages disappear from the visible thread. Earlier messages remain visible. The missing messages reappear after switching to another thread and returning.
Started after: Update to v0.13.4/0.13.5 (not present in previous version)
To Reproduce
- Open any chat thread in OpenWork
- Send 2-3 messages
- Observe: Last 2 messages disappear from view (earlier ones still visible)
- Switch to another thread
- Switch back → missing messages reappear
Expected behavior
All messages should remain visible in the thread after sending, without disappearing.
Actual behavior
Last 2 messages disappear from chat thread view after sending. Scrollbar doesn't show additional content. Messages reappear only after switching threads.
Screenshots (optional)
OW version & Desktop info (optional)
- OS: macOS 26.4.1
- OW Version: 0.13.4 and 0.13.5
Additional context (optional)
Browser/Console: No errors in DevTools Console (Cmd+Option+I)
Thanks for the comprehensive report, will investigate
@src-opn I updated today to v.13.8 and the issue persists.
Adding a different repro than the OP's, observed on the dev SHA of the #1750 merge commit (674a037) running in a self-hosted web deployment (apps_app + openwork-orchestrator).
Repro:
- Open a session, send several user/agent message pairs (we had 4 exchanges).
- Close the browser tab/window entirely.
- Re-open the same session URL directly (no thread-switch).
- Result: only the first agent message renders. All subsequent user + agent turns are absent from the visible chat thread.
- Hard-reload the page → all missing messages return.
The OP's repro recovers via thread-switch + return (live cache merge). Our repro doesn't trigger that path because the live cache is gone after browser close; the initial render of the session URL renders against a partial state until forced reload restores it. The "until reload" wording in #1749's summary matches what we observe.
Server-side: messages are persisted (reload retrieves them), so it's a render/snapshot-fetch issue on the initial mount, not data loss.
Confirming @platem's v0.13.8 report: bug persists at our pinned 674a037 (#1750 merge commit) too. No bump path available.
Source: 🗒️ Session 55fb29d8