[PR #2700] [CLOSED] serve: preserve code-quoted output markers #4222

Closed
opened 2026-11-07 15:34:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • b8b6f57 serve: 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 channel
text, 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2700 **Author:** [@allowq](https://github.com/allowq) **Created:** 10/15/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/quoted-output-markers` --- ### 📝 Commits (1) - [`b8b6f57`](https://github.com/Niko1221/Strata/commit/b8b6f57e89d5eeacc332874fba8bd2a835f27870) serve: preserve code-quoted output markers ### 📊 Changes **4 files changed** (+709 additions, -193 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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 channel text, delimiter splits, escapes, fences, incomplete quotes, genuine calls, forced termination, both APIs and scan-work bounds. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:34:08 +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
Niko1221/Strata#4222
No description provided.