github docker/docker-agent v1.157.0

latest releases: v1.157.2, v1.157.1
4 hours ago

This release delivers several bug fixes across runtime token handling, model error recognition, and provider-specific behavior, along with a UI fix for text selection and a new build tag for embedders.

What's New

  • Adds docker_agent_no_hook_templates build tag, allowing embedders to drop text/template from the runtime to reduce binary size (relevant for WebAssembly targets)
  • Adds worktree: true opt-in for background agents to isolate concurrent tasks in separate git worktrees with independent checkouts, tools, and hooks
  • Validates structured output using google/jsonschema-go

Bug Fixes

  • Fixes tool calls cut off by the output-token limit being executed with truncated arguments instead of being retracted
  • Fixes llama.cpp context overflow errors not being recognized as token overflow, preventing auto-compact from triggering on Docker Model Runner
  • Fixes Gemini adapter not reporting MAX_TOKENS as a length stop or SAFETY stops as refusals, which could cause refused tool calls to execute and loop
  • Fixes sort -ofile and tree -ofile (option operands) being incorrectly classified as safe commands
  • Fixes server-side fallback token usage counting only the final attempt's tokens instead of all attempts, allowing token budgets to be exceeded
  • Fixes Google SDK endpoint precedence so that GOOGLE_GEMINI_BASE_URL and GOOGLE_VERTEX_BASE_URL environment variables are not overridden by injected catalog endpoints
  • Fixes OPENAI_BASE_URL not being considered when determining whether hosted (native) tool search should be disabled
  • Fixes double-click text selection to use Unicode word boundaries and grapheme-aware hit testing, highlighting, and clipboard extraction
  • Fixes runtime not preserving the raw thinking state of a length turn that retracts nothing

What's Changed

  • docs: update CHANGELOG.md for v1.156.2 by @docker-read-write[bot] in #4797
  • docs: auto-update for merged PRs (2026-11-03) by @aheritier in #4798
  • build(deps): bump the actions group across 2 directories with 7 updates by @dependabot[bot] in #4788
  • fix(runtime): retract a tool call cut off by the token limit by @PerryLink in #4784
  • fix(modelerrors): recognize llama.cpp context overflow by @jaeminbird in #4785
  • fix(gemini): report MAX_TOKENS as length and safety stops as refusal by @jaeminbird in #4786
  • fix(openai): exclude OPENAI_BASE_URL from hosted tool search by @oyobbeb in #4793
  • fix(google): preserve SDK endpoint precedence by @TDnorthgarden in #4790
  • fix(runtime): count all server fallback tokens toward budgets by @TDnorthgarden in #4799
  • fix(safety): do not classify sort and tree with an option operand as safe by @arxhr007 in #4787
  • test(hooks): skip stdin JSON test when jq is missing by @onatozmenn in #4800
  • Fix double-click text selection by @dgageot in #4801
  • docs: auto-update for merged PRs (2026-11-05) by @aheritier in #4809
  • Let embedders drop text/template from the runtime by @trungutt in #4811

New Contributors

Full Changelog: v1.156.2...v1.157.0

Don't miss a new docker-agent release

NewReleases is sending notifications on new releases.