open-swe/ui/src/lib/agents
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
..
api.ts fix: prevent thread prefetches from marking threads viewed (#1456) 2026-06-08 14:41:18 -07:00
cron.ts feat: add scheduled web agents (#1422) 2026-06-05 02:20:24 +00:00
pendingPrompts.ts feat: support dashboard chat images (#1435) 2026-06-06 11:50:24 -07:00
queries.ts fix: prevent thread prefetches from marking threads viewed (#1456) 2026-06-08 14:41:18 -07:00
types.ts fix: update sidebar thread activity indicators (#1441) 2026-06-08 10:38:31 -07:00
useModelOptions.ts feat: Add Fireworks model provider (#1415) 2026-06-04 21:59:47 +00:00
useThreadStream.ts feat: add Agents chat UI for cloud threads (#1323) 2026-05-22 18:15:59 +00:00