-
Notifications
You must be signed in to change notification settings - Fork 21
Comparing changes
Open a pull request
base repository: kbwo/ccmanager
base: v0.1.8
head repository: kbwo/ccmanager
compare: v0.1.9
- 16 commits
- 12 files changed
- 4 contributors
Commits on Jun 17, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 69c50f2 - Browse repository at this point
Copy the full SHA 69c50f2View commit details
Commits on Jun 18, 2025
-
refactor: remove unused app.tsx component
This component was previously used for direct mode (-d flag) but is no longer needed. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 2ef0d07 - Browse repository at this point
Copy the full SHA 2ef0d07View commit details -
feat: add command configuration with arguments and fallback support
- Add CommandConfig type to support configuring command, args, and fallback args - Implement command execution with automatic fallback logic in SessionManager - Create ConfigureCommand UI component with save/exit buttons - Update configuration manager to handle command settings - Make createSession async to handle spawn failures gracefully - Add visual feedback for unsaved changes in command configuration This allows users to configure command arguments (e.g., --resume) with automatic fallback to alternative arguments or no arguments if the main command fails. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 8a9b354 - Browse repository at this point
Copy the full SHA 8a9b354View commit details -
docs: add command configuration documentation
- Create comprehensive guide for command configuration feature - Document configuration options, fallback behavior, and use cases - Add examples for common scenarios (resume, models, experimental features) - Include troubleshooting section and best practices - Update README with command configuration section and feature list 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 99ec61e - Browse repository at this point
Copy the full SHA 99ec61eView commit details -
refactor: improve code organization and simplify fallback logic
- Remove unnecessary useEffect in ConfigureCommand, initialize state directly - Extract spawn logic into dedicated spawnWithFallback method - Extract early exit detection into checkEarlyExit method - Simplify fallback behavior to only use fallback args (no empty args attempt) - Remove unnecessary try-catch blocks - Improve code readability and maintainability 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 6242af5 - Browse repository at this point
Copy the full SHA 6242af5View commit details -
refactor: reduce nesting in ConfigureCommand input handling
- Extract handleMenuNavigation for arrow key handling - Extract getInitialInputValue to get field-specific values - Extract handleMenuItemSelect for menu item actions - Simplify useInput handler with early returns - Replace nested if-else with switch statements - Reduce maximum nesting from 6 to 2-3 levels 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 6b7d5f1 - Browse repository at this point
Copy the full SHA 6b7d5f1View commit details -
test: add comprehensive tests for command configuration
- Add tests for SessionManager command configuration and fallback - Test default command, configured args, and fallback behavior - Test early exit detection and automatic fallback - Add tests for ConfigurationManager command config methods - Test saving, loading, and updating command configuration - Test error handling and edge cases - Achieve full coverage of new command configuration features 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 39db43d - Browse repository at this point
Copy the full SHA 39db43dView commit details -
test: add sessionManager tests for command configuration
- Add comprehensive tests for command configuration and fallback behavior - Test early exit detection and session lifecycle - Fix TypeScript types without using type assertions - Remove unnecessary configurationManager.test.ts 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 97734df - Browse repository at this point
Copy the full SHA 97734dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for f216509 - Browse repository at this point
Copy the full SHA f216509View commit details -
fix: allow fallback with empty args array
- Change fallback to always trigger when main command fails - Always pass empty array instead of undefined to spawn - Update documentation to clarify fallback behavior - Remove test case for empty fallback args (no longer needed) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 0420c96 - Browse repository at this point
Copy the full SHA 0420c96View commit details -
refactor: improve command fallback to eliminate unnecessary wait
Replace early exit detection with smart fallback on process exit. The fallback now only triggers when the primary command exits with code 1, eliminating the 500ms wait for successful commands. This provides immediate startup for working commands while maintaining seamless fallback for failures. - Remove checkEarlyExit method and 500ms timeout - Implement fallback in onExit handler based on exit code - Replace session process dynamically when fallback occurs - Rename isMainCommand to isPrimaryCommand for clarity 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 5c52526 - Browse repository at this point
Copy the full SHA 5c52526View commit details -
fix: prevent exit blocking after fallback & always attempt fallback o…
…n failure Two important fixes for the fallback mechanism: 1. **Fix exit blocking after fallback process replacement** - Split handler setup to avoid duplicate state check intervals - Only re-setup data and exit handlers during fallback, not state interval - Prevents orphaned intervals that were keeping the app alive 2. **Always attempt fallback when primary command fails** - Remove requirement for fallbackArgs to be configured - Fallback to running command with no args if fallbackArgs not specified - Makes fallback behavior consistent for all exit code 1 failures 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for a050024 - Browse repository at this point
Copy the full SHA a050024View commit details -
Merge branch 'feature/argument-config-and-fallback' of https://github…
….com/kbwo/ccmanager-202506042324 into feature/argument-config-and-fallback
Configuration menu - View commit details
-
Copy full SHA for 0ddd01f - Browse repository at this point
Copy the full SHA 0ddd01fView commit details -
refactor: simplify spawn logic by removing spawnWithFallback
Consolidate spawning logic into a single spawn method. The fallback mechanism is now entirely handled in the exit handler, making the code cleaner and more straightforward. This removes the complexity of the spawnWithFallback method while maintaining the same fallback functionality. - Remove spawnWithFallback and spawnFallbackProcess methods - Use single spawn method for both primary and fallback attempts - Fallback logic remains in setupExitHandler where it belongs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for d47005e - Browse repository at this point
Copy the full SHA d47005eView commit details -
docs: add recommendation about fallback arguments
Add best practice recommendation to avoid using error-prone arguments as fallback arguments. The fallback should be a safe, minimal configuration that reliably starts the session. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 7a5c943 - Browse repository at this point
Copy the full SHA 7a5c943View commit details -
Merge pull request #18 from kbwo/feature/argument-config-and-fallback
feat: add command configuration with arguments and fallback support
Configuration menu - View commit details
-
Copy full SHA for 5f33c3e - Browse repository at this point
Copy the full SHA 5f33c3eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.1.8...v0.1.9