open-swe/ui/src/lib
Johannes du Plessis 8fc06dac8a
fix: prevent thread prefetches from marking threads viewed (#1456)
* fix: prevent thread prefetches from marking threads viewed

Sidebar prefetches now request thread details with mark_viewed=false so
loading /agents no longer clears the unread/finished indicator for
threads the user has not opened.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>

* fix: always refetch active thread on mount to mark viewed

Prefetches cache details fetched with mark_viewed=false under the same
query key as the active thread. Forcing refetchOnMount="always" ensures
opening a thread issues a mark_viewed=true request, so last_viewed_* is
recorded even when prefetched data is still fresh.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
2026-06-08 14:41:18 -07:00
..
agents fix: prevent thread prefetches from marking threads viewed (#1456) 2026-06-08 14:41:18 -07:00
api.ts fix: reject images for text-only models (#1439) 2026-06-06 13:09:31 -07:00
profile.ts feat: Configure subagent model defaults (#1342) 2026-05-27 12:34:52 -07:00
query.ts feat: open-swe dashboard for per-user profile config (#1302) 2026-05-15 11:23:53 -07:00
repo.test.ts feat: tune reviewer for precision — web/wiki tools + recalibrated prompt (#1312) 2026-05-20 18:35:00 +00:00
repo.ts feat: tune reviewer for precision — web/wiki tools + recalibrated prompt (#1312) 2026-05-20 18:35:00 +00:00
session.ts feat: open-swe dashboard for per-user profile config (#1302) 2026-05-15 11:23:53 -07:00
theme.ts feat: add dark mode support to web UI (#1436) 2026-06-06 12:06:31 -07:00
utils.ts feat: open-swe dashboard for per-user profile config (#1302) 2026-05-15 11:23:53 -07:00