[PR #3203] [MERGED] [codex] Support Professor Mari file attachments #5843

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3203
Author: @SpicyMarinara
Created: 7/4/2026
Status: ✅ Merged
Merged: 7/4/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/professor-mari-file-attachments


📝 Commits (1)

  • e3edcf0 Support Professor Mari file attachments

📊 Changes

2 files changed (+300 additions, -194 deletions)

View changed files

📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+274 -172)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+26 -22)

📄 Description

What changed

Professor Mari's chat composer now uses a paperclip as the first left-side control and accepts images, PDFs, and common readable text/data files instead of images only.

The workspace prompt path now preserves those attachments for Professor Mari: images continue through vision inputs, PDFs are passed as provider-native file inputs where supported, and readable text/data files are appended into the prompt as attached file blocks.

Why

Professor Mari previously exposed an image-only attachment flow. That made the UI too narrow for workspace help where PDFs, JSON, Markdown, logs, and similar files are natural inputs.

Notes

No linked issue was provided for this small maintainer-requested change. One should be opened before final submission if the project board needs issue tracking for it.

Validation

  • git diff --check
  • pnpm --filter @marinara-engine/server lint
  • pnpm --filter @marinara-engine/client lint
  • pnpm build:client

Manual verification

  • Verify Professor Mari's paperclip appears as the first composer icon in both floating and embedded chat.
  • Verify attaching an image, PDF, and text file shows the expected previews and sends successfully.
  • Verify the connection menu still opens from the link icon beside the paperclip.

Summary by CodeRabbit

  • New Features

    • Chat attachments now support general files, including images, PDFs, and text-like documents.
    • Updated attachment previews and message rendering to show images as thumbnails and files as downloadable items.
  • Bug Fixes

    • Improved attachment handling when sending and restoring chat messages so multiple file types work consistently.
    • Adjusted the chat controls and attachment picker to support the new multi-file flow.

🔄 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/3203 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/4/2026 **Status:** ✅ Merged **Merged:** 7/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/professor-mari-file-attachments` --- ### 📝 Commits (1) - [`e3edcf0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e3edcf03380efeb47100046bcff6a4309880e69e) Support Professor Mari file attachments ### 📊 Changes **2 files changed** (+300 additions, -194 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+274 -172) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+26 -22) </details> ### 📄 Description ## What changed Professor Mari's chat composer now uses a paperclip as the first left-side control and accepts images, PDFs, and common readable text/data files instead of images only. The workspace prompt path now preserves those attachments for Professor Mari: images continue through vision inputs, PDFs are passed as provider-native file inputs where supported, and readable text/data files are appended into the prompt as attached file blocks. ## Why Professor Mari previously exposed an image-only attachment flow. That made the UI too narrow for workspace help where PDFs, JSON, Markdown, logs, and similar files are natural inputs. ## Notes No linked issue was provided for this small maintainer-requested change. One should be opened before final submission if the project board needs issue tracking for it. ## Validation - `git diff --check` - `pnpm --filter @marinara-engine/server lint` - `pnpm --filter @marinara-engine/client lint` - `pnpm build:client` ## Manual verification - Verify Professor Mari's paperclip appears as the first composer icon in both floating and embedded chat. - Verify attaching an image, PDF, and text file shows the expected previews and sends successfully. - Verify the connection menu still opens from the link icon beside the paperclip. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Chat attachments now support general files, including images, PDFs, and text-like documents. * Updated attachment previews and message rendering to show images as thumbnails and files as downloadable items. * **Bug Fixes** * Improved attachment handling when sending and restoring chat messages so multiple file types work consistently. * Adjusted the chat controls and attachment picker to support the new multi-file flow. <!-- 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-22 04:20:05 +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#5843
No description provided.