This release adds global hook support in user config, expands environment variable references in hook and script-shell fields, and fixes hook field merging.
What's New
- Adds support for global hooks in user config (
~/.config/cagent/config.yaml), with hooks merged in order: agent config → global → CLI - Adds
${env.X}expansion in hook and script-shellworking_dirandenvfields, giving them the same treatment as otherworking_dirfields
Bug Fixes
- Fixes hook field merging so all
HooksConfigfields are combined correctly when merging config and CLI hooks - Fixes unset
${env.X}references to log at debug level instead of silently failing; config env now takes precedence over host env
Technical Changes
- Fixes flaky
TestAttachedServer_DeleteEmitsSessionExitedtest caused by a race between session deletion and event log subscription
What's Changed
- docs: update CHANGELOG.md for v1.96.0 by @docker-read-write[bot] in #3417
- test: fix flaky TestAttachedServer_DeleteEmitsSessionExited by @dgageot in #3418
- feat(config): expand ${env.X} in hook and script-shell working_dir/env by @dgageot in #3416
- fix: merge all hook fields by @rumpl in #3419
- feat: support global hooks in user config by @rumpl in #3422
Full Changelog: v1.96.0...v1.97.0