[PR #328] [MERGED] feat: add single-tracker refresh controls in roleplay HUD #4561

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/328
Author: @Xelvanis
Created: 4/30/2026
Status: ✅ Merged
Merged: 5/3/2026
Merged by: @LukaTheHero

Base: main ← Head: feat/single-tracker-refresh


📝 Commits (1)

  • 9e29d41 feat: add per-tracker refresh controls in roleplay HUD panels

📊 Changes

4 files changed (+275 additions, -54 deletions)

View changed files

📝 packages/client/src/components/chat/ChatArea.tsx (+11 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+6 -0)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+87 -12)
📝 packages/client/src/components/chat/RoleplayHUDPanels.tsx (+171 -42)

📄 Description

Linked issue

Closes #327

Why this change

  • Add more granular control over tracker updates in roleplay/game chats: users can refresh one tracker (world state, persona stats, characters, quests, custom) without rerunning the entire tracker set, which can overwrite unrelated manual edits.

What changed

  • Added a onRerunSingleTracker(agentType) callback from ChatArea → ChatRoleplaySurface → RoleplayHUD.
  • Added small per-section refresh buttons in the Roleplay HUD panels (world state, persona stats, character tracker, quests, custom tracker) that trigger rerun of just that tracker when available.
  • Reruns are guarded when streaming/agents are processing and only allowed for enabled tracker agents.

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

  • Started the app and opened a roleplay chat with trackers enabled.
  • Opened each HUD panel section (World State, Persona Stats, Characters, Quests, Custom Tracker) and confirmed the refresh icon/button is present for each panel.
  • Clicked each section refresh and confirmed it reruns only that tracker (and does not retrigger the full tracker set).
  • Confirmed refresh controls are disabled/no-op while streaming and while agents are processing.
  • Checked mobile viewport to ensure buttons don’t overflow and remain tappable.
  • Checked light/dark themes for contrast and layout (ow, my eyes).

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)

Screenshot 2026-04-30 214934 Screenshot 2026-04-30 233901

Summary by CodeRabbit

  • New Features

    • Per-tracker refresh controls to retry individual tracker sections (Quests, Characters, Persona Stats, World, Custom) from the HUD.
    • HUD now disables tracker actions while streaming or agents are busy and shows a spinner state.
  • Bug Fixes

    • Prevents reruns when there’s no active chat, during streaming, or while agents are processing.

🔄 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/328 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 4/30/2026 **Status:** ✅ Merged **Merged:** 5/3/2026 **Merged by:** [@LukaTheHero](https://github.com/LukaTheHero) **Base:** `main` ← **Head:** `feat/single-tracker-refresh` --- ### 📝 Commits (1) - [`9e29d41`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9e29d41df847b7ae9d32574cb273aa6f17489316) feat: add per-tracker refresh controls in roleplay HUD panels ### 📊 Changes **4 files changed** (+275 additions, -54 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatArea.tsx` (+11 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+6 -0) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+87 -12) 📝 `packages/client/src/components/chat/RoleplayHUDPanels.tsx` (+171 -42) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #327 ## Why this change - Add **more granular control** over tracker updates in roleplay/game chats: users can refresh **one** tracker (world state, persona stats, characters, quests, custom) without rerunning the entire tracker set, which can overwrite unrelated manual edits. ## What changed - Added a `onRerunSingleTracker(agentType)` callback from `ChatArea` → `ChatRoleplaySurface` → `RoleplayHUD`. - Added small **per-section refresh buttons** in the Roleplay HUD panels (world state, persona stats, character tracker, quests, custom tracker) that trigger rerun of just that tracker when available. - Reruns are **guarded** when streaming/agents are processing and only allowed for **enabled tracker agents**. ## Validation - [X] `pnpm check` passes locally - [X] Container (Docker / Podman) built and ran without issue - [X] Ran the app, clicked through the changes manually - [X] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [X] Above manual verification completed (describe below) - [X] Read and followed `CONTRIBUTING.md` ### Manual verification notes - [X] Started the app and opened a roleplay chat with trackers enabled. - [X] Opened each HUD panel section (World State, Persona Stats, Characters, Quests, Custom Tracker) and confirmed the refresh icon/button is present for each panel. - [X] Clicked each section refresh and confirmed it reruns only that tracker (and does not retrigger the full tracker set). - [X] Confirmed refresh controls are disabled/no-op while streaming and while agents are processing. - [X] Checked mobile viewport to ensure buttons don’t overflow and remain tappable. - [X] Checked light/dark themes for contrast and layout (ow, my eyes). ## Docs and release impact - [X] 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) <img width="402" height="75" alt="Screenshot 2026-04-30 214934" src="https://github.com/user-attachments/assets/696a1dd2-d708-4414-a43b-ff68570bd8ce" /> <img width="393" height="55" alt="Screenshot 2026-04-30 233901" src="https://github.com/user-attachments/assets/351067e1-a75b-4d61-a886-40e18a575de6" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Per-tracker refresh controls to retry individual tracker sections (Quests, Characters, Persona Stats, World, Custom) from the HUD. * HUD now disables tracker actions while streaming or agents are busy and shows a spinner state. * **Bug Fixes** * Prevents reruns when there’s no active chat, during streaming, or while agents are processing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:45 +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#4561
No description provided.