Repository navigation
ChatGPT CLI v1.7.2
New Features
- New
--new-threadFlag: Added the--new-threadflag to generate a new thread with a random name and automatically target it. This feature is particularly useful when using prompt files, allowing users to start fresh without the sticky history of previous interactions. It ensures that follow-up questions are isolated to the new thread. - Conflict Prevention for Thread Flags: Improved user experience by disallowing the simultaneous use of
--new-threadwith--threador--set-threadflags. This ensures clarity in thread targeting, avoiding unexpected behavior when specifying a new thread and targeting another thread concurrently.
Enhancements
- Code Refactoring: Removed redundant
generateUniqueSlugfunction from the client and centralized the logic inutils.GenerateUniqueSlug, improving code maintainability. - Enhanced Integration Tests: Added integration tests to ensure proper validation of flag usage, particularly checking for conflicts between
--new-thread,--thread, and--set-threadflags.
Integration Test Additions
- Added tests to ensure the CLI throws an error when:
--new-threadis used with--set-thread.--new-threadis used with--thread.
- These tests ensure that the command-line interface behaves as expected when conflicting flags are provided.
How to Update
Using Homebrew (macOS)
brew upgrade chatgpt-cliDirect Download
For a quick and easy installation without compiling, you can directly download the pre-built binary for your operating system and architecture.