[PR #1137] [MERGED] Hotfix tracker alias lookup, NPC avatars, and HUD temperature units #4940

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1137
Author: @Xelvanis
Created: 5/24/2026
Status: ✅ Merged
Merged: 5/24/2026
Merged by: @Xelvanis

Base: main ← Head: hotfix/1.6.1-tracker-alias-avatar-hud-temp


📝 Commits (1)

  • 7c6190a Fix tracker aliases, avatars, HUD temps, and changelog

📊 Changes

9 files changed (+182 additions, -63 deletions)

View changed files

📝 CHANGELOG.md (+15 -0)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+19 -37)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+1 -1)
📝 packages/client/src/components/panels/settings/TrackerCardColorSettings.tsx (+17 -11)
📝 packages/client/src/features/tracker-panel/hooks/use-tracker-sprite-lookup.ts (+11 -6)
📝 packages/client/src/features/tracker-panel/lib/tracker-metadata.ts (+31 -0)
📝 packages/client/src/lib/character-display.ts (+40 -0)
📝 packages/server/src/routes/generate.routes.ts (+8 -4)
📝 packages/server/src/routes/generate/generate-route-utils.ts (+40 -4)

📄 Description

Linked issue

No linked issue found. Maintainer-requested mainline hotfix for legacy 1.6.1.

Why this change

  • Fixes tracker card resolution in group chats where the chat/tracker name can be an alias that differs from the character card's main display name.
  • Keeps manually uploaded NPC tracker portraits and portrait framing from resetting to emoji/defaults when agents refresh tracker state.
  • Keeps the Roleplay HUD temperature chip aligned with the shared Tracker Panel Celsius/Fahrenheit setting.

What changed

  • Added shared character lookup aliases and updated tracker sprite/color lookup to prioritize active-chat exact names, active-chat aliases, fallback exact names, then fallback aliases.
  • Preserved NPC avatar URLs and portrait focus/zoom fields during tracker refresh writes, including first-snapshot generation writes.
  • Reused shared world-state display helpers in the Roleplay HUD and clarified the temperature-unit settings tooltip.
  • Recorded the tracker hotfix under the 1.6.1 changelog and backfilled recent legacy release notes without PR-link tails.

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

  • pnpm check passed locally on this branch. The server build emitted the existing Node [DEP0190] deprecation warning, but the command completed successfully.
  • pnpm version:check passed.
  • git diff --check origin/main passed.
  • Earlier branch validation included a Chromium browser pass with a seeded group chat where the tracker alias differed from the character card name, verifying lookup resolved to the intended card/avatar.
  • Earlier targeted sanity checks covered character alias lookup ordering and NPC avatar preservation helper behavior.
  • Docker/container validation was not run.

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)

CHANGELOG.md was updated for the planned legacy 1.6.1 hotfix. No version bump is included.

UI evidence (if applicable)

No new screenshots attached. The relevant UI behavior was exercised in the earlier Chromium pass for the tracker alias scenario.

Summary by CodeRabbit

  • Bug Fixes

    • Temperature unit setting now consistently applies to both Tracker Panel and Roleplay HUD displays.
    • Improved character lookup with alias support for better character matching.
    • Enhanced preservation of tracker character UI properties during updates.
  • Documentation

    • Updated CHANGELOG with new entries for versions 1.6.1, 1.6.0, and 1.5.9.

Review Change Stack


🔄 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/1137 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/24/2026 **Status:** ✅ Merged **Merged:** 5/24/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `main` ← **Head:** `hotfix/1.6.1-tracker-alias-avatar-hud-temp` --- ### 📝 Commits (1) - [`7c6190a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7c6190aabdc1aa9abfdd90710d53e8a25e09485b) Fix tracker aliases, avatars, HUD temps, and changelog ### 📊 Changes **9 files changed** (+182 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+15 -0) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+19 -37) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+1 -1) 📝 `packages/client/src/components/panels/settings/TrackerCardColorSettings.tsx` (+17 -11) 📝 `packages/client/src/features/tracker-panel/hooks/use-tracker-sprite-lookup.ts` (+11 -6) 📝 `packages/client/src/features/tracker-panel/lib/tracker-metadata.ts` (+31 -0) 📝 `packages/client/src/lib/character-display.ts` (+40 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+8 -4) 📝 `packages/server/src/routes/generate/generate-route-utils.ts` (+40 -4) </details> ### 📄 Description <!-- 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 No linked issue found. Maintainer-requested mainline hotfix for legacy 1.6.1. ## Why this change - Fixes tracker card resolution in group chats where the chat/tracker name can be an alias that differs from the character card's main display name. - Keeps manually uploaded NPC tracker portraits and portrait framing from resetting to emoji/defaults when agents refresh tracker state. - Keeps the Roleplay HUD temperature chip aligned with the shared Tracker Panel Celsius/Fahrenheit setting. ## What changed - Added shared character lookup aliases and updated tracker sprite/color lookup to prioritize active-chat exact names, active-chat aliases, fallback exact names, then fallback aliases. - Preserved NPC avatar URLs and portrait focus/zoom fields during tracker refresh writes, including first-snapshot generation writes. - Reused shared world-state display helpers in the Roleplay HUD and clarified the temperature-unit settings tooltip. - Recorded the tracker hotfix under the 1.6.1 changelog and backfilled recent legacy release notes without PR-link tails. ## Validation - [x] `pnpm check` passes locally - [ ] 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 - `pnpm check` passed locally on this branch. The server build emitted the existing Node `[DEP0190]` deprecation warning, but the command completed successfully. - `pnpm version:check` passed. - `git diff --check origin/main` passed. - Earlier branch validation included a Chromium browser pass with a seeded group chat where the tracker alias differed from the character card name, verifying lookup resolved to the intended card/avatar. - Earlier targeted sanity checks covered character alias lookup ordering and NPC avatar preservation helper behavior. - Docker/container validation was not run. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) `CHANGELOG.md` was updated for the planned legacy 1.6.1 hotfix. No version bump is included. ## UI evidence (if applicable) No new screenshots attached. The relevant UI behavior was exercised in the earlier Chromium pass for the tracker alias scenario. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Temperature unit setting now consistently applies to both Tracker Panel and Roleplay HUD displays. * Improved character lookup with alias support for better character matching. * Enhanced preservation of tracker character UI properties during updates. * **Documentation** * Updated CHANGELOG with new entries for versions 1.6.1, 1.6.0, and 1.5.9. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1137?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- 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:11:52 +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#4940
No description provided.