[PR #3232] [MERGED] [codex] Label Conversation assistant history turns #5855

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

📋 Pull Request Information

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

Base: staging ← Head: codex/conversation-assistant-history-speakers


📝 Commits (1)

  • f228f7a Label conversation assistant history turns

📊 Changes

3 files changed (+22 additions, -6 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/server/src/routes/generate.routes.ts (+8 -2)
📝 packages/server/src/services/generation/generation-text-utils.ts (+13 -4)

📄 Description

Summary

  • Prefix normal Conversation assistant history turns with the resolved character name, including today's timestamped turns and summary-tail turns.
  • Keep provider history as multi-turn user/assistant messages; only the visible line content receives the speaker label.
  • Update the v2.1.0 changelog.

Root Cause

Conversation prompt history only speaker-labeled user turns through formatConversationPromptTurn. In 1:1 DMs, assistant turns were sent as raw text, making prior replies ambiguous even though the assistant row belonged to the character.

Notes

Conversation calls already wrap available call commands in <commands>...</commands> and append them with the latest user call input alongside <output_format>.

Validation

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

Manual Verification Needed

  • Generate or peek a 1:1 Conversation DM and confirm assistant history appears like [MM.DD HH:MM] Character: ... while retaining the assistant role.
  • Confirm group Conversation history still avoids duplicate speaker prefixes when replies already include Name:.
  • Confirm call prompts continue to include <commands> and <output_format> in the latest user call input.

🔄 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/3232 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/5/2026 **Status:** ✅ Merged **Merged:** 7/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/conversation-assistant-history-speakers` --- ### 📝 Commits (1) - [`f228f7a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f228f7a8d8d4b77219e17890a3373caf967a7ab4) Label conversation assistant history turns ### 📊 Changes **3 files changed** (+22 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+8 -2) 📝 `packages/server/src/services/generation/generation-text-utils.ts` (+13 -4) </details> ### 📄 Description ## Summary - Prefix normal Conversation assistant history turns with the resolved character name, including today's timestamped turns and summary-tail turns. - Keep provider history as multi-turn user/assistant messages; only the visible line content receives the speaker label. - Update the v2.1.0 changelog. ## Root Cause Conversation prompt history only speaker-labeled user turns through `formatConversationPromptTurn`. In 1:1 DMs, assistant turns were sent as raw text, making prior replies ambiguous even though the assistant row belonged to the character. ## Notes Conversation calls already wrap available call commands in `<commands>...</commands>` and append them with the latest user call input alongside `<output_format>`. ## Validation - `pnpm --filter @marinara-engine/server lint` - `git diff --check` - `pnpm check` ## Manual Verification Needed - Generate or peek a 1:1 Conversation DM and confirm assistant history appears like `[MM.DD HH:MM] Character: ...` while retaining the assistant role. - Confirm group Conversation history still avoids duplicate speaker prefixes when replies already include `Name:`. - Confirm call prompts continue to include `<commands>` and `<output_format>` in the latest user call input. --- <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:12 +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#5855
No description provided.