mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2700] [CLOSED] serve: preserve code-quoted output markers #4222
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4222
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/Niko1221/Strata/pull/2700
Author: @allowq
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:pr/quoted-output-markers📝 Commits (1)
b8b6f57serve: preserve code-quoted output markers📊 Changes
4 files changed (+709 additions, -193 deletions)
View changed files
📝
serve/frontend.py(+199 -78)📝
serve/server.py(+8 -3)➕
serve/test_code_span_quotes.py(+473 -0)📝
serve/test_parser_track.py(+29 -112)📄 Description
Issue: Code-quoted protocol markers alter streamed channels or tool calls
Follow up #537. Markdown-quoted thinking/call markers can be interpreted as
protocol. Unfinished quotes can hide an answer; forced termination can release
a speculative tool call.
PR: Preserve code-quoted markers across stream boundaries
Share incremental Markdown context between thinking and tool parsing. Resolve
held quotes at genuine boundaries and distinguish forced closes/termination.
Keep upstream single/double-quote handling and bound scanning work.
Validation:
serve.test_code_span_quotes,serve.test_parser_track; exact channeltext, delimiter splits, escapes, fences, incomplete quotes, genuine calls,
forced termination, both APIs and scan-work bounds.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.