Skip to content

docs: auto-update for merged PRs (2026-11-03) - #4798

Merged
trungutt merged 1 commit into
mainfrom
docs/auto-update
Nov 3, 2026
Merged

trungutt merged 1 commit into
mainfrom
docs/auto-update

Conversation

@aheritier

Copy link
Copy Markdown
Collaborator

Documentation updates for recently merged changes.

  • docs/configuration/hooks/index.md: the worktree_create hook now fires for background agent tasks started with worktree: true, not only docker agent run --worktree. Updated the event table, context note, and the Worktree-Create section (input fields, ordering, context goes to the child's instructions, blocking fails the task).

Other PRs merged in the last 25h (#4795 TypeScript SDK, #4791, #4794, #4792, #4789) need no further docs; #4776's and #4795's own docs changes were already included in those PRs.

References: #4776

Document that the worktree_create hook also fires for background agent
tasks started with worktree: true.

Reflects changes from #4776.
Source PR: #4776
@aheritier aheritier added the kind/docs Documentation-only changes label Nov 3, 2026
@aheritier
aheritier requested a review from a team as a code owner November 3, 2026 05:00
Copilot AI balanced review requested due to automatic review settings November 3, 2026 05:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The documentation incorrectly implies hook errors stop the child task, but worktree_create defaults to warning and allows execution to continue unless a blocking policy or verdict is used.

1 open issue
What changed in this PR

Updates the hook documentation to reflect background-agent worktree support introduced in #4776. This PR changes documentation only.

Changes:

  • Adds isolated background tasks to the worktree_create event description.
  • Documents hook inputs, execution ordering, context delivery, and task failure behavior.
File Description
docs/​configuration/​hooks/​index.md Expands worktree_create documentation to cover background tasks using worktree: true.

Review effort: Balanced

```

Unlike most events, `worktree_create` is dispatched from the CLI rather than the run loop, because the worktree (and the working directory the runtime, session, tools, and snapshot machinery all capture) must be settled before the runtime and session exist. See [`examples/worktree_create_hook.yaml`](https://github.com/docker/docker-agent/blob/main/examples/worktree_create_hook.yaml) for the full file.
`worktree_create` also fires when `run_background_agent` is called with `worktree: true`. Hooks run inside the task's new checkout with `agent_name` and `parent_session_id` set, before the child's toolsets and skills are loaded. Their additional context is added to the child's instructions, and a blocking decision (or error) fails the task; the checkout and branch are retained.
@aheritier aheritier added the area/docs Documentation changes label Nov 3, 2026
@trungutt
trungutt added this pull request to the merge queue Nov 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 3, 2026
@trungutt
trungutt added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit fba1581 Nov 3, 2026
24 checks passed
@trungutt
trungutt deleted the docs/auto-update branch November 3, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/docs Documentation changes kind/docs Documentation-only changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants