[PR #5276] [MERGED] Fix renamed Roleplay branch display names #6698

Closed
opened 2026-10-23 04:12:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5276
Author: @SpicyMarinara
Created: 8/19/2026
Status: ✅ Merged
Merged: 8/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/branch-display-names-5268


📝 Commits (4)

  • 7341226 fix roleplay branch display names
  • 03b1cd6 keep branch regression diff focused
  • b0d77f7 Merge staging into fix/branch-display-names-5268
  • 57905b8 test branch display cleanup failures

📊 Changes

5 files changed (+62 additions, -10 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+34 -0)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+9 -8)
📝 packages/server/src/services/capability-packages/capability-persistence.service.ts (+3 -2)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+15 -0)

📄 Description

Why

Renamed Roleplay branches still appeared under their parent/fallback chat names in the Chats sidebar and capability-package persistence records. Search and alphabetical sorting used the same stale value, making renamed branches hard to find.

Fixes #5268.

What changed

  • reuse the existing branch display-name helper for sidebar rows, search, sorting, and delete copy
  • expose the resolved branch title as the capability chat record name while retaining branch metadata
  • add focused server and desktop/mobile browser regressions
  • add the user-facing changelog entry

Validation

  • Run pnpm check
  • Run the focused capability-package lifecycle regression
  • Manually verify a renamed Roleplay branch appears under its branch name in the desktop Chats sidebar
  • Manually verify sidebar search finds that branch name on desktop
  • Manually verify the same display and search behavior on mobile

Summary by CodeRabbit

  • Bug Fixes

    • Renamed Roleplay branches now consistently display their configured names in chat navigation, sorting, deletion dialogs, and search results.
    • Capability-package chat records now preserve the correct branch name and parent-chat relationship.
  • Tests

    • Added coverage for renamed branch display and Roleplay search discovery.
    • Added regression coverage for capability-package branch metadata.

🔄 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/5276 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/19/2026 **Status:** ✅ Merged **Merged:** 8/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/branch-display-names-5268` --- ### 📝 Commits (4) - [`7341226`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7341226291612a4bdbfe9fef235f8b883e045d5f) fix roleplay branch display names - [`03b1cd6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/03b1cd6d81c3bae2e19cac7ee647ee088b1de911) keep branch regression diff focused - [`b0d77f7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b0d77f7fbb99539528743d8548271421e01111c8) Merge staging into fix/branch-display-names-5268 - [`57905b8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/57905b8dd1b2f9d5c84313992f7037d4e7386412) test branch display cleanup failures ### 📊 Changes **5 files changed** (+62 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+34 -0) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+9 -8) 📝 `packages/server/src/services/capability-packages/capability-persistence.service.ts` (+3 -2) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+15 -0) </details> ### 📄 Description ## Why Renamed Roleplay branches still appeared under their parent/fallback chat names in the Chats sidebar and capability-package persistence records. Search and alphabetical sorting used the same stale value, making renamed branches hard to find. Fixes #5268. ## What changed - reuse the existing branch display-name helper for sidebar rows, search, sorting, and delete copy - expose the resolved branch title as the capability chat record name while retaining branch metadata - add focused server and desktop/mobile browser regressions - add the user-facing changelog entry ## Validation - [ ] Run `pnpm check` - [ ] Run the focused capability-package lifecycle regression - [ ] Manually verify a renamed Roleplay branch appears under its branch name in the desktop Chats sidebar - [ ] Manually verify sidebar search finds that branch name on desktop - [ ] Manually verify the same display and search behavior on mobile <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Renamed Roleplay branches now consistently display their configured names in chat navigation, sorting, deletion dialogs, and search results. * Capability-package chat records now preserve the correct branch name and parent-chat relationship. * **Tests** * Added coverage for renamed branch display and Roleplay search discovery. * Added regression coverage for capability-package branch metadata. <!-- 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-23 04:12:51 +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#6698
No description provided.