[PR #2594] [CLOSED] ON HOLD feat(chat): add conversation presence card #5679

Closed
opened 2026-10-22 04:18:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2594
Author: @Gunterlie
Created: 6/16/2026
Status: ❌ Closed

Base: staging ← Head: feature-conversation-presence-card


📝 Commits (2)

  • f6f48f1 feat(chat): add conversation presence card
  • f6bde7a Merge branch 'staging' into feature-conversation-presence-card

📊 Changes

18 files changed (+1071 additions, -308 deletions)

View changed files

📝 packages/client/src/components/chat/ChatArea.tsx (+9 -2)
📝 packages/client/src/components/chat/ChatCommonOverlays.tsx (+4 -0)
📝 packages/client/src/components/chat/ChatConversationSurface.tsx (+3 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+75 -58)
➕ packages/client/src/components/chat/ConversationPresenceCard.tsx (+662 -0)
📝 packages/client/src/components/chat/ConversationView.tsx (+11 -132)
📝 packages/client/src/features/chat-settings/ChatSettingsSection.tsx (+7 -3)
📝 packages/client/src/hooks/use-autonomous-messaging.ts (+2 -23)
📝 packages/client/src/hooks/use-background-autonomous.ts (+85 -35)
📝 packages/client/src/hooks/use-generate.ts (+18 -2)
📝 packages/client/src/stores/chat.store.ts (+12 -5)
📝 packages/server/src/routes/conversation.routes.ts (+76 -23)
📝 packages/server/src/routes/generate.routes.ts (+29 -12)
📝 packages/server/src/services/conversation/autonomous.service.ts (+9 -7)
📝 packages/server/src/services/conversation/schedule.service.ts (+42 -6)
📝 packages/server/src/services/conversation/server-autonomous-scheduler.service.ts (+1 -0)
📝 packages/server/src/services/generation/conversation-context-utils.ts (+13 -0)
📝 packages/shared/src/types/chat.ts (+13 -0)

📄 Description

ON HOLD till I try something different with schedules.

Linked issue

Related to #2595

Why this change

  • Conversation chats currently hide character availability and activity too deeply, especially in group chats where autonomous replies, delayed responses, and offline behavior need to map to the character expected to respond.
  • Users need compact per-chat presence controls without editing global character data or duplicating the full schedule editor in the chat chrome.

What changed

  • Added a compact conversation presence card/popover for current status, manual activity overrides, reset, and schedule editing entry.
  • Added per-chat conversation status overrides, including manual Offline, and server-side effective status resolution.
  • Wired effective presence into autonomous messaging, busy-delay, offline handling, generation context, and selected-character targeting.
  • Preserved per-character delayed state so changing one character back to Available clears only that pending response.
  • Deep-linked Chat Settings to the Autonomous Messaging schedule controls.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Automated local validation passed: pnpm check, git diff --check, focused presence API smoke, focused catch-up target API smoke, and expanded temporary presence logic matrix.
  • Focused temporary logic matrix passed for effective status overrides, manual Offline, expired overrides, direct delays, autonomous eligibility, group targeting, exchange eligibility, generation-in-progress gating, and follow-up caps.
  • Focused API smoke confirmed manual-online catch-up targeting prefers a manually returned character over another scheduled-online group member.
  • Code-path review confirms changing a manual status only patches chat metadata, syncs /conversation/status/:chatId, and optionally clears matching delayed UI; it does not directly call /generate.
  • Code-path review confirms active/background autonomous generation still starts only after /conversation/autonomous/check or /conversation/autonomous/exchange returns a target character.
  • Manual browser verification still needed: presence card closed/open states on desktop and mobile.
  • Manual browser verification still needed: manual status text saves on blur and Enter.
  • Manual browser verification still needed: manual Offline prevents generation and Reset restores schedule behavior.
  • Manual browser verification still needed: autonomous generation targets the selected character in group conversations.
  • Manual browser verification still needed: delayed indicators clear only for the matching character.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2594 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 6/16/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `feature-conversation-presence-card` --- ### 📝 Commits (2) - [`f6f48f1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f6f48f1d8e795107ddad7c102af655bccf73b1b4) feat(chat): add conversation presence card - [`f6bde7a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f6bde7ab8a10fe6f7aa3a593d1b9a59e1740e7d4) Merge branch 'staging' into feature-conversation-presence-card ### 📊 Changes **18 files changed** (+1071 additions, -308 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatArea.tsx` (+9 -2) 📝 `packages/client/src/components/chat/ChatCommonOverlays.tsx` (+4 -0) 📝 `packages/client/src/components/chat/ChatConversationSurface.tsx` (+3 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+75 -58) ➕ `packages/client/src/components/chat/ConversationPresenceCard.tsx` (+662 -0) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+11 -132) 📝 `packages/client/src/features/chat-settings/ChatSettingsSection.tsx` (+7 -3) 📝 `packages/client/src/hooks/use-autonomous-messaging.ts` (+2 -23) 📝 `packages/client/src/hooks/use-background-autonomous.ts` (+85 -35) 📝 `packages/client/src/hooks/use-generate.ts` (+18 -2) 📝 `packages/client/src/stores/chat.store.ts` (+12 -5) 📝 `packages/server/src/routes/conversation.routes.ts` (+76 -23) 📝 `packages/server/src/routes/generate.routes.ts` (+29 -12) 📝 `packages/server/src/services/conversation/autonomous.service.ts` (+9 -7) 📝 `packages/server/src/services/conversation/schedule.service.ts` (+42 -6) 📝 `packages/server/src/services/conversation/server-autonomous-scheduler.service.ts` (+1 -0) 📝 `packages/server/src/services/generation/conversation-context-utils.ts` (+13 -0) 📝 `packages/shared/src/types/chat.ts` (+13 -0) </details> ### 📄 Description ON HOLD till I try something different with schedules. <!-- Target branch: `staging` --> <!-- The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Related to #2595 ## Why this change - Conversation chats currently hide character availability and activity too deeply, especially in group chats where autonomous replies, delayed responses, and offline behavior need to map to the character expected to respond. - Users need compact per-chat presence controls without editing global character data or duplicating the full schedule editor in the chat chrome. ## What changed - Added a compact conversation presence card/popover for current status, manual activity overrides, reset, and schedule editing entry. - Added per-chat conversation status overrides, including manual Offline, and server-side effective status resolution. - Wired effective presence into autonomous messaging, busy-delay, offline handling, generation context, and selected-character targeting. - Preserved per-character delayed state so changing one character back to Available clears only that pending response. - Deep-linked Chat Settings to the Autonomous Messaging schedule controls. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Automated local validation passed: `pnpm check`, `git diff --check`, focused presence API smoke, focused catch-up target API smoke, and expanded temporary presence logic matrix. - Focused temporary logic matrix passed for effective status overrides, manual Offline, expired overrides, direct delays, autonomous eligibility, group targeting, exchange eligibility, generation-in-progress gating, and follow-up caps. - Focused API smoke confirmed manual-online catch-up targeting prefers a manually returned character over another scheduled-online group member. - Code-path review confirms changing a manual status only patches chat metadata, syncs `/conversation/status/:chatId`, and optionally clears matching delayed UI; it does not directly call `/generate`. - Code-path review confirms active/background autonomous generation still starts only after `/conversation/autonomous/check` or `/conversation/autonomous/exchange` returns a target character. - Manual browser verification still needed: presence card closed/open states on desktop and mobile. - Manual browser verification still needed: manual status text saves on blur and Enter. - Manual browser verification still needed: manual Offline prevents generation and Reset restores schedule behavior. - Manual browser verification still needed: autonomous generation targets the selected character in group conversations. - Manual browser verification still needed: delayed indicators clear only for the matching character. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:18:25 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5679
No description provided.