- Mock the 'open' module to prevent actual URLs from opening during test runs
- Add dedicated URL handling security tests to verify mocking behavior
- Prevent potential security issues where tests could open arbitrary URLs
- Verify URL construction logic without actual browser opening
- Document security considerations around URL opening in tests
- All tests pass with proper mocking in place
Security improvement: Tests now cannot accidentally open malicious URLs
during automated test runs, while still verifying the URL opening logic.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add third option "Switch to a different configuration" to free trial UI
- Integrate with existing ConfigSelector component for seamless config switching
- Update navigation to support 3 options with arrow keys and number selection
- Add comprehensive UI tests covering all interaction branches:
- Initial screen rendering and formatting
- Navigation with arrow keys and number keys
- Boundary checking for navigation
- Proper callback handling for all three options
- Visual styling and layout verification
- Props interface testing
- Tests verify proper integration between FreeTrialTransitionUI and TUIChat
- All existing functionality preserved and tested
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Create testable pure functions for Anthropic API key validation
- Ensure consistent validation across all entry points (must start with "sk-ant-")
- Add automatic switching to local config after API key entry in CLI
- Update all free trial transition flows to use centralized validation
- Add comprehensive test coverage for validation logic
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>