mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2093] [CLOSED] fix: preserve content after inline thinking blocks #5433
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#5433
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2093
Author: @lemontaffy
Created: 6/3/2026
Status: ❌ Closed
Base:
staging← Head:fix/thinking-parser-empty-content📝 Commits (10+)
19411f3Fix mobile composer text input collapse (#1136)77a30faFix tracker aliases, avatars, HUD temps, and changelog (#1137)e85da38Reduce chat startup and focus refetch lag10b6330Revert "Reduce chat startup and focus refetch lag"1ab4c3fRegister pre-alpha workflow on default branch1f7b25aMerge pull request #1382 from munimunigamer/ci/register-prealpha-workflow389a682Add Bunny review command bootstrap (#1821)9e96048Register Bunny auto review dispatcher on main (#1872)c49f1d9Enable Bunny dispatch for draft PRs (#2026)4e62759fix(llm): preserve reply text after inline reasoning close tag📊 Changes
16 files changed (+888 additions, -76 deletions)
View changed files
➕
.github/workflows/bunny-review-auto.yml(+38 -0)➕
.github/workflows/bunny-review-command.yml(+96 -0)➕
.github/workflows/prealpha-platform-builds.yml(+335 -0)📝
CHANGELOG.md(+16 -0)📝
packages/client/src/components/chat/ConversationInput.tsx(+5 -5)📝
packages/client/src/components/chat/RoleplayHUD.tsx(+19 -37)📝
packages/client/src/components/panels/SettingsPanel.tsx(+1 -1)📝
packages/client/src/components/panels/settings/TrackerCardColorSettings.tsx(+17 -11)📝
packages/client/src/features/tracker-panel/hooks/use-tracker-sprite-lookup.ts(+11 -6)📝
packages/client/src/features/tracker-panel/lib/tracker-metadata.ts(+31 -0)📝
packages/client/src/lib/character-display.ts(+40 -0)📝
packages/server/scripts/run-tests.mjs(+1 -0)📝
packages/server/src/routes/generate.routes.ts(+8 -4)📝
packages/server/src/routes/generate/generate-route-utils.ts(+40 -4)➕
packages/server/src/services/llm/__tests__/inline-thinking.test.ts(+167 -0)📝
packages/server/src/services/llm/inline-thinking.ts(+63 -8)📄 Description
Linked issue
Closes #2092
Why this change
<thinking>...</thinking>followed by the actual reply. When the parser fails to split the closing reasoning tag from the reply text, the message content can become empty and the real response may be lost.<think>/<thinking>style tags, mismatched close tags, or streamed reasoning output.What changed
<think>and<thinking>forms.<thinking>...</think>and<think>...</thinking>.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm checklocally.Docs and release impact
UI evidence (if applicable)
N/A — this is a server-side response parsing fix.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.