mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3119] [Issue]: "Manage Chat Files" drawer is fully built but has no button to open it (dead code) #1670
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#1670
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?
Originally created by @kolacheee on GitHub (Jun 30, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3119
Originally assigned to: @SpicyMarinara on GitHub.
What's wrong
The "Manage Chat Files" drawer (
ChatFilesDrawer) is fully built and ships in the bundle, but there's no way for a user to open it. There's no toolbar button, slash command, or shortcut that triggers it, so a complete feature is dead code in the running app.The drawer is meant to let you browse, switch between, rename, export, import, and delete the saved chat files for the current character — Marinara's equivalent of SillyTavern's "Manage chat files" (the component header even says so).
How to reproduce (try it yourself)
You'll see: there's no entry point anywhere — the drawer can never appear.
Expected: a toolbar button opens
ChatFilesDrawerso you can switch between / rename / delete / import / export the chat files in the current group, like SillyTavern's "Manage chat files."To confirm the component itself is complete: temporarily make it render — e.g. change
ChatConversationSurface.tsx:192fromfilesOpen={false}tofilesOpen={true}, or initializefilesOpentotrueinChatArea.tsx:427— and the working drawer appears.Where it is
packages/client/src/components/chat/ChatFilesDrawer.tsx(ChatFilesDrawer, line 29) — import/switch/export/delete/rename of the group's chats, with the header comment "Manage Chat Files … Like SillyTavern's 'Manage chat files' feature" (lines 1-4).filesOpenis true:packages/client/src/components/chat/ChatCommonOverlays.tsx:314—{filesOpen && <ChatFilesDrawer chat={chat} open={filesOpen} onClose={onCloseFiles} />}.packages/client/src/components/chat/ChatArea.tsx:427declaresconst [filesOpen, setFilesOpen] = useState(false), andsetFilesOpenis only ever called withfalse(514 reset, 2463/2662 close).setFilesOpen(true)appears nowhere, and there is anonCloseFilesprop but noonOpenFiles.packages/client/src/components/chat/ChatConversationSurface.tsx:192hard-codesfilesOpen={false}and:210onCloseFiles={() => undefined}.For contrast, the sibling Gallery drawer is wired correctly and is the pattern to copy:
galleryOpenstate (ChatArea.tsx:428) is opened viasetGalleryOpen(true)(493), threaded through anonOpenGalleryprop, and triggered by<ChatToolbarButton icon={<Image/>} title="Gallery" onClick={onOpenGallery} />(ChatRoleplaySurface.tsx:1551). Files has every equivalent piece except the open-prop and the button.What's happening
The drawer was implemented and its render + close paths were wired, but the open trigger (a toolbar button + an
onOpenFileshandler that callssetFilesOpen(true)) was never added, and the conversation surface passes a hard-codedfalse. SofilesOpenis permanentlyfalse.Suggested fix
Mirror the Gallery wiring for Files:
handleOpenFiles(or reusesetFilesOpen(true)) inChatArea.tsxand pass it down as anonOpenFilesprop alongside the existingonCloseFiles.onOpenFilesthroughChatRoleplaySurfaceandChatConversationSurface(and replace the hard-codedfilesOpen={false}/onCloseFiles={() => undefined}inChatConversationSurface.tsx:192/210with the real state + handlers).<ChatToolbarButton>(e.g. aFileText/FolderOpenicon, title "Chat Files") next to the Gallery button that callsonOpenFiles.No changes to
ChatFilesDraweritself are needed — it already acceptschat/open/onClose.Reported on v2.0.8; confirmed still present on current
main(v2.0.9).AI-investigated against the current tree (v2.0.9) from the user's report; cited lines read and confirmed. Please verify before fixing.
@SpicyMarinara commented on GitHub (Jul 2, 2026):
Replaced by the Branches menu, that one was obsolete. I'll remove the leftover code.
@SpicyMarinara commented on GitHub (Jul 2, 2026):
Codex is taking this in branch codex/issue-sweep-3119-3135 for a staging-targeted cleanup sweep.
@SpicyMarinara commented on GitHub (Jul 2, 2026):
Fix is ready in PR #3138 with CI passing. This issue will close automatically when the PR merges into staging.