[PR #3199] [MERGED] [codex] Smooth typewriter and address chat issue sweep #5838

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

📋 Pull Request Information

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

Base: staging ← Head: codex/smooth-typewriter-cadence


📝 Commits (3)

  • 7379325 Smooth typewriter stream cadence
  • 7ef9297 Address chat issue sweep
  • 9e98574 Mirror Professor Mari floating attachments

📊 Changes

9 files changed (+600 additions, -36 deletions)

View changed files

📝 packages/client/src/components/chat/ChatInput.tsx (+36 -1)
📝 packages/client/src/components/chat/ConversationInput.tsx (+173 -10)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+242 -13)
📝 packages/client/src/hooks/use-generate.ts (+16 -0)
📝 packages/client/src/hooks/use-throttled-stream-buffer.ts (+14 -4)
📝 packages/server/src/routes/professor-mari-workspace.routes.ts (+12 -0)
📝 packages/server/src/services/agents/knowledge-router.ts (+25 -4)
📝 packages/server/src/services/conversation/awareness.service.ts (+20 -1)
📝 packages/server/src/services/professor-mari/workspace-agent.service.ts (+62 -3)

📄 Description

Why

Smooth streaming in Roleplay regressed into chunked updates, and the current unclaimed issue sweep had several chat-facing bugs that were safe to address together before the next staging pull.

Closes #3198
Closes #3197
Closes #3194
Closes #3193
Closes #3190

What Changed

  • Restores immediate one-character stream buffer flushes so the Roleplay typewriter cadence stays smooth while still throttling bursty updates.
  • Restores Roleplay composer focus after generation/agent work when the user had been typing there.
  • Filters hiddenFromAI messages out of cross-chat awareness blocks.
  • Adds a mobile Tools tab to Conversation composer media sheet for trigger response, translate draft, voice input, and quick replies below 640px.
  • Adds image attachments to Professor Mari chat, including compressed upload prep, previews, persistence, and multimodal prompt injection.
  • Surfaces Knowledge Router diagnostics in agent activity so zero-selection runs are visible instead of looking absent.

Validation

  • Manually verify Roleplay streaming appears letter-smooth with streaming speed set low.
  • Manually verify Roleplay composer focus returns after generation starts/finishes when the textarea was focused.
  • Manually verify hidden-from-AI messages do not appear in cross-chat awareness prompt context.
  • Manually verify Conversation mobile composer below 640px exposes Tools actions.
  • Manually verify Professor Mari can attach an image and a vision-capable model receives it.
  • Manually verify Knowledge Router activity shows selected entry counts, including zero-selection runs.

Local proof run: pnpm check passed on July 4, 2026.

Notes

#3187 is intentionally not included here. It is a Chromium-specific freeze/lag report and needs browser perf reproduction before a responsible fix.

Summary by CodeRabbit

  • New Features

    • Added image attachments for Professor Mari chats, including upload, preview, removal, and sending with messages.
    • Added a mobile Tools tab with quick access to trigger responses, translation, voice input, and quick replies when available.
    • Improved visibility of knowledge-router activity with clearer selection details.
  • Bug Fixes

    • Restores chat input focus after streaming or other busy states, reducing interrupted typing.
    • Hidden messages are now excluded from AI awareness when marked accordingly.
    • One-character stream updates now appear immediately for smoother live text rendering.

🔄 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/3199 **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/smooth-typewriter-cadence` --- ### 📝 Commits (3) - [`7379325`](https://github.com/Pasta-Devs/Marinara-Engine/commit/73793250fa5d1284271aedb32597d8424d71e19e) Smooth typewriter stream cadence - [`7ef9297`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7ef9297b2e34615f3c6dfd1aed55e96b633034d8) Address chat issue sweep - [`9e98574`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9e985744ddb88cff220b84246bfed374e03713fd) Mirror Professor Mari floating attachments ### 📊 Changes **9 files changed** (+600 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatInput.tsx` (+36 -1) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+173 -10) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+242 -13) 📝 `packages/client/src/hooks/use-generate.ts` (+16 -0) 📝 `packages/client/src/hooks/use-throttled-stream-buffer.ts` (+14 -4) 📝 `packages/server/src/routes/professor-mari-workspace.routes.ts` (+12 -0) 📝 `packages/server/src/services/agents/knowledge-router.ts` (+25 -4) 📝 `packages/server/src/services/conversation/awareness.service.ts` (+20 -1) 📝 `packages/server/src/services/professor-mari/workspace-agent.service.ts` (+62 -3) </details> ### 📄 Description ## Why Smooth streaming in Roleplay regressed into chunked updates, and the current unclaimed issue sweep had several chat-facing bugs that were safe to address together before the next staging pull. Closes #3198 Closes #3197 Closes #3194 Closes #3193 Closes #3190 ## What Changed - Restores immediate one-character stream buffer flushes so the Roleplay typewriter cadence stays smooth while still throttling bursty updates. - Restores Roleplay composer focus after generation/agent work when the user had been typing there. - Filters `hiddenFromAI` messages out of cross-chat awareness blocks. - Adds a mobile `Tools` tab to Conversation composer media sheet for trigger response, translate draft, voice input, and quick replies below 640px. - Adds image attachments to Professor Mari chat, including compressed upload prep, previews, persistence, and multimodal prompt injection. - Surfaces Knowledge Router diagnostics in agent activity so zero-selection runs are visible instead of looking absent. ## Validation - [ ] Manually verify Roleplay streaming appears letter-smooth with streaming speed set low. - [ ] Manually verify Roleplay composer focus returns after generation starts/finishes when the textarea was focused. - [ ] Manually verify hidden-from-AI messages do not appear in cross-chat awareness prompt context. - [ ] Manually verify Conversation mobile composer below 640px exposes Tools actions. - [ ] Manually verify Professor Mari can attach an image and a vision-capable model receives it. - [ ] Manually verify Knowledge Router activity shows selected entry counts, including zero-selection runs. Local proof run: `pnpm check` passed on July 4, 2026. ## Notes #3187 is intentionally not included here. It is a Chromium-specific freeze/lag report and needs browser perf reproduction before a responsible fix. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added image attachments for Professor Mari chats, including upload, preview, removal, and sending with messages. * Added a mobile **Tools** tab with quick access to trigger responses, translation, voice input, and quick replies when available. * Improved visibility of knowledge-router activity with clearer selection details. * **Bug Fixes** * Restores chat input focus after streaming or other busy states, reducing interrupted typing. * Hidden messages are now excluded from AI awareness when marked accordingly. * One-character stream updates now appear immediately for smoother live text rendering. <!-- 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:02 +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#5838
No description provided.