8000 Comparing v0.1.8...v0.1.9 · kbwo/ccmanager · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kbwo/ccmanager
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.8
Choose a base ref
...
head repository: kbwo/ccmanager
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.9
Choose a head ref
  • 16 commits
  • 12 files changed
  • 4 contributors

Commits on Jun 17, 2025

  1. Configuration menu
    Copy the full SHA
    69c50f2 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2025

  1. 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>
    kbwo and claude committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    2ef0d07 View commit details
    Browse the repository at this point in the history
  2. 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>
    kbwo and claude committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    8a9b354 View commit details
    Browse the repository at this point in the history
  3. 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>
    kbwo and claude committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    99ec61e View commit details
    Browse the repository at this point in the history
  4. 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>
    kbwo and claude committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    6242af5 View commit details
    Browse the repository at this point in the history
  5. 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>
    kbwo and claude committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    6b7d5f1 View commit details
    Browse the repository at this point in the history
  6. 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>
    kbwo and claude committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    39db43d View commit details
    Browse the repository at this point in the history
  7. 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>
    kbwo and claude committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    97734df View commit details
    Browse the repository at this point in the history
  8. Update README.md

    kbwo authored Jun 18, 2025
    Configuration menu
    Copy the full SHA
    f216509 View commit details
    Browse the repository at this point in the history
  9. 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>
    kbwo and claude committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    0420c96 View commit details
    Browse the repository at this point in the history
  10. 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>
    kbwo and claude committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    5c52526 View commit details
    Browse the repository at this point in the history
  11. 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>
    kbwo and claude committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    a050024 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0ddd01f View commit details
    Browse the repository at this point in the history
  13. 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>
    kbwo and claude committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    d47005e View commit details
    Browse the repository at this point in the history
  14. 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>
    kbwo and claude committed Jun 18, 2025
    Configuration menu
    Copy the full SHA
    7a5c943 View commit details
    Browse the repository at this point in the history
  15. Merge pull request #18 from kbwo/feature/argument-config-and-fallback

    feat: add command configuration with arguments and fallback support
    kbwo authored Jun 18, 2025
    Configuration menu
    Copy the full SHA
    5f33c3e View commit details
    Browse the repository at this point in the history
Loading
0