Skip to content

Add Think sendReasoning controls#1424

Merged
threepointone merged 1 commit intomainfrom
feat/think-send-reasoning
Apr 30, 2026
Merged

Add Think sendReasoning controls#1424
threepointone merged 1 commit intomainfrom
feat/think-send-reasoning

Conversation

@threepointone
Copy link
Copy Markdown
Contributor

@threepointone threepointone commented Apr 30, 2026

Summary

  • Add an instance-level sendReasoning default to Think and a per-turn TurnConfig.sendReasoning override.
  • Snapshot the resolved value in the inference loop so both chat() and WebSocket streaming pass it to toUIMessageStream consistently.
  • Document the new knob and add a patch changeset for @cloudflare/think.

Test plan

  • npx vitest --run -c packages/think/src/tests/vitest.config.ts packages/think/src/tests/hooks.test.ts
  • npm run test --workspace @cloudflare/think
  • npm run build --workspace @cloudflare/think
  • npm run check

Closes #1417

Made with Cursor


Open in Devin Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 30, 2026

🦋 Changeset detected

Latest commit: 6bec758

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/think Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

@threepointone threepointone force-pushed the feat/think-send-reasoning branch from 1a427bc to 6bec758 Compare April 30, 2026 11:35
@threepointone threepointone merged commit 58ca2fc into main Apr 30, 2026
1 check failed
@threepointone threepointone deleted the feat/think-send-reasoning branch April 30, 2026 12:58
@github-actions github-actions Bot mentioned this pull request Apr 30, 2026
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.

Feature request: per-turn sendReasoning control on Think

1 participant