mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2342] [MERGED] Fix chat branch display labels #5545
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5545
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2342
Author: @Promansis
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/5/2026
Merged by: @Promansis
Base:
refactor← Head:fix/issue-2276-branch-labels📝 Commits (1)
18ae3e9Fix chat branch display labels📊 Changes
2 files changed (+75 additions, -6 deletions)
View changed files
📝
src-tauri/src/commands/storage/chats.rs(+72 -4)📝
src/features/modes/shared/chat-ui/components/ChatBranchSelector.tsx(+3 -2)📄 Description
Linked issue
Closes #2276
Why this change
Refactor branch creation stored the new branch label by mutating the chat's stable
namefield to{base_name} Branch, while Manage Chat Files renames and displays branch labels throughmetadata.branchName. That let newly created and renamed branch labels drift between storage, Manage Chat Files, and the in-chat branch selector.What changed
namewhen creating a branch.metadata.branchName: "New Branch"after pruning future summary metadata.getChatDisplayName, matching Manage Chat Files.Refactor impact
Primary owner:
Rust storage, shared mode UI.
Impact areas reviewed:
src-tauri/src/commands/storage/chats.rs.Boundary notes:
src-tauri.src/features/modes/shared/chat-ui.Pressure points touched:
ChatBranchSelector.branch_chat.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
cargo test --manifest-path src-tauri/Cargo.toml branch_chat_passed: 5 tests, includingbranch_chat_preserves_stable_name_and_sets_branch_display_name.pnpm typecheckpassed.pnpm checkran through line endings, scratch, architecture, frontend, Rust, docs, discovery, launcher safety, and unused gates. The session ended immediately after starting the final unused gate, sopnpm check:unusedwas rerun separately and passed.Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
This fixes existing branch label parity and does not add a new discoverable feature.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
Not captured. The UI change routes branch selector text through the same display-name helper already used by Manage Chat Files; storage and typecheck proof are included above.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.