[PR #610] [MERGED] Fix Connected Chat branch labels #4693

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/610
Author: @cha1latte
Created: 5/9/2026
Status: ✅ Merged
Merged: 5/9/2026
Merged by: @cha1latte

Base: main ← Head: fix/issue-607-connected-chat-branch-label


📝 Commits (1)

  • 619196d Fix connected chat branch labels

📊 Changes

7 files changed (+58 additions, -43 deletions)

View changed files

➕ docs/pr-evidence/issue-607/after.png (+0 -0)
➕ docs/pr-evidence/issue-607/before.png (+0 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+9 -17)
📝 packages/client/src/components/chat/ChatFilesDrawer.tsx (+3 -17)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+5 -2)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+14 -7)
➕ packages/client/src/lib/chat-display.ts (+27 -0)

📄 Description

Linked issue

Closes #607

Why this change

  • Renamed chat branches store their visible branch label in metadata.branchName, but Connected Chat surfaces were still reading the stable chat/thread name. That made a linked renamed branch keep showing the original shared label.

What changed

  • Added a shared client display-name helper that prefers metadata.branchName and falls back to chat.name.
  • Updated Connected Chat / Connected Conversation rows, switch tooltips, and connection pickers to use the branch-aware display name.
  • Reused the same helper in Manage Chat Files so branch label parsing stays consistent.

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

  • Codex reproduced the issue with an isolated temp data directory by creating a conversation, creating a roleplay branch, renaming that branch to Renamed Branch Label, linking the conversation to the renamed branch, and opening Chat Settings. Before the fix, the Connected Chat row displayed Shared Thread.
  • Codex reran the same browser flow after the fix. The Connected Chat row and switch button displayed Renamed Branch Label.
  • Codex checked the fallback edge case where a connected chat has no metadata.branchName; the switch control still displayed the stable chat name Plain Roleplay.
  • pnpm --filter @marinara-engine/client lint passed.
  • pnpm check passed.

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)

No docs or release files changed. This is a client display fix only.

UI evidence (if applicable)

Before:

Connected Chat before fix

After:

Connected Chat after fix


🔄 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/610 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/9/2026 **Status:** ✅ Merged **Merged:** 5/9/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `fix/issue-607-connected-chat-branch-label` --- ### 📝 Commits (1) - [`619196d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/619196d0028fac79022a91a9a9a52ab1d81900c3) Fix connected chat branch labels ### 📊 Changes **7 files changed** (+58 additions, -43 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-607/after.png` (+0 -0) ➕ `docs/pr-evidence/issue-607/before.png` (+0 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+9 -17) 📝 `packages/client/src/components/chat/ChatFilesDrawer.tsx` (+3 -17) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+5 -2) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+14 -7) ➕ `packages/client/src/lib/chat-display.ts` (+27 -0) </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 #607 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Renamed chat branches store their visible branch label in `metadata.branchName`, but Connected Chat surfaces were still reading the stable chat/thread `name`. That made a linked renamed branch keep showing the original shared label. ## What changed <!-- List the key changes in this PR --> - Added a shared client display-name helper that prefers `metadata.branchName` and falls back to `chat.name`. - Updated Connected Chat / Connected Conversation rows, switch tooltips, and connection pickers to use the branch-aware display name. - Reused the same helper in Manage Chat Files so branch label parsing stays consistent. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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 <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex reproduced the issue with an isolated temp data directory by creating a conversation, creating a roleplay branch, renaming that branch to `Renamed Branch Label`, linking the conversation to the renamed branch, and opening Chat Settings. Before the fix, the Connected Chat row displayed `Shared Thread`. - Codex reran the same browser flow after the fix. The Connected Chat row and switch button displayed `Renamed Branch Label`. - Codex checked the fallback edge case where a connected chat has no `metadata.branchName`; the switch control still displayed the stable chat name `Plain Roleplay`. - `pnpm --filter @marinara-engine/client lint` passed. - `pnpm check` passed. ## 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) No docs or release files changed. This is a client display fix only. ## UI evidence (if applicable) Before: ![Connected Chat before fix](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/619196d0028fac79022a91a9a9a52ab1d81900c3/docs/pr-evidence/issue-607/before.png) After: ![Connected Chat after fix](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/619196d0028fac79022a91a9a9a52ab1d81900c3/docs/pr-evidence/issue-607/after.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:09: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#4693
No description provided.