[PR #93] [MERGED] fix: Unbreak client build and server Docker build on main #4459

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/93
Author: @LukaTheHero
Created: 4/16/2026
Status: ✅ Merged
Merged: 4/16/2026
Merged by: @LukaTheHero

Base: main ← Head: fix/conversation-surface-missing-select-props


📝 Commits (2)

  • dc89344 fix(chat): Pass bulk-select props to conversation surface
  • 691ba8a fix(server): Close create() payload before timestampOverrides arg

📊 Changes

2 files changed (+4 additions, -0 deletions)

View changed files

📝 packages/client/src/components/chat/ChatArea.tsx (+3 -0)
📝 packages/server/src/services/import/st-prompt.importer.ts (+1 -0)

📄 Description

Summary

Main is currently broken in two places after PR #85/#86 merged alongside PR #91. This patch restores it.

1. Client build (TS2739 in ChatArea.tsx)

PR #91 added three new props to `ChatConversationSurface`. PR #85/#86's rewrite of `ChatArea.tsx` landed after mine, and git's auto-merge kept the new prop-passes on the roleplay surface but dropped them on the conversation surface call site. The conversation-surface type still requires them, so `pnpm check` and `pnpm build` fail with:

```
TS2739: Type '{ ... }' is missing the following properties from type 'ConversationSurfaceProps':
onUnselectAllMessages, onSelectAllAboveSelection, onSelectAllBelowSelection
```

Fix: Re-add the three prop lines on the conversation call site (handlers already exist, no logic change).

2. Server build (TS1005 / TS1136 in st-prompt.importer.ts)

From PR #86. In `importSTPreset`, the inner `parameters` object closes but the outer first-arg object literal to `storage.create(...)` never does. The parser then reads `options?.timestampOverrides,` as a malformed property assignment:

```ts
await storage.create(
{
name: ...,
...
parameters: { ... },
}, // <-- this closing brace was missing
options?.timestampOverrides,
);
```

This breaks both `pnpm check` (lint job) and the Docker release build (`pnpm build` at image build time).

Fix: One-line addition of the missing closing brace.

Why this shipped broken

Each PR passed CI at open time, but CI never re-ran against the post-merge tip of main after both landed. So the parallel-merge conflicts slipped through.

Test plan

  • `pnpm check` passes locally (verified — 0 errors).
  • CI lint + build jobs green.
  • Docker build-push workflow completes.
  • Conversation chat: Delete more → target + all below selected; Unselect all / ↑ / ↓ all work.
  • Roleplay unaffected.
  • ST preset import (the thing the broken file is for) still imports — confirms the brace fix didn't shift semantics.

🔄 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/93 **Author:** [@LukaTheHero](https://github.com/LukaTheHero) **Created:** 4/16/2026 **Status:** ✅ Merged **Merged:** 4/16/2026 **Merged by:** [@LukaTheHero](https://github.com/LukaTheHero) **Base:** `main` ← **Head:** `fix/conversation-surface-missing-select-props` --- ### 📝 Commits (2) - [`dc89344`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dc89344fd7592ae222a26733ec193ec4305acd91) fix(chat): Pass bulk-select props to conversation surface - [`691ba8a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/691ba8a327bffd65c58407efa766670db1c01adb) fix(server): Close create() payload before timestampOverrides arg ### 📊 Changes **2 files changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatArea.tsx` (+3 -0) 📝 `packages/server/src/services/import/st-prompt.importer.ts` (+1 -0) </details> ### 📄 Description ## Summary Main is currently broken in two places after PR #85/#86 merged alongside PR #91. This patch restores it. ### 1. Client build (`TS2739` in `ChatArea.tsx`) PR #91 added three new props to \`ChatConversationSurface\`. PR #85/#86's rewrite of \`ChatArea.tsx\` landed after mine, and git's auto-merge kept the new prop-passes on the **roleplay** surface but dropped them on the **conversation** surface call site. The conversation-surface type still requires them, so \`pnpm check\` and \`pnpm build\` fail with: \`\`\` TS2739: Type '{ ... }' is missing the following properties from type 'ConversationSurfaceProps': onUnselectAllMessages, onSelectAllAboveSelection, onSelectAllBelowSelection \`\`\` **Fix:** Re-add the three prop lines on the conversation call site (handlers already exist, no logic change). ### 2. Server build (`TS1005` / `TS1136` in `st-prompt.importer.ts`) From PR #86. In \`importSTPreset\`, the inner \`parameters\` object closes but the outer first-arg object literal to \`storage.create(...)\` never does. The parser then reads \`options?.timestampOverrides,\` as a malformed property assignment: \`\`\`ts await storage.create( { name: ..., ... parameters: { ... }, }, // <-- this closing brace was missing options?.timestampOverrides, ); \`\`\` This breaks both \`pnpm check\` (lint job) and the Docker release build (\`pnpm build\` at image build time). **Fix:** One-line addition of the missing closing brace. ## Why this shipped broken Each PR passed CI at open time, but CI never re-ran against the post-merge tip of main after both landed. So the parallel-merge conflicts slipped through. ## Test plan - [x] \`pnpm check\` passes locally (verified — 0 errors). - [x] CI lint + build jobs green. - [x] Docker build-push workflow completes. - [x] Conversation chat: Delete more → target + all below selected; Unselect all / ↑ / ↓ all work. - [x] Roleplay unaffected. - [x] ST preset import (the thing the broken file is for) still imports — confirms the brace fix didn't shift semantics. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:45 +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#4459
No description provided.