fix(runtime,web): route inline think tags into reasoning lane #109
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_shrimp!109
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "integration_hide_inline_think_tags"
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?
Summary
Models that inline their reasoning as literal
<think>...</think>tags in the assistant content were having those tags rendered as plain text in the chat. This change routes that content into the existing reasoning lane so it appears in the collapsible ThinkingPane, both live during streaming and after reload.Related Issue
Closes #104
Changes
think_tagsmodule inhero_shrimp_runtime: incrementalThinkTagFilterfor streaming (handles markers split across SSE chunks, held-back partial markers, unclosed trailing<think>) andsplit_think_tagsfor whole responses; 13 unit testsllm/completion/mod.rsroutes every content delta through the filter, emittingllm:deltawithkind: "content"orkind: "reasoning"; non-streaming OpenAI-compatible path splits content and pushes extracted segments asReasoningBlockentries; Anthropic branch and trajectory export untouchedstore.ts(extractThinkBlocksapplied in stream flush,turn:end, and history load) so messages already persisted with raw tags render cleanChatThread.tsx: settled assistant messages with reasoning render a collapsed ThinkingPaneTest Results