Skip to content

Conversation

@jimmystridh
Copy link

@jimmystridh jimmystridh commented Sep 3, 2025

Summary

  • Adds conditional Long Context toggle that appears only when Sonnet or Default model is selected
  • Enables 1M token context mode by passing --model sonnet[1m] to Claude CLI when toggle is active
  • Automatically hides toggle and resets state when switching to unsupported models
image

Test plan

  • Verify Long Context toggle appears when Sonnet model is selected
  • Verify toggle is hidden when Opus model is selected
  • Test that enabling toggle with Sonnet passes sonnet[1m] to Claude CLI
  • Confirm toggle state resets when switching between models

🤖 Generated with Claude Code

jimmystridh and others added 2 commits September 3, 2025 14:31
- Add Long Context toggle next to Plan First and Thinking Mode toggles
- Toggle only appears when Sonnet or Default model is selected
- When enabled with Sonnet, passes --model sonnet[1m] to Claude CLI
- Automatically resets when switching to unsupported models

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Add Sinon library for improved testing capabilities
- Introduce unit and integration tests for long context feature
- Implement UI logic tests for toggling long context and model selection

This update enhances the testing framework and ensures better coverage for the long context feature.
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