[PR #1661] [MERGED] [codex] Use shared Professor Mari contracts #5192

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1661
Author: @Xelvanis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Xelvanis

Base: refactor ← Head: codex/professor-mari-contract-imports


📝 Commits (1)

  • 9baa4b1 Use shared Professor Mari contracts

📊 Changes

1 file changed (+6 additions, -11 deletions)

View changed files

📝 src/features/shell/mari/components/ProfessorMariSurface.tsx (+6 -11)

📄 Description

Linked issue

No linked issue; this is an internal Knip unused-export cleanup slice from local triage.

Why this change

  • Professor Mari's shell surface duplicated the engine-owned chat id and attachment contract shape, leaving the UI vulnerable to drift from src/engine/mari.

What changed

  • Import PROFESSOR_MARI_CHAT_ID from the engine Mari history contract for shell transcript message mapping.
  • Import the shared MariAttachment request contract from the engine Mari entrypoint.
  • Keep a shell-only ClientMariAttachment refinement so input-tray attachments still require a stable id for React keys and remove-by-id behavior.

Refactor impact

Primary owner:

  • features/shell/mari

Impact areas reviewed:

  • Professor Mari shell surface
  • engine/mari request/history contracts
  • Shared chat message mapping used by the shell surface

Boundary notes:

  • Feature UI now consumes the existing engine Mari contracts directly.
  • No shared API, Rust, storage command, provider transport, or remote runtime behavior changed.

Pressure points touched:

  • None. This does not touch ModeSurface, GameSurface, shared mode UI internals, Tauri command registration, or import modules.

Validation

  • pnpm check passes locally
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Playwright, screenshot, or recording evidence added for UI changes
  • Remote runtime smoke checked when relevant

Manual verification notes

  • Ran git diff --check origin/refactor...HEAD; no whitespace errors.
  • Ran pnpm typecheck; passed.
  • Ran pnpm check:architecture; passed with no dependency violations and Rust structure check passed.
  • Did not run Tauri/manual UI verification because this is a type/import cleanup with no intended runtime UI behavior change.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

No docs or release-note update was made because this is internal contract-drift cleanup and the repo has no CHANGELOG.md.

UI evidence

No screenshots or recordings. There is no intended visible UI change.

Summary by CodeRabbit

Release Notes

  • Bug Fixes
    • Improved attachment handling consistency in chat functionality to ensure proper ID retention and display.
    • Enhanced chat history reliability by using standardized chat identifiers across the application.

Review Change Stack


🔄 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/1661 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/30/2026 **Status:** ✅ Merged **Merged:** 5/30/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `codex/professor-mari-contract-imports` --- ### 📝 Commits (1) - [`9baa4b1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9baa4b122351ec59b7368f603a0a66aba8be456c) Use shared Professor Mari contracts ### 📊 Changes **1 file changed** (+6 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `src/features/shell/mari/components/ProfessorMariSurface.tsx` (+6 -11) </details> ### 📄 Description ## Linked issue No linked issue; this is an internal Knip unused-export cleanup slice from local triage. ## Why this change - Professor Mari's shell surface duplicated the engine-owned chat id and attachment contract shape, leaving the UI vulnerable to drift from `src/engine/mari`. ## What changed - Import `PROFESSOR_MARI_CHAT_ID` from the engine Mari history contract for shell transcript message mapping. - Import the shared `MariAttachment` request contract from the engine Mari entrypoint. - Keep a shell-only `ClientMariAttachment` refinement so input-tray attachments still require a stable id for React keys and remove-by-id behavior. ## Refactor impact Primary owner: - `features/shell/mari` Impact areas reviewed: - Professor Mari shell surface - `engine/mari` request/history contracts - Shared chat message mapping used by the shell surface Boundary notes: - Feature UI now consumes the existing engine Mari contracts directly. - No shared API, Rust, storage command, provider transport, or remote runtime behavior changed. Pressure points touched: - None. This does not touch ModeSurface, GameSurface, shared mode UI internals, Tauri command registration, or import modules. ## Validation - [ ] `pnpm check` passes locally - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Playwright, screenshot, or recording evidence added for UI changes - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - Ran `git diff --check origin/refactor...HEAD`; no whitespace errors. - Ran `pnpm typecheck`; passed. - Ran `pnpm check:architecture`; passed with no dependency violations and Rust structure check passed. - Did not run Tauri/manual UI verification because this is a type/import cleanup with no intended runtime UI behavior change. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims No docs or release-note update was made because this is internal contract-drift cleanup and the repo has no `CHANGELOG.md`. ## UI evidence No screenshots or recordings. There is no intended visible UI change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Bug Fixes** * Improved attachment handling consistency in chat functionality to ensure proper ID retention and display. * Enhanced chat history reliability by using standardized chat identifiers across the application. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1661?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- 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:14: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#5192
No description provided.