mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #813] [MERGED] Show unread state for background autonomous messages #4784
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4784
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/813
Author: @cha1latte
Created: 5/13/2026
Status: ✅ Merged
Merged: 5/14/2026
Merged by: @cha1latte
Base:
main← Head:issue-699-unread-autonomy📝 Commits (5)
55ed383Add autonomous unread state2c1adfeMerge upstream main into issue 699 unread autonomyb1bfdd2Address review feedback: harden autonomous unread cleanup5fbc3abMerge remote-tracking branch 'upstream/main' into issue-699-unread-autonomyeea5518Fix combat voice audio element calls📊 Changes
13 files changed (+320 additions, -5 deletions)
View changed files
➕
docs/pr-evidence/issue-699/unread-after.png(+0 -0)➕
docs/pr-evidence/issue-699/unread-before.png(+0 -0)📝
packages/client/src/components/game/GameCombatUI.tsx(+5 -3)📝
packages/client/src/components/layout/AppShell.tsx(+27 -0)📝
packages/client/src/components/layout/ChatSidebar.tsx(+29 -0)📝
packages/client/src/hooks/use-background-autonomous.ts(+10 -0)📝
packages/client/src/hooks/use-chats.ts(+27 -0)📝
packages/client/src/stores/chat.store.ts(+47 -0)📝
packages/server/src/routes/chats.routes.ts(+16 -0)📝
packages/server/src/services/storage/chats.storage.ts(+58 -2)➕
packages/server/test/issue-699-autonomous-unread.test.ts(+89 -0)📝
packages/shared/src/schemas/chat.schema.ts(+6 -0)📝
packages/shared/src/types/chat.ts(+6 -0)📄 Description
Linked issue
Closes #699
Why this change
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --dir packages/server exec tsx --import ./test/setup-env.ts --test test/issue-699-autonomous-unread.test.tspassed.pnpm checkpassed.http://127.0.0.1:7969, seededIssue 699 Proof Chat, marked autonomous unread count3through the API, verified the sidebar badge displayed, clicked the chat, and verified the badge disappeared and/api/chats/:idno longer hadautonomousUnreadCount.Docs and release impact
UI evidence (if applicable)
Unread badge visible before opening the chat:
Unread badge cleared after opening the chat:
Summary by CodeRabbit
New Features
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.