8000 fix(completions): preserve streamed reasoning detail order by Fodesu · Pull Request #118 · felinics/twilight · GitHub
[go: up one dir, main page]

Skip to content

fix(completions): preserve streamed reasoning detail order - #118

Merged
Fodesu merged 1 commit into
mainfrom
fix/reasoning-details-stream-merge
Oct 13, 2026
Merged

Fodesu merged 1 commit into
mainfrom
fix/reasoning-details-stream-merge

Conversation

@Fodesu
@Fodesu Fodesu commented Oct 13, 2026
Copy link
Copy Markdown
Member

Summary

  • rebuild streamed reasoning_details in wire order instead of treating index as a stable cross-chunk identity
  • merge only adjacent reasoning.text and reasoning.summary fragments
  • preserve encrypted and other opaque details as independent replay entries
  • preserve repeated incremental text rather than dropping it via prefix inference

Tests

  • go test ./...

@Fodesu
Fodesu merged commit 3cd3137 into main Oct 13, 2026
4 checks passed
@Fodesu
Fodesu commented Oct 13, 2026
Copy link
Copy Markdown
Member Author

related view this

ix64 added a commit to ix64/twilight that referenced this pull request Oct 13, 2026
…e stream"

This reverts commit 9821109.

Upstream felinics#118 merges reasoning_details in wire order and supersedes the
type+index merge here; the late-piece fix is proposed separately in felinics#122.
This branch goes back to the errorformat and openai models fixes only.
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

0