github docker/docker-agent v1.97.0

2 hours ago

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-shell working_dir and env fields, giving them the same treatment as other working_dir fields

Bug Fixes

  • Fixes hook field merging so all HooksConfig fields 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_DeleteEmitsSessionExited test 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

Don't miss a new docker-agent release

NewReleases is sending notifications on new releases.