Skip to content

feat(web): add unread session indicators#273

Draft
webwww123 wants to merge 1 commit intotiann:mainfrom
webwww123:feat/session-unread-state
Draft

feat(web): add unread session indicators#273
webwww123 wants to merge 1 commit intotiann:mainfrom
webwww123:feat/session-unread-state

Conversation

@webwww123
Copy link

Summary

  • add a local read/unread state for sessions in the web app
  • mark a session as unread when it has newer updates than the last recorded read timestamp
  • clear the unread state when the session is opened
  • keep groups with unread sessions expanded by default so the new activity is visible

Why

Issue #270 asks for a simple way to notice when another session has finished or produced new output.

This PR keeps the implementation intentionally small and web-only:

  • read state is stored in localStorage
  • no hub / protocol changes
  • no production deployment changes

Validation

  • docker run --rm -v /root/sandbox/hapi-pr:/workspace -w /workspace oven/bun:1 sh -lc "bun install && cd web && bunx vitest run src/lib/sessionReadState.test.ts && bun run typecheck"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant