This release adds header forwarding capabilities for toolsets and includes several bug fixes and code improvements.
What's New
- Adds support for
${headers.NAME}syntax to forward upstream API headers to toolsets, allowing toolset configurations to reference incoming HTTP request headers
Bug Fixes
- Fixes race condition in isFirstRun using atomic file creation
- Fixes nil pointer dereference when RateLimit is present without Usage
- Fixes double-counting of session costs with cumulative usage providers
- Fixes Ctrl+K key binding conflict in session browser by reassigning CopyID to Ctrl+Y
- Fixes model selection functionality
Improvements
- Adds input validation and audit logging to shell tool
- Adds input validation and error handling to RunBangCommand
Technical Changes
- Extracts shared helpers for command-based providers to reduce code duplication
- Removes duplication from config.Resolv
- Moves GetUserSettings() from pkg/config to pkg/userconfig as Get()
- Removes redundant Reader interface from pkg/config
- Fixes leaked os.Root handle in fileSource.Read
- Makes small improvements to cmd/root
What's Changed
- docs: update CHANGELOG.md for v1.23.1 by @docker-read-write[bot] in #1727
- Fix two issues with costs by @dgageot in #1732
- Daily fixes by @dgageot in #1731
- Cleanup config code by @dgageot in #1729
- Support ${headers.NAME} syntax to forward upstream API headers to toolsets by @dgageot in #1725
- refactor(environment): extract shared helpers for command-based providers by @dgageot in #1730
- Small improvements to cmd/root by @dgageot in #1734
- fix(#1741): resolve Ctrl+K key binding conflict in session browser by @aheritier in #1742
- Fix model switcher by @dgageot in #1740
New Contributors
- @aheritier made their first contribution in #1742
Full Changelog: v1.23.1...v1.23.2