mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1759] [MERGED] Fix reasoning icon for provider metadata #5265
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#5265
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/1759
Author: @cha1latte
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1708-reasoning-icon📝 Commits (1)
f4be021Fix reasoning icon for provider metadata📊 Changes
5 files changed (+57 additions, -3 deletions)
View changed files
📝
src/features/modes/conversation/components/ConversationMessage.tsx(+6 -2)📝
src/features/modes/shared/chat-ui/components/ChatMessage.tsx(+2 -1)📝
src/features/modes/shared/chat-ui/index.ts(+1 -0)➕
src/features/modes/shared/chat-ui/lib/message-thinking.test.ts(+32 -0)➕
src/features/modes/shared/chat-ui/lib/message-thinking.ts(+16 -0)📄 Description
Linked issue
Closes #1708
Why this change
extra.thinking,extra.reasoning_content, orextra.reasoning, but the message action UI only checkedextra.thinking. Messages with provider-shaped reasoning metadata could therefore hide the View thoughts action even though the reasoning content was present.What changed
readStoredThinkinghelper that resolves stored reasoning in the existing priority order: app-normalizedthinking, providerreasoning_content, then providerreasoning.Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
Pressure points touched:
Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses locally before PR push/handoff, including the unused-code checkpnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyCodex-run verification:
pnpm test src/features/modes/shared/chat-ui/lib/message-thinking.test.tspnpm typecheckpnpm check:architecturepnpm checknode C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpnpm checkpassed.Manual verification notes
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
No browser screenshot attached. The changed path is the message action's stored-reasoning condition, verified by focused unit coverage plus
pnpm check.Summary by CodeRabbit
Refactor
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.