Add effort level picker to chat model menu - #118
Open
mcintyre94 wants to merge 2 commits into
Open
Conversation
Adds a ClaudeEffortLevel enum (low/medium/high/max) and surfaces it in the existing model picker as a second Menu section. The pill label shows the effort level only when non-default (e.g. "Sonnet · High") to avoid visual noise. Max effort is hidden unless Opus is selected, and switching away from Opus while on max resets to high. Effort is passed to every claude invocation via --effort. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Code review1 issue found: Missing unit tests The new
The existing
See: wisp/Wisp/Models/Claude/ClaudeModel.swift Lines 3 to 22 in e63d1c8 |
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ClaudeEffortLevelenum (low,medium,high,max) toClaudeModel.swiftMenuwith a secondSection("Effort")— no new UI surface, just more items in the same dropdownSonnet. Non-default surfaces the level:Sonnet · Highmaxis hidden unless Opus is the effective model; switching away from Opus while onmaxresets tohighclaude -pinvocation via--effort, so it applies per-turn and can be changed mid-chatTest plan
Sonnet · HighSonnet--effort highis present in the exec command🤖 Generated with Claude Code