mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8528] [MERGED] fix(mari): attach images pasted into the message box #8655
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#8655
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/8528
Author: @ylli-selmani
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ylli-selmani
Base:
staging← Head:fix/mari-paste-images📝 Commits (3)
f696c23fix(mari): attach images pasted into the message box380c268fix(mari): keep Send off until every pasted file is read24ac807fix(mari): attach a copied file when its name comes along as text📊 Changes
5 files changed (+50 additions, -4 deletions)
View changed files
📝
docs/home/professor-mari.md(+1 -1)📝
packages/client/src/components/chat/HomeProfessorMariChat.tsx(+6 -2)📝
packages/client/src/components/chat/mari/MariComposer.tsx(+8 -1)📝
packages/client/src/lib/composer-triggers.ts(+18 -0)📝
scripts/regressions/composer-triggers.regression.ts(+17 -0)📄 Description
Linked issue
Closes #8527
Why this change
What changed
onPaste. Files on the clipboard go throughhandleAttachmentUpload, the paperclip's path, so size and type checks and image resizing apply.pastedFilesreturns nothing when the clipboard also has text. Word and Excel copies carry their text plus a picture of it, and those should paste as text. This is a small difference fromChatInput, which attaches any file.isReadingAttachmentsnow clears only when the last read in progress finishes. Send stays off until then.docs/home/professor-mari.md.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent: client
eslint,prettier --check, clienttsc --noEmit,tsc -p scripts/regressions/tsconfig.client-lanes.json, andnode ./scripts/run-regressions.mjs --filter composer-triggerswith newpastedFilescases. A local CodeRabbit round raised the overlapping reads; it is fixed in the second commit.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/home/professor-mari.mdgains one sentence; no[docs-i18n]issue is open for it yet.UI evidence (if applicable)
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.