Skip to content

Conversation

kawpuh
Copy link
Contributor

@kawpuh kawpuh commented Mar 12, 2025

  • Added the PrtThinking command to toggle or configure Claude's "thinking" feature
  • Implemented the feature framework for extensibility to other providers, with full support for Anthropic provider

kawpuh added 3 commits March 12, 2025 14:49
This commit introduces the `PrtThinking` command, allowing users to toggle or configure Claude's "thinking" feature when using the Anthropic provider.

The thinking feature, when enabled, displays Claude's intermediate reasoning steps in a popup window before providing the final response.

Usage:
- `PrtThinking` - Toggle thinking on/off (default budget: 1024 tokens)
- `PrtThinking <tokens>` - Enable thinking with a specific token budget.
- `PrtThinking status` - Show current thinking settings
@frankroeder
Copy link
Owner

Hey @kawpuh,
I really appreciate this contribution! Let me take some time to double-check everything. From what I see, it would also be great to add it to the state.json file so that the selection is persistent across nvim sessions.

kawpuh added 3 commits March 13, 2025 11:58
This commit introduces persistence for the 'thinking' configuration.
The thinking config is now saved to the state object, ensuring that
it is retained across sessions. Added methods to set and get the
thinking configuration.
This commit introduces a feature to remember the previous thinking configuration (budget_tokens) when toggling it on/off.  This way, when thinking is enabled again, it restores the previous settings instead of always defaulting to 1024 tokens.  A  property is used to temporarily save/load the old configuration.
@frankroeder frankroeder merged commit 7db4318 into frankroeder:main Mar 13, 2025
2 checks passed
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.

2 participants