Skip to content

fix: stabilize thinking block rendering while streaming#123

Merged
dnouri merged 3 commits intomasterfrom
blank-thinking
Feb 12, 2026
Merged

fix: stabilize thinking block rendering while streaming#123
dnouri merged 3 commits intomasterfrom
blank-thinking

Conversation

@dnouri
Copy link
Owner

@dnouri dnouri commented Feb 12, 2026

Summary

  • Fix thinking block whitespace normalization to remove extra blank lines without stripping meaningful indentation.
  • Avoid unnecessary buffer rewrites when incoming thinking deltas do not change rendered output.
  • Ensure session resets clear all thinking-stream state (markers + raw buffer) to prevent stale state leaks.
  • Refactor thinking-state cleanup naming/tests for clarity and lower duplication.

Testing

  • === Byte-compile ===
    === Checkdoc ===
    OK
    === Package-lint ===
    === Unit Tests ===
    Making markdown-hide-markup buffer-local while locally let-bound!
    Ran 521 tests, 521 results as expected, 0 unexpected (2026-02-12 22:38:08+0100, 9.220074 sec)

@dnouri dnouri merged commit 17536e4 into master Feb 12, 2026
7 checks passed
@dnouri dnouri deleted the blank-thinking branch February 12, 2026 21:57
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