Skip to content

bug fix 113 - #122

Merged
zhongkaifu merged 1 commit into
mainfrom
feature/bug_fix_113
Aug 1, 2026
Merged

bug fix 113#122
zhongkaifu merged 1 commit into
mainfrom
feature/bug_fix_113

Conversation

@zhongkaifu

Copy link
Copy Markdown
Owner

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4b8765fc35

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +442 to 445
int hold = HoldBack(buf, "<|channel>", "<|tool_call>", "<channel|>");
if (hold > 0)
{
string emit = buf.Substring(0, buf.Length - hold);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep primed reasoning out of streaming content

When a Gemma 4 checkpoint emits the reported thought...<channel|>answer shape during a streaming request, Add receives the reasoning incrementally and this branch emits every chunk that does not currently end in a partial marker as Content. By the time the closing marker arrives, only the small fragment still in _buffer can be reclassified, while the preceding chain of thought has already been sent to OpenAI/WebUI clients as answer text. The new streaming test misses this because it checks only that the marker is absent and the result ends with the answer; it does not assert that Deliberating quietly. is absent. Buffer or classify the prompt-primed region before emitting it as content so the fix also covers streaming, not only batch parsing.

Useful? React with 👍 / 👎.

@zhongkaifu
zhongkaifu merged commit e765938 into main Aug 1, 2026
1 check failed
@zhongkaifu
zhongkaifu deleted the feature/bug_fix_113 branch August 1, 2026 17:31
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

Engine comparison — TensorSharp vs llama.cpp (PR smoke)

No report artifact was produced — the benchmark failed before generating results (see the workflow logs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant