Commit Graph
1152 Commits
Author SHA1 Message Date
Maximilian Roos ab9cecb171 Fix demo command tracking and simplify Try it copy (#4546)
Demoshell's guide needs Bash to report command exit status before it can
verify successful steps. Put the command-tracker prompt and OSC 133 exit
markers in the startup rcfile, skipping the initial prompt so Studio
does not mistake it for the app exiting. Keep the recipe and published
guide representation aligned with the working demo.

Shorten the Try it page to the introduction, loading note, full-page
fallback, attribution, and install link. This follows
[#4280](https://github.com/max-sixty/worktrunk/pull/4280).

Validation: ARM64 Alpine recipe and guide walkthrough; startup,
failed-command, and successful-command marker checks; published demo
walkthrough; docs sync test and build; rendered copy review.

The full local gate ran 5,392 tests: 5,389 passed and three PowerShell
tests failed because the installed PowerShell 7.5.2 crashes with `Stack
overflow.` even on `pwsh -NoProfile -Command '1 + 1'` outside the
repository. Pre-commit checks pass separately.

> _This was written by Codex on behalf of max-sixty_
2026-10-22 00:36:59 -07:00
d965d819f2 docs: add an unlinked browser demo for production testing (#4280)
Adds a **Try it** page at `/try-it/`, available by direct URL while
production embedding is tested; excluded from navigation, site search,
and the sitemap, with a noindex directive, with a live Worktrunk demo in
a browser-local Alpine ARM64 VM via [Demoshell](https://demoshell.com).
Nothing downloads until Run is pressed. The page includes Demoshell
attribution and a permanent full-page fallback link.

The VM definition lives in `docs/demos/demoshell/`: the setup recipe,
Bash startup rcfile, and guide. The guide covers list → create → edit →
list → merge, followed by an optional manual picker step. Merge commits
the change automatically. Studio must launch Bash explicitly: changing
root's login shell does not replace its running ash session. The prompt
retains the `arm64js:` prefix required by Demoshell's command tracker.
The README maps each file to its Studio field and provides an ARM64
Alpine Docker check using the same Bash entry point.

**Production test rollout:** `m/tui:worktrunk` resolves from the allowed
`worktrunk.dev` origin. The recipe, startup file, and guide draft are
entered in Studio, but the final snapshot upload is stalled at 1% after
setup completes. The currently published snapshot predates the prompt
repair, and visitors still receive the old guide. The page is
intentionally unlinked so it can be merged and tested on the accepted
production origin before broader exposure. The corrected snapshot must
finish saving, then the new guide must be published and tested in a
fresh visitor session.

Validation: the required command patterns and output checks pass on
ARM64 Alpine with `wt v0.81.0`. In the real Studio preview, applying the
Bash/prompt corrections allowed the required steps to check off, merge
to commit automatically, and the shell to return to main. The optional
picker opens and exits; its guide step uses manual completion because
Demoshell did not detect the alternate-screen exit. Local docs build,
type checks, plugin/site tests, and docs sync passed. Final snapshot
publication and a fresh end-to-end run remain blocked by the upload.

The sidebar-order test accepts Astro page routes, and the page-outline
test exempts `/try-it/`, whose table of contents is disabled to give the
demo more width.

Disclosure from the original author: they run Demoshell. Hosting is free
for eligible open-source projects, and the embed carries attribution.

> _This was written by Codex on behalf of max-sixty_

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Maximilian Roos <m@maxroos.com>
2026-10-21 19:40:15 -07:00
93beb0670d fix: return one complete JSON result for switch (#4345)
JSON switches now emit one result after synchronous work, including any
--execute command, finishes. Accepted invocations return the existing
success fields, or an object with an `error` string when target
discovery, configuration, directory directives, or execution fails.
Execute output goes to stderr, and child errors retain exit and signal
metadata. Typed Git diagnostics retain captured Git details and recovery
hints, including commands for a branch left behind after failed worktree
creation. Argument errors and picker cancellation produce no JSON;
background hooks remain independent.

Validation: the full project gate passed (5,028 tests, one skipped),
plus focused checks covering early and late failures, child output and
signals, picker behavior, and plain output. Generated help,
documentation synchronization and build, and independent review passed.
The change also removes a synthetic stdin write from an existing
noninteractive alias-refusal test that raced with process exit.

> _This was written by Codex on behalf of max-sixty_

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-20 17:13:25 -07:00
Maximilian RoosandClaude Opus 5.5 13d4d5b4e2 docs: release 0.81 documentation review fixes (#4531)
Applies the documentation review of the 0.81.0 candidate
(v0.80.0..15b1ed10c: CLI help, generated and authored site pages, skill
and plugin copies). Each claim was checked against the code, and the
behavioral ones against a build of this branch on scratch repos.
Generated pages, skill mirrors, `list-v2.json` and help snapshots are
regenerated from their sources.

- `wt hook` "Interactive hooks": says which hooks inherit stdin (a
command running alone in the foreground) and which get empty stdin
(concurrent commands, background `post-*` hooks, prune's fanned-out
hooks). The pass-values-as-arguments example moves to the end of
"Template variables".
- Extending: the hooks/aliases stdin row states the rule in the same
words for both.
- Shell integration: "Why shell integration exists" and "Checking
status" state their content instead of only linking away. "Files
created" again distinguishes appended lines (bash, zsh, PowerShell) from
whole files (fish, Nushell), and notes that the PowerShell profiles are
created if missing.
- `wt step prune` min-age guard: says what the guard prevents, where a
branch-only candidate's age comes from, and when a branch with no reflog
looks new again.
- `wt step squash` backup: covers everything staged (by hand or by
`--stage`), not only changes staged beforehand.
- `wt merge`: the long help defines the source before using it;
`--branch` help says "defaults to the current branch".
- `wt remove` JSON: `detached_worktree` is the detached worktree at the
branch's expected location, which the removal leaves in place.
- `wt switch`: shorter "Custom path" sentence; "Starting list-only"
becomes "Hiding the preview".
- `list-v2.json`: "probe" becomes "check", as in the list help.
- Agent integration page: drops the incomplete Codex hooks sentence;
OpenCode's `worktree.directory` "is ignored", and new branches start
from the default branch.
- Claude Code `WorktreeCreate` (site page and plugin README): the hook
runs plain `wt switch` when the branch already exists, which returns its
worktree.
- Plugin README: the activity-tracking example no longer repeats the
hook list above it.

No finding was skipped. Three were adapted: the squash text names
hand-staged changes as well as `--stage`; the `wt merge` text keeps the
word "source", which later paragraphs use; the plugin README keeps the
example's `wt list` sentence and drops only the repeated mechanism.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-20 10:50:00 -07:00
Maximilian RoosandClaude Opus 5.5 d890a16645 fix(templates): add the tojson filter for structured vars (#4524)
Since the minijinja 3 upgrade in #4442, `{{ vars.cfg }}` renders a JSON
object or array var in Python style (`{'port': 3000}`) where v0.80.0
rendered JSON, and `{{ vars.cfg | tojson }}` fails with "unknown filter"
because minijinja's `json` feature was off. Since #3129 removed JSON on
hook stdin, templates are how hooks get structured values, so they had
no way to pass one to `jq` or `curl -d`.

This enables the `json` feature and documents `tojson` beside the vars
dot-access example in `wt hook --help`. `tojson` writes `'`, `<`, `>`
and `&` inside strings as `\u` escapes, which JSON parsers decode; the
shell formatter still single-quotes the result, so `-d {{ vars.config |
tojson }}` passes one argument.

Two adjustments come with the feature. It makes minijinja choose JSON
autoescaping from a template name ending in `.json`, `.js`, `.yaml` or
`.yml`, as it already did HTML escaping for `.html`. Worktrunk's
template names are config keys, so a custom column named `json` would
have rendered JSON-quoted cells, and one named `html` already rendered
HTML-escaped cells; the shared template environment now turns name-based
autoescaping off. minijinja's `tojson` also writes an undefined value as
`null`, so a wrapper rejects it the way printing does, and a mistyped
`vars` key errors instead of sending `null`.

Verified by rerunning the release-review repro against the branch
binary: `{{ vars.cfg | tojson }}` now renders `{"list": [1, 2], "port":
3000}`, and a custom column named `json` or `html` renders the raw
value. New coverage: a doc-template test for the documented `curl`
example in POSIX mode, a missing-key `tojson` error case, and the
custom-column test now uses a header named `json`. Each of the three
fails with its part of the change reverted.

Bare `{{ vars.cfg }}` still renders Python-style; `tojson` is the
supported way to get JSON.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-20 08:40:22 -07:00
Maximilian RoosandClaude Opus 5.5 9f08a95720 fix(commit): stage before pre-commit hooks as well as after (#4520)
Since v0.80.0, pre-commit hooks during `wt merge` and `wt step squash`
no longer see the uncommitted changes in the index. #4321 moved the
squash path to run hooks before staging so a formatter hook's edits
would land in the squash commit. A hook that reads the index
(`pre-commit run`, lint-staged, `git diff --cached`) then saw nothing
staged and passed, so a merge that v0.80.0 blocked committed the
offending changes.

All commit paths now stage, run the pre-commit hooks, and stage again
with the same `--stage` mode. Hooks see the changes, formatter edits
still land in the commit, and the generated commit message reads the
post-hook index. The second staging warns only about untracked paths the
hooks created. This also applies to `wt step commit` and `wt merge
--no-squash`, which ran hooks before staging even in v0.80.0, so an
index-reading hook now blocks those commits too, and a failed hook
leaves the changes staged there as it already did for squash.

Verified with the release-review repros: a `git diff --cached` gate and
a pre-commit-framework `pre-commit run` gate both block `wt merge` and
`wt step squash` again, as on v0.80.0, where main committed the changes.
A `sed` formatter hook's edit is in the commit and in the prompt the
commit-message command receives, with a clean tree afterwards. The new
`test_pre_commit_hook_sees_staged_changes` covers `wt merge` and `wt
step commit` and fails without the fix.
`test_step_commit_refuses_hook_created_conflict` now unstages in its
hook, because `git merge` refuses to start once the index is staged. The
other snapshot changes move the auto-staging warning ahead of the hook
output.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-20 08:39:44 -07:00
Maximilian RoosandClaude Opus 5.5 25d0c44b0b fix(remove): drain the trash with one background process per repository (#4516)
A prune of many worktrees started one `rm -rf` per staged worktree. On a
193-worktree prune those processes competed for the disk: together they
deleted about 1,500 files/s on 3 cores, while a single `rm` alone
managed 3,000–5,400 files/s on under one core. Read-only directories
(`dr-xr-xr-x`, as installers leave them) also made `rm -rf` fail, so
those entries stayed in `.git/wt/trash/` and every later sweep retried
them.

Removal now starts a hidden `wt _drain-trash`, which holds
`.git/wt/trash.lock` and deletes every staged entry, including entries
staged while it runs. A removal or sweep that finds the lock held starts
nothing, so a prune runs about one deleter. The sweep after `wt remove`
drains leftovers immediately rather than waiting 24 hours. Priority is
unchanged (`taskpolicy -b` on macOS).

The drain uses wt's own walker (`src/remove_dir.rs`), which `wt remove
--foreground` and `wt config state clear` also use:

- On Unix it opens each directory relative to its parent's descriptor
with `O_NOFOLLOW` and unlinks relative to the holding directory. The old
path-based walker could follow a directory swapped for a symlink
mid-walk and delete outside the tree; a swap-race script reproduced
that, and the new walker lost nothing in 20 runs.
- It grants the owner `rwx` on each directory it enters, so read-only
and unreadable trees are deleted, never changing a symlink's target.
Linux's `fchmodat` has no `AT_SYMLINK_NOFOLLOW`, so there it opens the
directory with `O_PATH | O_NOFOLLOW` and changes the mode through
`/proc/self/fd`.
- Subdirectories are removed sequentially, so open descriptors stay
bounded by depth. On a 199k-entry pnpm `node_modules` it deleted about
twice as fast as `rm -rf`.
- On Windows it uses `std::fs::remove_dir_all`, which removes junctions
without following them.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-19 22:12:31 -07:00
Worktrunk Bot 4cb4267619 feat(templates): add expected_worktree_path_of_branch() template function (#4502) 2026-10-18 22:33:02 -07:00
Worktrunk Botandworktrunk-bot ca0563dc8d feat(plugin): route OpenCode 2 worktrees through wt switch and wt remove (#4489)
Under OpenCode 2, the plugin that `wt config plugins opencode install`
writes now registers a `worktrunk` worktree strategy. Worktrees that
OpenCode creates and removes then go through `wt switch --create` and
`wt remove`, the same way the Claude Code plugin's
`WorktreeCreate`/`WorktreeRemove` hooks already route them. This was
requested in #4488. I ran the strategy locally against a scratch repo
with this branch's `wt` and a fake OpenCode context. I haven't run it
inside a real OpenCode 2 session, which CI can't drive.

How each callback maps
([`dev/opencode-plugin.ts`](https://github.com/max-sixty/worktrunk/blob/1c906f5599d7a16df832c56c51aa82d13c82bbd3/dev/opencode-plugin.ts)):

- **create**: runs `wt switch [--create] <name> [--base <ref>] --no-cd
--format=json` in the source checkout and returns `.path`. OpenCode's
`branch` input is a [starting ref, not a branch
name](https://github.com/anomalyco/opencode/blob/dev/packages/plugin/src/worktree.ts),
so `<name>` is the basename of the directory OpenCode suggests (the name
the user typed, or a generated slug). The path comes from
`worktree-path`, since OpenCode accepts a different directory than the
one it suggested. An existing branch is reopened, as in #4487. Passing a
starting ref for an existing branch is refused rather than ignored.
- **remove**: runs `wt remove --foreground [--force] <dir>`. It does
nothing if the checkout is already gone.
- **list**: reads `git worktree list --porcelain -z` and reports the
first record as `root`. Bare and prunable entries are skipped.

Things a maintainer may want to weigh:

- **On by default.** OpenCode selects a strategy as soon as a plugin
adds one. Every OpenCode 2 user with the plugin installed switches to
worktrunk-managed worktrees, and OpenCode's `worktree.directory` setting
stops applying. This matches the Claude Code plugin. The docs page says
so.
- **No force prompt on a dirty worktree.** OpenCode only offers to force
when the error is an instance of its own `Worktree.OperationError`
([`operationError`](https://github.com/anomalyco/opencode/blob/dev/packages/core/src/worktree.ts)
uses `instanceof`). A standalone plugin file can't import that class:
the CLI's runtime shim for `@opencode/plugin` doesn't export `Worktree`.
A dirty removal fails with worktrunk's own message instead (`Cannot
remove worktree: … has uncommitted changes`), and nothing is deleted.
- **Default base.** With no starting ref, the new branch starts from
worktrunk's default (the default branch). OpenCode's `git` strategy uses
the source checkout's HEAD instead.

<details><summary>Local check</summary>

A Node harness imported the plugin, called `setup` with a stub
`ctx.worktree.transform`, and ran each callback against a fresh repo
with `target/debug/wt` on PATH:

- create → `ocrepo.brave-tiger` (the `worktree-path` default), and
`list` returned root + that worktree
- create with `branch: "brave-tiger"` → a second worktree based on it
- create for an existing branch with a starting ref → refused. Without a
ref → reopened the existing worktree
- remove of a dirty worktree → wt's error. With `force` → removed. A
repeat remove → no-op
- final `list` → root only

`test_docs_are_in_sync` and the 14 `opencode` integration tests pass.

</details>

Closes #4488

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-10-17 15:06:01 -07:00
Worktrunk Bot 7c265fc730 Note in wt switch docs that Alt is Option on macOS (#4483)
> _This was written by Codex on behalf of max-sixty_
2026-10-15 20:34:27 -07:00
dependabot[bot] 5814c92b2d chore: bump the docs-site group in /docs with 4 updates (#4444)
Bumps the docs-site group in /docs with 4 updates:
[@astrojs/markdown-remark](https://github.com/withastro/astro/tree/HEAD/packages/markdown/remark),
[@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight),
[astro](https://github.com/withastro/astro/tree/HEAD/packages/astro) and
[playwright](https://github.com/microsoft/playwright).

Updates `@astrojs/markdown-remark` from 7.3.1 to 7.3.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/astro/releases">@​astrojs/markdown-remark's
releases</a>.</em></p>
<blockquote>
<h2><code>@​astrojs/markdown-remark</code><a
href="https://github.com/7"><code>@​7</code></a>.3.2</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18099">#18099</a>
<a
href="https://github.com/withastro/astro/commit/69872618b7b7c915b2bd51a4b41e3a3e3116f3bb"><code>6987261</code></a>
Thanks <a
href="https://github.com/apps/renovate"><code>@​renovate</code></a>! -
Adds YAML parsing with timestamp and merge key support, and formats YAML
errors consistently across Astro, Markdown, MDX, and Markdoc.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18139">#18139</a>
<a
href="https://github.com/withastro/astro/commit/d047b5c23c273d993470258a84bf71852889c76e"><code>d047b5c</code></a>
Thanks <a
href="https://github.com/breken-ai"><code>@​breken-ai</code></a>! -
Fixes Markdown code blocks with languages ending in a symbol, such as
<code>c#</code>, <code>c++</code>, and <code>f#</code>, being
highlighted as <code>c</code> or <code>f</code></p>
</li>
<li>
<p>Updated dependencies [<a
href="https://github.com/withastro/astro/commit/69872618b7b7c915b2bd51a4b41e3a3e3116f3bb"><code>6987261</code></a>,
<a
href="https://github.com/withastro/astro/commit/62b13ba3e0068057a47fbfc2ab8842b263c68f0d"><code>62b13ba</code></a>]:</p>
<ul>
<li><code>@​astrojs/internal-helpers</code><a
href="https://github.com/0"><code>@​0</code></a>.12.0</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/astro/blob/main/packages/markdown/remark/CHANGELOG.md">@​astrojs/markdown-remark's
changelog</a>.</em></p>
<blockquote>
<h2>7.3.2</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18099">#18099</a>
<a
href="https://github.com/withastro/astro/commit/69872618b7b7c915b2bd51a4b41e3a3e3116f3bb"><code>6987261</code></a>
Thanks <a
href="https://github.com/apps/renovate"><code>@​renovate</code></a>! -
Adds YAML parsing with timestamp and merge key support, and formats YAML
errors consistently across Astro, Markdown, MDX, and Markdoc.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18139">#18139</a>
<a
href="https://github.com/withastro/astro/commit/d047b5c23c273d993470258a84bf71852889c76e"><code>d047b5c</code></a>
Thanks <a
href="https://github.com/breken-ai"><code>@​breken-ai</code></a>! -
Fixes Markdown code blocks with languages ending in a symbol, such as
<code>c#</code>, <code>c++</code>, and <code>f#</code>, being
highlighted as <code>c</code> or <code>f</code></p>
</li>
<li>
<p>Updated dependencies [<a
href="https://github.com/withastro/astro/commit/69872618b7b7c915b2bd51a4b41e3a3e3116f3bb"><code>6987261</code></a>,
<a
href="https://github.com/withastro/astro/commit/62b13ba3e0068057a47fbfc2ab8842b263c68f0d"><code>62b13ba</code></a>]:</p>
<ul>
<li><code>@​astrojs/internal-helpers</code><a
href="https://github.com/0"><code>@​0</code></a>.12.0</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/withastro/astro/commit/e4f8f469e59ea4658eccea07b4674c83f0a07bbc"><code>e4f8f46</code></a>
[ci] release (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/markdown/remark/issues/18120">#18120</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/d047b5c23c273d993470258a84bf71852889c76e"><code>d047b5c</code></a>
fix(markdown): keep trailing symbols in code block languages (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/markdown/remark/issues/18139">#18139</a>)</li>
<li>See full diff in <a
href="https://github.com/withastro/astro/commits/@astrojs/markdown-remark@7.3.2/packages/markdown/remark">compare
view</a></li>
</ul>
</details>
<br />

Updates `@astrojs/starlight` from 0.42.5 to 0.42.6
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/starlight/releases">@​astrojs/starlight's
releases</a>.</em></p>
<blockquote>
<h2><code>@​astrojs/starlight</code><a
href="https://github.com/0"><code>@​0</code></a>.42.6</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4252">#4252</a>
<a
href="https://github.com/withastro/starlight/commit/40a258492af4b2ee45159aa4a7ddb30c346acc0b"><code>40a2584</code></a>
Thanks <a
href="https://github.com/olafur-andri"><code>@​olafur-andri</code></a>!
- Adds Icelandic language support</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4229">#4229</a>
<a
href="https://github.com/withastro/starlight/commit/e4a3d82262d62677665cf2dd5ad9a1ba3ae2aa6a"><code>e4a3d82</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Fixes a potential issue with icons being cut off in Firefox when
pinch-zooming.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4226">#4226</a>
<a
href="https://github.com/withastro/starlight/commit/fb562dddae97add7f5997c1f7fffd4f60c9f147c"><code>fb562dd</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Fixes an issue where pages not importing components from
<code>@astrojs/starlight/components</code> included styles of Starlight
components used on other pages.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4250">#4250</a>
<a
href="https://github.com/withastro/starlight/commit/531af7deb7dd164e5b97a49223a82b146e575fdc"><code>531af7d</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Fixes <code>Failed to resolve dependency</code> warnings logged when
running the development server in projects using the Cloudflare
adapter.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4229">#4229</a>
<a
href="https://github.com/withastro/starlight/commit/e4a3d82262d62677665cf2dd5ad9a1ba3ae2aa6a"><code>e4a3d82</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Fixes the <code>codePen</code> and <code>node</code> icons slightly
extending beyond their bounding box.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md">@​astrojs/starlight's
changelog</a>.</em></p>
<blockquote>
<h2>0.42.6</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4252">#4252</a>
<a
href="https://github.com/withastro/starlight/commit/40a258492af4b2ee45159aa4a7ddb30c346acc0b"><code>40a2584</code></a>
Thanks <a
href="https://github.com/olafur-andri"><code>@​olafur-andri</code></a>!
- Adds Icelandic language support</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4229">#4229</a>
<a
href="https://github.com/withastro/starlight/commit/e4a3d82262d62677665cf2dd5ad9a1ba3ae2aa6a"><code>e4a3d82</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Fixes a potential issue with icons being cut off in Firefox when
pinch-zooming.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4226">#4226</a>
<a
href="https://github.com/withastro/starlight/commit/fb562dddae97add7f5997c1f7fffd4f60c9f147c"><code>fb562dd</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Fixes an issue where pages not importing components from
<code>@astrojs/starlight/components</code> included styles of Starlight
components used on other pages.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4250">#4250</a>
<a
href="https://github.com/withastro/starlight/commit/531af7deb7dd164e5b97a49223a82b146e575fdc"><code>531af7d</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Fixes <code>Failed to resolve dependency</code> warnings logged when
running the development server in projects using the Cloudflare
adapter.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4229">#4229</a>
<a
href="https://github.com/withastro/starlight/commit/e4a3d82262d62677665cf2dd5ad9a1ba3ae2aa6a"><code>e4a3d82</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Fixes the <code>codePen</code> and <code>node</code> icons slightly
extending beyond their bounding box.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/withastro/starlight/commit/afe57bbbc254b957b969d581d0f861925035bdcf"><code>afe57bb</code></a>
[ci] release (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4235">#4235</a>)</li>
<li><a
href="https://github.com/withastro/starlight/commit/40a258492af4b2ee45159aa4a7ddb30c346acc0b"><code>40a2584</code></a>
i18n(is): Add Icelandic UI translations (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4252">#4252</a>)</li>
<li><a
href="https://github.com/withastro/starlight/commit/531af7deb7dd164e5b97a49223a82b146e575fdc"><code>531af7d</code></a>
Fix dependency resolution warnings with the Cloudflare adapter (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4250">#4250</a>)</li>
<li><a
href="https://github.com/withastro/starlight/commit/e4a3d82262d62677665cf2dd5ad9a1ba3ae2aa6a"><code>e4a3d82</code></a>
Fix icons cut off when pinch-zooming in Firefox (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4229">#4229</a>)</li>
<li><a
href="https://github.com/withastro/starlight/commit/fb562dddae97add7f5997c1f7fffd4f60c9f147c"><code>fb562dd</code></a>
Fix components barrel file import in <code>\&lt;Footer&gt;</code> (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4226">#4226</a>)</li>
<li>See full diff in <a
href="https://github.com/withastro/starlight/commits/@astrojs/starlight@0.42.6/packages/starlight">compare
view</a></li>
</ul>
</details>
<br />

Updates `astro` from 7.3.5 to 7.3.8
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/astro/releases">astro's
releases</a>.</em></p>
<blockquote>
<h2>astro@7.3.8</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18293">#18293</a>
<a
href="https://github.com/withastro/astro/commit/28e74103fe3d999a56ae3404b5fe67a1ad6d8013"><code>28e7410</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes <code>Astro.cache</code> being <code>undefined</code> when a
custom 404 or 500 page is rendered by the error handler, for example
after a request to an API route with an HTTP method the route doesn't
export</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18298">#18298</a>
<a
href="https://github.com/withastro/astro/commit/0e9e85728999907127e817287dc0a0e3accdbe8e"><code>0e9e857</code></a>
Thanks <a
href="https://github.com/matthewp"><code>@​matthewp</code></a>! - Fixes
<code>astro add</code> removing existing <code>allowBuilds</code>
approvals from <code>pnpm-workspace.yaml</code> with pnpm
v11.0–v11.22</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18263">#18263</a>
<a
href="https://github.com/withastro/astro/commit/882dd98cd9f11c4e7bd0b812d37f865dfca75d3d"><code>882dd98</code></a>
Thanks <a
href="https://github.com/florian-lefebvre"><code>@​florian-lefebvre</code></a>!
- Refactors internal bundling and code transforms to use Vite's
Oxc-based <code>transformWithOxc</code> and Rolldown instead of esbuild.
These packages no longer depend on esbuild directly.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18290">#18290</a>
<a
href="https://github.com/withastro/astro/commit/31f13c3710f2c128d3e1684100e44022a598ffcf"><code>31f13c3</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes the <code>glob()</code> loader not reloading changed files in
dev when the pattern starts with an extglob such as
<code>!(drafts)/**/*.md</code></p>
</li>
</ul>
<h2>astro@7.3.7</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18266">#18266</a>
<a
href="https://github.com/withastro/astro/commit/cba76cc8200890186acf26444d473ebac0fc2623"><code>cba76cc</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes a build error when a Markdown content collection entry loaded
with <code>glob({ deferRender: true })</code> has a <code>layout</code>
frontmatter property. <code>layout</code> is now ignored for content
collection entries, as documented.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18287">#18287</a>
<a
href="https://github.com/withastro/astro/commit/38f6793291ea01a13cf4e51a83aeb16966a5a495"><code>38f6793</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes <code>astro add cloudflare</code> failing to install
dependencies with pnpm v11+ by approving the <code>workerd</code> build
script, and shows the package manager's error output when <code>astro
add</code> fails to install dependencies</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18222">#18222</a>
<a
href="https://github.com/withastro/astro/commit/fcf6ed6d4915eed6c18a20658b73372d074c4832"><code>fcf6ed6</code></a>
Thanks <a
href="https://github.com/mingjunlu"><code>@​mingjunlu</code></a>! -
Fixes an issue where AVIF images were served as <code>image/heif</code>
instead of <code>image/avif</code> in the dev server.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18240">#18240</a>
<a
href="https://github.com/withastro/astro/commit/de4df060306ea4ad78db8438e06bc4640df60ef2"><code>de4df06</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes the <code>cache()</code> handler from <code>astro/hono</code>
and <code>astro/fetch</code> throwing a <code>TypeError</code> when a
cache provider is configured. It now registers the cache provider before
rendering, so <code>Astro.cache</code> is available to downstream
handlers like <code>pages()</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18268">#18268</a>
<a
href="https://github.com/withastro/astro/commit/547b572c65238e20a2fc1b03f6a8a5700035abc0"><code>547b572</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes <code>security.checkOrigin</code> rejecting cross-origin
requests with non-form content types such as
<code>application/json</code>. As documented, the check only applies to
unsafe requests that have no <code>content-type</code> header or one of
<code>application/x-www-form-urlencoded</code>,
<code>multipart/form-data</code>, or <code>text/plain</code>.</p>
</li>
</ul>
<h2>astro@7.3.6</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18166">#18166</a>
<a
href="https://github.com/withastro/astro/commit/5134d0f9e7478f23b1a590fa2416a2469c62ee23"><code>5134d0f</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes an intermittent dev server crash when using
<code>astro:actions</code> inside a server island with adapters that use
a pre-bundled SSR environment (e.g.
<code>@astrojs/cloudflare</code>)</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18076">#18076</a>
<a
href="https://github.com/withastro/astro/commit/8a2df6675aa62fea382bce1cdb30c4260e0f104b"><code>8a2df66</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes stale scoped styles during HMR when both markup and
<code>&lt;style&gt;</code> are changed in a single save</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18252">#18252</a>
<a
href="https://github.com/withastro/astro/commit/2d29e7e38db65fcca7f241c967417003e20ecf43"><code>2d29e7e</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes CSS from other pages leaking into a page's
<code>&lt;head&gt;</code> in dev when the page imports a module such as
<code>astro:config/server</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18000">#18000</a>
<a
href="https://github.com/withastro/astro/commit/67245751e02fb94223266d3c55cc7d7ac65ab060"><code>6724575</code></a>
Thanks <a
href="https://github.com/barclayd"><code>@​barclayd</code></a>! - Fixes
a bug where server islands containing framework components rendered
empty in the dev server when using a custom
<code>src/fetch.ts</code></p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18241">#18241</a>
<a
href="https://github.com/withastro/astro/commit/7c5fd6f1faf4d87d0c9c5836ee47cc0d6d529ca3"><code>7c5fd6f</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes the composable <code>i18n()</code> handler from
<code>astro/fetch</code> and <code>astro/hono</code> returning an empty
404 for paths without a locale prefix. It now renders the custom 404
page, matching <code>astro()</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18164">#18164</a>
<a
href="https://github.com/withastro/astro/commit/1a6997f280529650e4f1dacf0388e8fe07d05a1a"><code>1a6997f</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes CSS Module HMR in dev when a component is rendered both with and
without hydration on the same page. Astro now uses path-based class name
hashing in dev mode so that editing CSS declarations no longer changes
the generated selectors, allowing Vite's CSS HMR to update styles
without a full page reload.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18243">#18243</a>
<a
href="https://github.com/withastro/astro/commit/dd29d62b1e7bd071804f822e90361cf5c9784682"><code>dd29d62</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes <code>context.props</code> being <code>null</code> in middleware
and endpoints when the composable <code>astro/hono</code> or
<code>astro/fetch</code> <code>actions()</code> handler runs before
<code>middleware()</code>, or when <code>pages()</code> runs without
<code>middleware()</code></p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18193">#18193</a>
<a
href="https://github.com/withastro/astro/commit/95d5d16ce983612e09b588bb249f76d273c872f7"><code>95d5d16</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes <code>astro build</code> failing on Windows with Node.js 25+
with <code>ERR_INVALID_ARG_VALUE</code> when clearing the output
directory hits a transient <code>EPERM</code> error</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18220">#18220</a>
<a
href="https://github.com/withastro/astro/commit/d6c13a48c682bb42da1eb295d520f9667035e1fb"><code>d6c13a4</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes type errors reported in Astro's built-in <code>&lt;Picture
/&gt;</code> and <code>&lt;Font /&gt;</code> components when
type-checking a project with <code>tsc</code> and
<code>@astrojs/ts-content-mapper</code></p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18133">#18133</a>
<a
href="https://github.com/withastro/astro/commit/faac481dc86efdd2e4987069a7298f2aea3f1c6c"><code>faac481</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes lost request state when Vite discovers server dependencies
during a request in Cloudflare dev mode</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18146">#18146</a>
<a
href="https://github.com/withastro/astro/commit/2af45163fb7757a533bdf929874278e0a7483cfc"><code>2af4516</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes CSS imported from an <code>injectScript('page')</code> script
being dropped during build</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18159">#18159</a>
<a
href="https://github.com/withastro/astro/commit/e5f8fe0fcfd1c1845ae425cbf874864ce5ab5a37"><code>e5f8fe0</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes a hang when a <code>server:defer</code> component is inside a
slot of another component in an MDX content collection entry</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md">astro's
changelog</a>.</em></p>
<blockquote>
<h2>7.3.8</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18293">#18293</a>
<a
href="https://github.com/withastro/astro/commit/28e74103fe3d999a56ae3404b5fe67a1ad6d8013"><code>28e7410</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes <code>Astro.cache</code> being <code>undefined</code> when a
custom 404 or 500 page is rendered by the error handler, for example
after a request to an API route with an HTTP method the route doesn't
export</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18298">#18298</a>
<a
href="https://github.com/withastro/astro/commit/0e9e85728999907127e817287dc0a0e3accdbe8e"><code>0e9e857</code></a>
Thanks <a
href="https://github.com/matthewp"><code>@​matthewp</code></a>! - Fixes
<code>astro add</code> removing existing <code>allowBuilds</code>
approvals from <code>pnpm-workspace.yaml</code> with pnpm
v11.0–v11.22</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18263">#18263</a>
<a
href="https://github.com/withastro/astro/commit/882dd98cd9f11c4e7bd0b812d37f865dfca75d3d"><code>882dd98</code></a>
Thanks <a
href="https://github.com/florian-lefebvre"><code>@​florian-lefebvre</code></a>!
- Refactors internal bundling and code transforms to use Vite's
Oxc-based <code>transformWithOxc</code> and Rolldown instead of esbuild.
These packages no longer depend on esbuild directly.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18290">#18290</a>
<a
href="https://github.com/withastro/astro/commit/31f13c3710f2c128d3e1684100e44022a598ffcf"><code>31f13c3</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes the <code>glob()</code> loader not reloading changed files in
dev when the pattern starts with an extglob such as
<code>!(drafts)/**/*.md</code></p>
</li>
</ul>
<h2>7.3.7</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18266">#18266</a>
<a
href="https://github.com/withastro/astro/commit/cba76cc8200890186acf26444d473ebac0fc2623"><code>cba76cc</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes a build error when a Markdown content collection entry loaded
with <code>glob({ deferRender: true })</code> has a <code>layout</code>
frontmatter property. <code>layout</code> is now ignored for content
collection entries, as documented.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18287">#18287</a>
<a
href="https://github.com/withastro/astro/commit/38f6793291ea01a13cf4e51a83aeb16966a5a495"><code>38f6793</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes <code>astro add cloudflare</code> failing to install
dependencies with pnpm v11+ by approving the <code>workerd</code> build
script, and shows the package manager's error output when <code>astro
add</code> fails to install dependencies</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18222">#18222</a>
<a
href="https://github.com/withastro/astro/commit/fcf6ed6d4915eed6c18a20658b73372d074c4832"><code>fcf6ed6</code></a>
Thanks <a
href="https://github.com/mingjunlu"><code>@​mingjunlu</code></a>! -
Fixes an issue where AVIF images were served as <code>image/heif</code>
instead of <code>image/avif</code> in the dev server.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18240">#18240</a>
<a
href="https://github.com/withastro/astro/commit/de4df060306ea4ad78db8438e06bc4640df60ef2"><code>de4df06</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes the <code>cache()</code> handler from <code>astro/hono</code>
and <code>astro/fetch</code> throwing a <code>TypeError</code> when a
cache provider is configured. It now registers the cache provider before
rendering, so <code>Astro.cache</code> is available to downstream
handlers like <code>pages()</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18268">#18268</a>
<a
href="https://github.com/withastro/astro/commit/547b572c65238e20a2fc1b03f6a8a5700035abc0"><code>547b572</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes <code>security.checkOrigin</code> rejecting cross-origin
requests with non-form content types such as
<code>application/json</code>. As documented, the check only applies to
unsafe requests that have no <code>content-type</code> header or one of
<code>application/x-www-form-urlencoded</code>,
<code>multipart/form-data</code>, or <code>text/plain</code>.</p>
</li>
</ul>
<h2>7.3.6</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18166">#18166</a>
<a
href="https://github.com/withastro/astro/commit/5134d0f9e7478f23b1a590fa2416a2469c62ee23"><code>5134d0f</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes an intermittent dev server crash when using
<code>astro:actions</code> inside a server island with adapters that use
a pre-bundled SSR environment (e.g.
<code>@astrojs/cloudflare</code>)</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18076">#18076</a>
<a
href="https://github.com/withastro/astro/commit/8a2df6675aa62fea382bce1cdb30c4260e0f104b"><code>8a2df66</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes stale scoped styles during HMR when both markup and
<code>&lt;style&gt;</code> are changed in a single save</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18252">#18252</a>
<a
href="https://github.com/withastro/astro/commit/2d29e7e38db65fcca7f241c967417003e20ecf43"><code>2d29e7e</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes CSS from other pages leaking into a page's
<code>&lt;head&gt;</code> in dev when the page imports a module such as
<code>astro:config/server</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18000">#18000</a>
<a
href="https://github.com/withastro/astro/commit/67245751e02fb94223266d3c55cc7d7ac65ab060"><code>6724575</code></a>
Thanks <a
href="https://github.com/barclayd"><code>@​barclayd</code></a>! - Fixes
a bug where server islands containing framework components rendered
empty in the dev server when using a custom
<code>src/fetch.ts</code></p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18241">#18241</a>
<a
href="https://github.com/withastro/astro/commit/7c5fd6f1faf4d87d0c9c5836ee47cc0d6d529ca3"><code>7c5fd6f</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes the composable <code>i18n()</code> handler from
<code>astro/fetch</code> and <code>astro/hono</code> returning an empty
404 for paths without a locale prefix. It now renders the custom 404
page, matching <code>astro()</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18164">#18164</a>
<a
href="https://github.com/withastro/astro/commit/1a6997f280529650e4f1dacf0388e8fe07d05a1a"><code>1a6997f</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes CSS Module HMR in dev when a component is rendered both with and
without hydration on the same page. Astro now uses path-based class name
hashing in dev mode so that editing CSS declarations no longer changes
the generated selectors, allowing Vite's CSS HMR to update styles
without a full page reload.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18243">#18243</a>
<a
href="https://github.com/withastro/astro/commit/dd29d62b1e7bd071804f822e90361cf5c9784682"><code>dd29d62</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes <code>context.props</code> being <code>null</code> in middleware
and endpoints when the composable <code>astro/hono</code> or
<code>astro/fetch</code> <code>actions()</code> handler runs before
<code>middleware()</code>, or when <code>pages()</code> runs without
<code>middleware()</code></p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18193">#18193</a>
<a
href="https://github.com/withastro/astro/commit/95d5d16ce983612e09b588bb249f76d273c872f7"><code>95d5d16</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes <code>astro build</code> failing on Windows with Node.js 25+
with <code>ERR_INVALID_ARG_VALUE</code> when clearing the output
directory hits a transient <code>EPERM</code> error</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18220">#18220</a>
<a
href="https://github.com/withastro/astro/commit/d6c13a48c682bb42da1eb295d520f9667035e1fb"><code>d6c13a4</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes type errors reported in Astro's built-in <code>&lt;Picture
/&gt;</code> and <code>&lt;Font /&gt;</code> components when
type-checking a project with <code>tsc</code> and
<code>@astrojs/ts-content-mapper</code></p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18133">#18133</a>
<a
href="https://github.com/withastro/astro/commit/faac481dc86efdd2e4987069a7298f2aea3f1c6c"><code>faac481</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes lost request state when Vite discovers server dependencies
during a request in Cloudflare dev mode</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/withastro/astro/commit/3571e2d2e80a66764254fa9b7750704a150ca3f6"><code>3571e2d</code></a>
[ci] release (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18292">#18292</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/0e9e85728999907127e817287dc0a0e3accdbe8e"><code>0e9e857</code></a>
Keep existing pnpm allowBuilds approvals in astro add (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18298">#18298</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/882dd98cd9f11c4e7bd0b812d37f865dfca75d3d"><code>882dd98</code></a>
Replace esbuild with Vite and Rolldown APIs (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18263">#18263</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/28e74103fe3d999a56ae3404b5fe67a1ad6d8013"><code>28e7410</code></a>
fix(astro): provide Astro.cache when rendering error pages (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18293">#18293</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/31f13c3710f2c128d3e1684100e44022a598ffcf"><code>31f13c3</code></a>
Fix glob() loader watcher ignoring patterns starting with an extglob
like `!(...</li>
<li><a
href="https://github.com/withastro/astro/commit/25c19fa3ce8b5044efa246b7c2d1e50e8e8cffcf"><code>25c19fa</code></a>
[ci] release (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18272">#18272</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/38f6793291ea01a13cf4e51a83aeb16966a5a495"><code>38f6793</code></a>
fix(astro): approve workerd builds in <code>astro add cloudflare</code>
for pnpm v11+ an...</li>
<li><a
href="https://github.com/withastro/astro/commit/547b572c65238e20a2fc1b03f6a8a5700035abc0"><code>547b572</code></a>
Restore content-type gate in security.checkOrigin so JSON requests are
not bl...</li>
<li><a
href="https://github.com/withastro/astro/commit/fcf6ed6d4915eed6c18a20658b73372d074c4832"><code>fcf6ed6</code></a>
fix(assets): return requested format from Sharp transform (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18222">#18222</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/bec7d186681597264814ade73bb365023c94d1bf"><code>bec7d18</code></a>
Ignore <code>layout</code> frontmatter in Markdown content collection
entries with `defe...</li>
<li>Additional commits viewable in <a
href="https://github.com/withastro/astro/commits/astro@7.3.8/packages/astro">compare
view</a></li>
</ul>
</details>
<br />

Updates `playwright` from 1.63.0 to 1.64.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/microsoft/playwright/releases">playwright's
releases</a>.</em></p>
<blockquote>
<h2>v1.64.0</h2>
<h2>🧰 WebMCP</h2>
<p>New <a
href="https://playwright.dev/docs/api/class-page#page-webmcp">page.webmcp</a>
and <a
href="https://playwright.dev/docs/api/class-frame#frame-webmcp">frame.webmcp</a>
give access to the tools that a page registers through the experimental
<a href="https://playwright.dev/docs/api/class-webmcp">WebMCP</a>
browser API, so you can test them like any other part of your app:</p>
<pre lang="js"><code>const browser = await chromium.launch({ args:
['--enable-features=WebMCP'] });
const page = await browser.newPage();
await page.goto('https://example.com');
<p>for (const tool of await page.webmcp.tools())
console.log(tool.name, tool.description);</p>
<p>const result = await page.webmcp.callTool('add', { a: 2, b: 40 });
console.log(result.content[0].text); // &quot;42&quot;
</code></pre></p>
<p><a href="https://playwright.dev/docs/getting-started-mcp">Playwright
MCP</a> also supports WebMCP by default, with page-defined tools offered
to the agent as <code>webmcp_&lt;tool&gt;</code>. Pass
<code>--no-webmcp</code> to opt out.</p>
<p><a
href="https://playwright.dev/docs/getting-started-cli"><code>playwright-cli</code></a>
exposes them as well:</p>
<pre lang="bash"><code>playwright-cli webmcp-list
playwright-cli webmcp-call search_catalog --params
'{&quot;query&quot;:&quot;cats&quot;}'
</code></pre>
<h2>🎬 Better videos</h2>
<p>Videos can now be recorded at a custom frame rate, and the
decorations for actions are styled with plain CSS:</p>
<pre lang="js"><code>// playwright.config.ts
import { defineConfig } from '@playwright/test';
<p>export default defineConfig({
use: {
video: {
mode: 'on',
size: { width: 1920, height: 1080 },
fps: 60,
show: {
actions: {
style: {
point: 'width: 20px; height: 20px; border-radius: 50%; background: red',
highlight: 'outline: 2px solid <a
href="https://redirect.github.com/microsoft/playwright/issues/333">#333</a>;
background: rgba(0, 128, 255, .15)',
title: 'font-size: 16px',
},
},
},
},
&lt;/tr&gt;&lt;/table&gt;
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/microsoft/playwright/commit/606ecd8b34bac100db32561b6278ffd76e5eb3cd"><code>606ecd8</code></a>
cherry-pick(<a
href="https://redirect.github.com/microsoft/playwright/issues/43192">#43192</a>):
fix(locators): parse locators the way the client API bui...</li>
<li><a
href="https://github.com/microsoft/playwright/commit/e4f872c79530583300185d3e4aa9689e2f85d0b0"><code>e4f872c</code></a>
cherry-pick(<a
href="https://redirect.github.com/microsoft/playwright/issues/43188">#43188</a>):
feat(api): expose asLocatorDescription via LocalUtils fo...</li>
<li><a
href="https://github.com/microsoft/playwright/commit/f6a439e6f496f75d8e8b687116eef8c21316aa1f"><code>f6a439e</code></a>
cherry-pick(<a
href="https://redirect.github.com/microsoft/playwright/issues/43189">#43189</a>):
docs(webmcp): expose WebMCP to all languages</li>
<li><a
href="https://github.com/microsoft/playwright/commit/e2335c30f16196a96f81c099598803ca74f9120c"><code>e2335c3</code></a>
cherry-pick(<a
href="https://redirect.github.com/microsoft/playwright/issues/43174">#43174</a>):
fix(mcp): do not close the browser twice when the client...</li>
<li><a
href="https://github.com/microsoft/playwright/commit/d2a436e0111091ba99836fa6711de28201606cfc"><code>d2a436e</code></a>
cherry-pick(<a
href="https://redirect.github.com/microsoft/playwright/issues/43163">#43163</a>):
Revert &quot;fix(blob): do not remove existing reports from o...</li>
<li><a
href="https://github.com/microsoft/playwright/commit/a0c4b5efc965577e19f5ebfdcc27f384d3058783"><code>a0c4b5e</code></a>
cherry-pick(<a
href="https://redirect.github.com/microsoft/playwright/issues/43175">#43175</a>):
feat(api): return language-specific locator code from re...</li>
<li><a
href="https://github.com/microsoft/playwright/commit/3f7d535c7b69ff1997307dc304c3c8c76b51179d"><code>3f7d535</code></a>
cherry-pick(<a
href="https://redirect.github.com/microsoft/playwright/issues/43131">#43131</a>):
docs: fix broken C# samples in API docs and handles guide</li>
<li><a
href="https://github.com/microsoft/playwright/commit/1cde64f74a0f85304f2f4091a46670bf9a3e0dc3"><code>1cde64f</code></a>
cherry-pick(<a
href="https://redirect.github.com/microsoft/playwright/issues/43170">#43170</a>):
fix(locators): parse mixed role options</li>
<li><a
href="https://github.com/microsoft/playwright/commit/8851e7296508ae50cd1f822e50d1e4fa92eab218"><code>8851e72</code></a>
cherry-pick(<a
href="https://redirect.github.com/microsoft/playwright/issues/43171">#43171</a>):
fix(locators): parse JavaScript escapes and regex classes</li>
<li><a
href="https://github.com/microsoft/playwright/commit/dcc50654872510b630c73ec6eba1fb3d625c735e"><code>dcc5065</code></a>
cherry-pick(<a
href="https://redirect.github.com/microsoft/playwright/issues/43172">#43172</a>):
fix(locator): parse within and getByRef locators</li>
<li>Additional commits viewable in <a
href="https://github.com/microsoft/playwright/compare/v1.63.0...v1.64.0">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-13 13:20:01 -07:00
Worktrunk Botandworktrunk-bot 34eb6252db docs(config): name every supported forge and opencode in help text (#4439)
The help text for three features named only the original subset of what
the code supports. This updates the `after_long_help` sources and
regenerates the doc pages, skill mirrors, and help snapshots from them.

- **`wt config show --full`** said it checks whether `gh` or `glab` is
installed and authenticated. `render_diagnostics` in
`src/commands/config/show.rs` checks the CLI for the repository's forge,
which can also be `tea` (Gitea) or `az` (Azure DevOps). The text now
names all four.
- **First-run LLM offer** listed `claude` and `codex` as detected tools.
`detect_llm_tool_with` in `src/output/commit_generation.rs` also detects
`opencode`.
- **CI status** was described as "GitHub/GitLab" in the `wt config state
get` and `wt config state cache` help and in `wt list`'s Full mode
paragraph. CI status also covers Gitea and Azure DevOps
(`src/commands/list/ci_status/{gitea,azure}.rs`), so these now say
"forge CI".

No tests added: only help text changed. `test_docs_are_in_sync` and the
`help` snapshot tests pass locally.

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-10-13 13:19:17 -07:00
Worktrunk Bot 61b2609f18 docs: drop references to the removed gh auth status gate and CAS tail (#4468) 2026-10-13 08:42:38 -07:00
Maximilian RoosandClaude Opus 5.5 f98bd11816 fix(list): leave CI blank when the forge CLI isn't logged in (#4449)
Since #4436, any failed forge call shows ⚠. That includes a CLI that is
installed but not logged in, which then puts a permanent ⚠ in `wt list
--full`, the shell prompt, and the Claude Code statusline. This change
leaves the cell blank when the CLI holds no login for the forge's host,
and keeps ⚠ for a failure from a CLI that does (offline, rate limit,
expired token).

Each CLI answers from its own local state, so a lost connection never
reads as logged out:

- **GitHub**: `gh` exits with its documented code 4 when it has no login
for the host it resolved for the request. The backend reads that exit
code, so SSH host aliases resolve the way `gh` resolves them.
- **GitLab / Gitea / Azure DevOps**: after a failed call,
`remote_ref::is_authed_for(forge, host)` asks `glab config get token
--host`, `tea logins list --output json`, or `az account show`, for the
`forge.hostname` if configured, else the remote's host. The answer is
cached per forge and host for the process.

`wt config show --full` uses the same check for the repo's host and
names that host in its warning. It replaces `CiToolsStatus`, which
probed all four CLIs to report one, and asked `gh auth status` / `glab
auth status`, which contact the server and accept a login for any host.
`tea`'s host-agnostic `has_any_login` is gone with it.

Behavior changes:

- `wt list --full` / statusline: a CLI with no login for the host leaves
the CI cell blank instead of ⚠. The legend now lists that under blank,
and ⚠'s examples say "expired login".
- `wt config show --full`: a login for another host no longer counts,
and the warning says which host it checked (`gh installed but not
authenticated for github.com`).

Known limits: a GitLab or Gitea remote through an SSH host alias is
checked under the alias, so a failure there shows blank unless
`forge.hostname` names the real host; Azure DevOps counts only an `az
login`, not a PAT from `az devops login`.

Tests: the failed-list test now covers logged-in and logged-out cases
for `gh` (exit 1 vs 4) and `glab` (token vs none); the `tea` CI mocks
hold a login for the test host; the `tea` login-discovery test adds a
login for another host.

Follows #4436.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-12 10:51:02 -07:00
Maximilian RoosandClaude Opus 5.5 397136ea31 refactor: stop refining failed forge calls and missing nu/pwsh (#4436)
Applies `AGENTS.md`'s **Other Tools Own Their Conventions** (#4435) to
what #4106 left: where worktrunk refined how it handles a case outside
standard use, stop handling the case.

**CI status: a failed forge call shows the error indicator.** The
classifier that searched `gh`/`glab`/`az`/`tea` output for English
phrases ("rate limit", "403", "connection", …) to choose between ⚠ and a
blank "no CI" cell is deleted. Any failed call now shows ⚠. Gitea reads
only whether the HTTP status is an error, not which one. The two lookups
by commit SHA (GitHub check runs, Gitea combined status) now run only
when some remote-tracking ref contains the head, since the forge answers
a commit it doesn't have with an error and ordinary unpushed work would
otherwise show ⚠. GitLab and Azure look pipelines up by branch and are
unchanged.

**PowerShell on Unix.** When `pwsh` can't be queried there is no
PowerShell profile, rather than a guessed `~/.config/powershell` one
(left by #4422).

**Nushell.** When `nu` can't be queried there are no autoload
candidates, rather than a reconstruction of Nushell's data-dir rule.
Install can't write into a legacy directory, since the candidate list is
empty.

Behavior changes:

- `gh`/`glab`/`az` installed but not logged in now shows ⚠ under `wt
list --full` instead of a blank cell. Detection checks that the tool is
installed, and `wt config show` reports that it isn't logged in. The ⚠
legend now names "not logged in".
- A Gitea 404 shows ⚠.
- `wt config shell install powershell` (or `nu`) without the tool fails
with "No shell config files found", and uninstall no longer finds a
wrapper left behind after `nu` was removed.

**Fish's completion path.** `Shell::completion_path` answered for every
shell, but only fish installs a completion file; its other arms,
including the Nushell one this change touched, were dead.
`shell::fish_completion_path` replaces it.

Tests: the retriable-classifier unit tests are gone, and the Gitea test
that only distinguished a blanked 500 body. Mocks now answer for
branches other than the one under test, since those would otherwise show
⚠. New tests: a failed `gh pr list` / `glab mr list` shows ⚠; an
unpushed head skips the GitHub and Gitea lookups by SHA, each with a
pushed control. Shell unit tests and the PowerShell integration tests no
longer depend on a real `nu` or `pwsh`; they pass with only
`/usr/bin:/bin` on `PATH`. Full integration and unit suites pass
locally.

Ref #4106.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-12 00:18:19 -07:00
marcusjihansson 3c7cac7044 docs(extending): add wt-tui to the custom subcommand examples (#4386) 2026-10-11 09:35:47 -07:00
Worktrunk Bot 824bec6a14 docs(llm-commits): bump the OpenCode commit-generation model to Claude Haiku 5.5 (#4432) 2026-10-11 09:34:07 -07:00
Worktrunk Botandworktrunk-bot 59501986af fix: parse remote URLs with gix-url so IPv6 hosts and SSH ports get distinct project identifiers (#4421)
`GitRemoteUrl::parse` split SSH authorities at the first `:`, so
`ssh://git@[2001:db8::1]/owner/repo.git` and
`ssh://git@[2001:db8::2]/owner/repo.git` both became `[2001/owner/repo`.
Because that identifier selects both saved approvals and `[projects]`
settings, the two servers shared them. The parser also dropped explicit
SSH ports, merging servers on different ports. The parser now delegates
transport syntax to `gix-url` 0.40, and the identity keeps the full IPv6
host and any non-default SSH port.

What changes:

- **Syntax from `gix-url`.** It handles scheme, SCP form, userinfo
(split at the final `@` of the authority, which is the host git connects
to), IPv6 literals and ports. Worktrunk still owns the namespace/repo
split and the forge policy. HTTP(S), git and SSH remotes are accepted,
plus SCP when it has a non-empty user (the existing rule). Remote
helpers, `file://`, local paths, option-like hosts and out-of-range
ports are rejected.
- **Escaped paths.** The path comes from `original_path()`, not the
decoded `path`, so `evil%2Frepo` stays a single segment in SSH, SCP and
git forms, as it already did for HTTPS.
- **IPv6 hosts** are always bracketed (`[2001:db8::1]`), since `gix-url`
strips the brackets for SSH but keeps them for HTTP(S).
- **SSH ports.** A new `ssh_port` field goes into `project_identifier()`
(`host:2222/owner/repo`) but not into `host()`, which feeds web and API
URLs; an SSH port is not the web port. An explicit `:22` is treated as
no port. HTTP(S) and git keep their explicit port in `host()`, as
before.
- **No new identity API.** `project_identifier()` is still the only
identity; there is no separate one.

Approvals and settings: the ordinary forms of one project still share an
identifier (`git@host:o/r`, `ssh://git@host/o/r`,
`ssh://git@host:22/o/r`, `https://host/o/r`). Corrected identities get
fresh keys, so old IPv6-truncated or port-merged approvals don't carry
over. The same applies to `[projects]` settings: a user on
`ssh://…:2222` with a `[projects."host/o/r"]` entry needs to re-key it
to `host:2222/o/r`. Nothing warns about this. The config docs now say
that a non-default port stays with the host.

Smaller identifier changes from delegating normalization:

- DNS-style hostnames are lowercased (`GitHub.com` → `github.com`).
- `git+ssh://` and `ssh+git://` now parse; before, they fell back to the
raw-URL identifier.
- Some inputs `gix-url` rejects now fall back to the raw-URL identifier
in `Repository::project_identifier`: URLs containing whitespace, and SCP
`user@[ipv6]:path`. Each still gets a distinct identifier.

Tests:

- New unit tests cover the IPv6 collision, port isolation (including a
port inside hostile userinfo), escaped paths across transports, and
rejected forms.
- `tests/integration_tests/repository.rs` checks that
`Repository::project_identifier` keeps the two IPv6 remotes apart. It
also checks that `Approvals::is_command_approved` and
`UserConfig::worktree_path_for_project` pick the right entry for port
2222 versus the shared SSH/HTTPS identifier.
- The full lib and integration suites pass locally, except for tests
that bind Unix sockets or sign commits. Those fail the same way on
`main` in this sandbox.
- Binary size was not measured; the issue's ~84 KiB figure is a
standalone probe.

Closes #4418 — automated triage

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-10-11 03:26:02 -07:00
Worktrunk Bot 86674a2d1f feat(switch): add [switch.picker] preview setting to open the picker list-only (#4428) 2026-10-11 08:53:40 +00:00
Shuyun Yang 5b0930f09b Add branch-addressed merge with --branch (#4360) 2026-10-10 18:14:47 -07:00
Maximilian Roos c98f5f5028 docs(shell): make config shell help the setup home (#4344)
`wt config shell --help` provides setup, activation and current-shell
diagnostics. The generated config reference now includes the existing
init/install/uninstall help; the specialist shell-integration guide
links to those recipes while retaining installed-file locations,
warnings, wrapper internals and public anchors.

This consolidates the authored recipes and expands the reference. Of
+754/−183 lines across 11 files, +624 come from three generated
config-reference copies. Authored Rust help changes are +40/−12.

Latest main `913ff0547` is integrated, preserving Nushell’s newer 0.113+
requirement. Fresh documentation sync, Astro build and all 16 built-site
checks pass. The current candidate passed the full project gate: 5,196
tests passed and one skipped, with Clippy, formatting, lockfile and
doctest checks passing. The built binary’s help was reviewed at 80
columns.

> _This was written by Codex on behalf of max-sixty_
2026-10-10 18:02:30 -07:00
501d017274 refactor(config): read system config from one fixed path per platform (#4169)
System config is now read from one fixed path per platform, and
`XDG_CONFIG_DIRS` is no longer consulted. The location is
`WORKTRUNK_SYSTEM_CONFIG_PATH` when set, otherwise:

- macOS: `/Library/Application Support/worktrunk/config.toml`
- Windows: `%PROGRAMDATA%\worktrunk\config.toml`
- other Unix: `/etc/xdg/worktrunk/config.toml`

This PR started as a filter for relative `XDG_CONFIG_DIRS` entries
(#4106, item 4). Removing the search path removes that case without a
filter, and git's `--system` file is a fixed path for the same reason.
`system_config_path()` now returns the location whether or not the file
exists, so `default_system_config_path()`, which repeated the lookup
order for the `wt config show` hint, is deleted, along with
`system_config_dirs()`, `platform_default_dirs()`, the three
`XDG_CONFIG_DIRS` tests and the env-var docs row.

Behavior changes: directories listed in `XDG_CONFIG_DIRS` are no longer
searched (common values such as NixOS's, Ubuntu's and Flatpak's already
include `/etc/xdg`), and macOS no longer falls back to `/etc/xdg` after
`/Library/Application Support`.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: worktrunk-bot <worktrunk-bot@users.noreply.github.com>
Co-authored-by: Maximilian Roos <m@maxroos.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-10 17:17:53 -07:00
Maximilian Roos 7ac07ecf67 docs: require full release documentation review (#4412)
Require an independent review of every documentation change since the
previous release, including changes already on main and edits arriving
during release preparation. Review purpose and proportion before
clarity, accuracy, examples, links, and rendered context; verify
corrections and block tagging on unresolved findings.

Apply the 0.81.0 review's source corrections: remove implementation
exposition, repair the bare-repo navigation example, clarify merge hook
timing and branch-only removal JSON, and include squash backups in the
metadata inventory. Canonical help, generated pages, shipped skill
mirrors, and help snapshots remain synchronized. Candidate-only
release-note edits stay with the release PR.

Validation: independent source, workflow, and rendered-page reviews;
project pre-merge gate (5,208 tests, lint, Rustdoc, and doctests);
documentation sync, 56 help cases, both site builds, and 16 built-site
checks.

> _This was written by Codex on behalf of max-sixty_
2026-10-10 16:47:14 -07:00
Maximilian Roos 62b82ae923 Explain discarded changes and provide safe squash recovery (#4347)
Removing a dirty worktree recommends `git stash -u` when untracked files
need preserving. Forced removal lists the changes it will discard from a
fresh inventory after approved pre-remove hooks. An unreadable index
produces Git’s diagnostic and still permits forced removal; SIGINT and
SIGTERM cancel before deletion and stop the remaining batch through the
existing native cancellation path.

Squashing staged work prints the backup ref and a command to recover its
exact saved commit in a new worktree. Recovery preserves current
branches, staging, and unstaged or untracked files. Git continues to own
the backup and reflog.

Validated against main `913ff0547`: the required pre-merge gate passed
5,208 tests with one skipped, including forced-removal disclosure,
corrupt-index diagnostics, native cancellation, and executed recovery
commands. Formatting, Clippy, documentation sync and doctests pass.
Independent source/caller review found no remaining issues.

> _This was written by Codex on behalf of max-sixty_
2026-10-10 14:06:15 -07:00
dependabot[bot] 913ff0547b chore: bump sharp from 0.35.4 to 0.35.5 in /docs (#4392)
Bumps [sharp](https://github.com/lovell/sharp) from 0.35.4 to 0.35.5.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/lovell/sharp/releases">sharp's
releases</a>.</em></p>
<blockquote>
<h2>v0.35.5</h2>
<p><a
href="https://github.com/lovell/sharp-libvips/releases/tag/v1.3.4">https://github.com/lovell/sharp-libvips/releases/tag/v1.3.4</a></p>
<ul>
<li>
<p>Add upper bounds check on length of <code>linear</code> and GIF
<code>delay</code> arrays.</p>
</li>
<li>
<p>Improve error handing when WebAssembly fallback also fails.
<a href="https://redirect.github.com/lovell/sharp/pull/4593">#4593</a>
<a href="https://github.com/lazerg"><code>@​lazerg</code></a></p>
</li>
<li>
<p>TypeScript: Allow multi-frame options for JXL output.
<a href="https://redirect.github.com/lovell/sharp/pull/4602">#4602</a>
<a href="https://github.com/ramin-010"><code>@​ramin-010</code></a></p>
</li>
<li>
<p>TypeScript: Remove non-existent named export.
<a
href="https://redirect.github.com/lovell/sharp/issues/4604">#4604</a></p>
</li>
<li>
<p>Increase accepted dimensions when extending an image.
<a
href="https://redirect.github.com/lovell/sharp/issues/4605">#4605</a></p>
</li>
<li>
<p>Improve gain map support for <code>extract</code> and
<code>rotate</code> operations.
<a
href="https://redirect.github.com/lovell/sharp/issues/4606">#4606</a></p>
</li>
<li>
<p>Tests: Ensure composite tests pass on big endian platforms.
<a
href="https://redirect.github.com/lovell/sharp/issues/4609">#4609</a></p>
</li>
</ul>
<h2>v0.35.5-rc.1</h2>
<p><a
href="https://github.com/lovell/sharp-libvips/releases/tag/v1.3.4-rc.1">https://github.com/lovell/sharp-libvips/releases/tag/v1.3.4-rc.1</a></p>
<ul>
<li>
<p>Add upper bounds check on length of <code>linear</code> and GIF
<code>delay</code> arrays.</p>
</li>
<li>
<p>Improve error handing when WebAssembly fallback also fails.
<a href="https://redirect.github.com/lovell/sharp/pull/4593">#4593</a>
<a href="https://github.com/lazerg"><code>@​lazerg</code></a></p>
</li>
<li>
<p>TypeScript: Allow multi-frame options for JXL output.
<a href="https://redirect.github.com/lovell/sharp/pull/4602">#4602</a>
<a href="https://github.com/ramin-010"><code>@​ramin-010</code></a></p>
</li>
<li>
<p>TypeScript: Remove non-existent named export.
<a
href="https://redirect.github.com/lovell/sharp/issues/4604">#4604</a></p>
</li>
<li>
<p>Increase accepted dimensions when extending an image.
<a
href="https://redirect.github.com/lovell/sharp/issues/4605">#4605</a></p>
</li>
<li>
<p>Improve gain map support for <code>extract</code> operation.
<a
href="https://redirect.github.com/lovell/sharp/issues/4606">#4606</a></p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/lovell/sharp/commit/51a990faa26ade5586a4934ac9673c98d8893326"><code>51a990f</code></a>
Release v0.35.5</li>
<li><a
href="https://github.com/lovell/sharp/commit/96de105d9d36ab04c76c2b78b97255171630d236"><code>96de105</code></a>
Upgrade to sharp-libvips v1.3.4</li>
<li><a
href="https://github.com/lovell/sharp/commit/3a61390260e0aa017046af9ad107abd62f3c98c0"><code>3a61390</code></a>
CI: Configure Dependabot with all package.json locations</li>
<li><a
href="https://github.com/lovell/sharp/commit/4940c500a63a9193b1ad5d3804a2d241ca36995b"><code>4940c50</code></a>
Improve gain map support for rotate/flip/flop ops</li>
<li><a
href="https://github.com/lovell/sharp/commit/20654aa60eaa85a37369ef69a7ca6506b65f8c85"><code>20654aa</code></a>
Prerelease v0.35.5-rc.1</li>
<li><a
href="https://github.com/lovell/sharp/commit/ef4f9348a97053ceddacd23dcb6e39cce5a1fc7d"><code>ef4f934</code></a>
CI: Upgrade to Ubuntu 26.04</li>
<li><a
href="https://github.com/lovell/sharp/commit/358df954c5f58487392e1a9af743e112e8998d67"><code>358df95</code></a>
Upgrade to libvips v8.18.7</li>
<li><a
href="https://github.com/lovell/sharp/commit/49f4903d34eddcd68b79872c511c198f124885a3"><code>49f4903</code></a>
Improve gain map support for rotate-then-extract <a
href="https://redirect.github.com/lovell/sharp/issues/4606">#4606</a></li>
<li><a
href="https://github.com/lovell/sharp/commit/0e2e55eb3a44da5d602adedd6b51a03e652e3b20"><code>0e2e55e</code></a>
Silence a couple of compiler/static analysis warnings</li>
<li><a
href="https://github.com/lovell/sharp/commit/cef3b8c467c21f7e84bd51d5e53f2d115669f8d8"><code>cef3b8c</code></a>
Improve gain map support for extract operation <a
href="https://redirect.github.com/lovell/sharp/issues/4606">#4606</a></li>
<li>Additional commits viewable in <a
href="https://github.com/lovell/sharp/compare/v0.35.4...v0.35.5">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=sharp&package-manager=npm_and_yarn&previous-version=0.35.4&new-version=0.35.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/max-sixty/worktrunk/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-10 11:52:00 -07:00
Worktrunk Botandworktrunk-bot 8ad92229a3 fix(demos): pass the build target to parallel demo recordings (#4407)
`docs/demos/build` recorded the wrong output whenever it took its
parallel path, which it does for any run with more than one non-TUI demo
unless `--sequential` is passed. #4178 added a positional `target`
parameter to `record_demo`, but only the sequential call site was
updated. The `executor.submit(...)` call still passed `args.text` and
`args.snapshot` in the old positions, so:

- `./build docs --snapshot` wrote `.txt` text output instead of updating
`docs/demos/snapshots/*.snap`, because `snapshot_mode` was always
`False`.
- `./build docs --text` recorded GIFs.
- A plain GIF run passed `target=False` to checkpoint validation.

The parallel call now passes `target`. Both call sites pass `text_mode=`
and `snapshot_mode=` by keyword, so the next positional parameter can't
shift them.

There's no regression test: the script drives VHS and has no test
harness in this repo. The sequential call site, which already passed
`target`, shows the intended argument order. I checked the edit by
parsing the script; it hasn't been run end to end.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-10-10 11:50:46 -07:00
Maximilian Roos cd6732e93a fix: preserve native foreground job control (#4400)
Foreground hooks could hang when they changed terminal settings:
Worktrunk created a separate process group without giving it the
terminal, so the kernel stopped the child with SIGTTOU. Foreground
commands now stay in the caller's native job group, consistently for
single and concurrent commands. Terminal access, Ctrl-C and job
suspension follow the shell's native behavior.

### Design

- `signal_forwarder` owns foreground cancellation and child admission.
Native SIGINT/SIGTERM deaths stop later hooks and worktree steps; a
child that catches Ctrl-C keeps its ordinary exit semantics, including
exit code 130. SIGTERM addressed to wt cancels its owned work even when
a child catches it.
- `shell_exec` and concurrent output share that lifecycle. Output drains
stop on cancellation; complete buffered stdin uses an anonymous
temporary file instead of writer threads. Real process pipelines remain
pipes. Buffered stdin therefore requires temporary storage and is
seekable.
- Help and preview pagers use Git's pager selection and the same process
primitives. Interactive pager cancellation propagates silently, and
preview deadlines cover output and child waits.
- Shell wrappers apply directory directives and clean temporary files
while preserving native interrupt behavior. Nushell integration now
requires 0.113 or newer and uses native `finally` cleanup.

Nushell 0.116's `finally` itself can abort a noninteractive script after
Ctrl-C even when the child catches it and exits successfully.
Worktrunk's directory change and cleanup still complete; the same
script-continuation difference reproduces in a minimal Nushell
`try/finally` without Worktrunk.

Bash applies aborted-line cleanup through a writable `PROMPT_COMMAND`.
With a readonly prompt command or `set -a`, it applies ordinary cleanup
while preserving that configuration; Ctrl-C can leave the pending
directory directive unapplied.

The main behavioral coverage uses real children and PTYs: terminal
ownership/settings, raw and caught Ctrl-C, PID-targeted cancellation,
stopped jobs, concurrent output, pagers, and generated shell wrappers.
Module contracts describe ownership and platform differences.

### Validation

The complete project pre-merge gate passes locally, including the
real-shell/PTY suite, Clippy, formatting, locked dependencies, and
documentation checks. The change also received an independent Opus
correctness and simplicity review, with fixes reviewed through
convergence. macOS runtime validation is local; Linux and Windows run in
CI.

Closes #4389. Thanks to @user753 for the reproduction.

> _This was written by Codex on behalf of max-sixty_
2026-10-08 16:31:37 -07:00
Worktrunk Bot e4a25d6e37 feat(hooks)!: connect foreground hooks to the terminal (#3129) 2026-10-07 01:14:05 -07:00
Worktrunk Botandworktrunk-bot cd5d51dbd5 test(docs): serve a local stand-in for the shields.io badge in browser tests (#4383)
`publish-docs` [run
37425036753](https://github.com/max-sixty/worktrunk/actions/runs/37425036753)
failed on `desktop code examples fit the content column` with
`page.goto: Timeout 30000ms exceeded ... waiting until "load"` on `/`.
That timeout is a side effect of #4382, which switched every
browser-test navigation from `domcontentloaded` to `load`. Every page
header loads the GitHub-stars badge from `img.shields.io`
([`SocialIcons.astro`](https://github.com/max-sixty/worktrunk/blob/220e59ef641ad34d770143959ed103e541275264/docs/src/components/SocialIcons.astro#L8)),
so `load` now also waits on that third-party host. One slow badge
response stalls the navigation.

**Fix.** A `newPage` helper in `docs/tests/browser-site.test.mjs` routes
`https://img.shields.io/**` to a local SVG sized to the badge's declared
90×20, and all five page-creation sites use it. That leaves the local
server and the Google web fonts as the only things `load` waits for. The
fonts have to stay real, because the layout assertions measure text set
in JetBrains Mono. Analytics doesn't load on `127.0.0.1` (it's gated on
`hostname === 'worktrunk.dev'`), and the docs content has no other
remote images.

**Verification.** I ran a local Chromium probe against the built site,
routing the badge to a request that never answers:
- With the stalled badge, `page.goto(..., { waitUntil: 'load' })` times
out, which is the same failure as in CI.
- With the stand-in, `/` loads in about 200 ms. The JetBrains Mono faces
in use report `loaded` after `fonts.ready`, and the badge renders at
90×20.

I couldn't run the WebKit suite locally because it needs sudo-installed
system libraries. This PR's `check-docs` job runs it.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-10-06 00:14:19 -07:00
Worktrunk Botandworktrunk-bot dc97142974 test(docs): wait for web fonts before browser layout checks (#4382)
The `link-check` job on [nightly run
37414713723](https://github.com/max-sixty/worktrunk/actions/runs/37414713723)
failed `desktop code examples fit the content column` with
`/claude-code/ wt list scrolls horizontally at 1401px`. The docs content
at that commit is identical to `3e233ef26`, where `publish-docs` ran the
same suite green a few hours earlier, so this was a race in the test
rather than a site regression.

**Cause.** The browser tests measure layout right after
`DOMContentLoaded`. At that point the JetBrains Mono faces, which
`custom.css` loads from Google Fonts with `display=swap`, are still
`loading`, so code renders in the fallback monospace face. Since #4214,
the content column is sized for exactly 99 columns of JetBrains Mono
(0.6em, or 8.4px at 14px). On the Ubuntu runner the fallback is DejaVu
Sans Mono at about 8.43px, roughly 2.8px wider across 99 columns. That
is more than the test's 1px tolerance, so the result depends on whether
the font swap has happened by the time the test measures.

**Fix.** All test navigations now go through an `openPage` helper that
waits for `load` and then `document.fonts.ready`, so every layout
assertion measures the settled page. The helper covers every call site
because the mobile, copy-button, and contrast tests take the same
unsettled measurement.

**Verification.** In a local Chromium probe of the built site:
- At `DOMContentLoaded`, the JetBrains Mono faces report `loading`, and
the `wt list` block measures the same as it does with Google Fonts
blocked.
- After `load` plus `fonts.ready`, the faces report `loaded`.

I couldn't run WebKit here because it needs system libraries that
require sudo. Chromium's headless shell rounds glyph advances to whole
pixels, so its geometry numbers don't stand in for WebKit's. This PR's
`check-docs` job runs the WebKit suite and is the real check.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-10-05 23:40:09 -07:00
dependabot[bot] 3e233ef266 chore: bump smol-toml from 1.8.0 to 1.9.0 in /docs (#4379)
Bumps [smol-toml](https://github.com/squirrelchat/smol-toml) from 1.8.0
to 1.9.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/squirrelchat/smol-toml/releases">smol-toml's
releases</a>.</em></p>
<blockquote>
<h2>v1.9.0</h2>
<p><strong>Huge update</strong>!!! This is most likely the largest
update the library received since its release, with lots of new features
and improvements.</p>
<h3>Performance improvements</h3>
<p>Significant parts of the internal parse logic have been rewritten,
improving performance by <strong>1.5x-2x</strong>. The library was
already comfortably ahead of the others, but it is now faster than ever,
sitting at <strong>4x faster parse performance</strong> than the closest
maintained implementation.</p>
<p>Problematic code paths have also been replaced by safer
implementations, solving potential DoS vectors. See
GHSA-r4xh-jqrq-34v2.</p>
<p>Note: the objects returned by the library now have a <em>null
prototype</em>. This is a transparent change for 99.9% of users, and is
one of the most significant contributors to the major performance gains
in this version.</p>
<h3>Full Temporal support</h3>
<p>Version 1.8.0 brought support for Temporal in <code>stringify</code>;
now the library is also able to emit Temporal objects instead of its own
ad-hoc <code>TomlDate</code> object. It is not enabled by default, but
it will become the default in v2. Enable by setting <code>useLegacyDate:
false</code> in the parser's options.</p>
<h4>Better Temporal support in stringify</h4>
<p>Temporal support has been improved since it released: Temporal
objects that cannot be represented (such as
<code>Temporal.PlainMonthDay</code>) now throw an error (instead of
silently emitting a bogus object).</p>
<p>A new option has been added to <code>stringify</code> to disallow
Temporal objects that cannot be fully represented in TOML. This includes
<code>ZonedDateTime</code> objects with a IANA timezone attached instead
of a plain offset, and dates with a specific calendar value set. Enable
by setting <code>strictTemporal: true</code> in the options.</p>
<h3>Handling of unsafe keys</h3>
<p>Since its release the library has been protected against prototype
pollution attacks, setting properties like <code>__proto__</code> using
safe mechanisms that do not trigger prototype pollution. However, while
the returned objects are safe on their own, they may become problematic
if used carelessly.</p>
<p>Inspired by <code>secure-json-parse</code>, the library now offers a
way to either drop unsafe properties from the returned object, or to
throw an error and reject documents altogether. By default, these
potentially unsafe keys are preserved and returned.</p>
<h3>Miscellaneous updates</h3>
<ul>
<li>Unicode BOM is now gracefully accepted and ignored.</li>
<li>Table array headers are now properly checked again. Reported in <a
href="https://redirect.github.com/squirrelchat/smol-toml/issues/65">#65</a>.</li>
<li>Closed certain gaps where invalid whitespace would be accepted.
Reported in <a
href="https://redirect.github.com/squirrelchat/smol-toml/issues/61">#61</a>.</li>
<li>Bogus local date and local time values with a UTC offset are no
longer accepted.</li>
<li>Certain error messages are more accurate and handle errors at line
boundaries better.</li>
<li>The default export of the lib is now formally deprecated; use a
<code>import *</code> instead. Proposed in <a
href="https://redirect.github.com/squirrelchat/smol-toml/issues/50">#50</a>.</li>
<li>On Node 20+, strings that contain lone surrogates are now normalised
to well-formed strings.</li>
<li>On Node 20+, keys that contain lone surrogates are now
rejected.</li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/squirrelchat/smol-toml/compare/v1.8.0...v1.9.0">https://github.com/squirrelchat/smol-toml/compare/v1.8.0...v1.9.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/squirrelchat/smol-toml/commit/6f9739a5ab481f57c3112024bc4947534b580b58"><code>6f9739a</code></a>
fix: gate <code>[is|to]WellFormed</code> (Node 18 compat)</li>
<li><a
href="https://github.com/squirrelchat/smol-toml/commit/a73ca32c7c9237f744c880d900ad15307a0cef56"><code>a73ca32</code></a>
fix: no Temporal with toml-test when Node &lt; 26</li>
<li><a
href="https://github.com/squirrelchat/smol-toml/commit/7727890604580bd3fc2d7d2f79ad6e67b745ebe7"><code>7727890</code></a>
chore: version bump</li>
<li><a
href="https://github.com/squirrelchat/smol-toml/commit/641903d60d47900080602b6a83e919d2a526547f"><code>641903d</code></a>
chore: rewrite README.md</li>
<li><a
href="https://github.com/squirrelchat/smol-toml/commit/2df14c57945fec5a3737bc0cdce06a436bf9a77e"><code>2df14c5</code></a>
fix(types): make it work if Temporal doesn't exist</li>
<li><a
href="https://github.com/squirrelchat/smol-toml/commit/3eaa44ef54b859990969935664b12023b26d0eae"><code>3eaa44e</code></a>
chore: update benchmark harness</li>
<li><a
href="https://github.com/squirrelchat/smol-toml/commit/cd3ba6021a59bff0ac57dc059ca2e194365caedd"><code>cd3ba60</code></a>
feat: safety option for dangerous properties</li>
<li><a
href="https://github.com/squirrelchat/smol-toml/commit/6746a7f3ec066109ef8ba69126489fd84b6d3b73"><code>6746a7f</code></a>
perf: refactor TomlDate to avoid regex path</li>
<li><a
href="https://github.com/squirrelchat/smol-toml/commit/16fa64fc5efad895e8657d70e5a1855a16f58ace"><code>16fa64f</code></a>
chore: move benchmarks and test harness under 0BSD</li>
<li><a
href="https://github.com/squirrelchat/smol-toml/commit/bbd14b154b603068ad25ad54b4a3e7f53adeedc0"><code>bbd14b1</code></a>
fix: correct sign for single-char numbers</li>
<li>Additional commits viewable in <a
href="https://github.com/squirrelchat/smol-toml/compare/v1.8.0...v1.9.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=smol-toml&package-manager=npm_and_yarn&previous-version=1.8.0&new-version=1.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/max-sixty/worktrunk/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 17:54:27 -07:00
dependabot[bot] 40abc9d741 chore: bump source-map-js from 1.2.1 to 1.2.2 in /docs (#4378)
Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from
1.2.1 to 1.2.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/7rulnik/source-map-js/releases">source-map-js's
releases</a>.</em></p>
<blockquote>
<h2>v1.2.2</h2>
<ul>
<li>
<p>Fix crash when executing in browser with CSP script-src that don't
permit unsafe-eval (<a
href="https://redirect.github.com/7rulnik/source-map-js/pull/29">#29</a>)
<a href="https://github.com/xfournet"><code>@​xfournet</code></a></p>
</li>
<li>
<p>Fix denial of service from malicious indexed source maps
(CVE-2026-93749) (<a
href="https://redirect.github.com/7rulnik/source-map-js/pull/79">#79</a>)</p>
<p>Reported by <a
href="https://github.com/waydeshi"><code>@​waydeshi</code></a> in <a
href="https://redirect.github.com/7rulnik/source-map-js/issues/76">#76</a>.
A fix was also proposed by <a
href="https://github.com/aniebiet"><code>@​aniebiet</code></a> in <a
href="https://redirect.github.com/7rulnik/source-map-js/pull/78">#78</a>.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md">source-map-js's
changelog</a>.</em></p>
<blockquote>
<h2>1.2.2</h2>
<ul>
<li>
<p>Fix crash when executing in browser with CSP script-src that don't
permit unsafe-eval (<a
href="https://redirect.github.com/7rulnik/source-map-js/pull/29">#29</a>)
<a href="https://github.com/xfournet"><code>@​xfournet</code></a></p>
</li>
<li>
<p>Fix denial of service from malicious indexed source maps
(CVE-2026-93749) (<a
href="https://redirect.github.com/7rulnik/source-map-js/pull/79">#79</a>)</p>
<p>Reported by <a
href="https://github.com/waydeshi"><code>@​waydeshi</code></a> in <a
href="https://redirect.github.com/7rulnik/source-map-js/issues/76">#76</a>.
A fix was also proposed by <a
href="https://github.com/aniebiet"><code>@​aniebiet</code></a> in <a
href="https://redirect.github.com/7rulnik/source-map-js/pull/78">#78</a>.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/7rulnik/source-map-js/commit/0a1d334fd1e55a47df97fcd60a7915d46df3b08a"><code>0a1d334</code></a>
1.2.2</li>
<li><a
href="https://github.com/7rulnik/source-map-js/commit/4c6fa26d77419bd8e48ec92844866cce7d9ae739"><code>4c6fa26</code></a>
Update changelog</li>
<li><a
href="https://github.com/7rulnik/source-map-js/commit/cf7658058ceeaa8619d5ae0ec90be6905209d016"><code>cf76580</code></a>
Fix denial of service from malicious indexed source maps
(CVE-2026-93749) (<a
href="https://redirect.github.com/7rulnik/source-map-js/issues/79">#79</a>)</li>
<li><a
href="https://github.com/7rulnik/source-map-js/commit/7899a86615c630f4fc220273ff9fe2e8e49a56df"><code>7899a86</code></a>
Fix crash when executing browser with CSP script-src that don't permit
unsafe...</li>
<li>See full diff in <a
href="https://github.com/7rulnik/source-map-js/compare/v1.2.1...v1.2.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=source-map-js&package-manager=npm_and_yarn&previous-version=1.2.1&new-version=1.2.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/max-sixty/worktrunk/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 17:39:24 -07:00
dependabot[bot] c2f58e27a7 chore: bump @astrojs/starlight from 0.42.4 to 0.42.5 in /docs in the docs-site group (#4373)
Bumps the docs-site group in /docs with 1 update:
[@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight).

Updates `@astrojs/starlight` from 0.42.4 to 0.42.5
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/starlight/releases">@​astrojs/starlight's
releases</a>.</em></p>
<blockquote>
<h2><code>@​astrojs/starlight</code><a
href="https://github.com/0"><code>@​0</code></a>.42.5</h2>
<h3>Patch Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/withastro/starlight/pull/4227">#4227</a>
<a
href="https://github.com/withastro/starlight/commit/5ba7a70ad491ed8b5fc7033558dcc5428112cf97"><code>5ba7a70</code></a>
Thanks <a href="https://github.com/I90rche"><code>@​I90rche</code></a>!
- Adds Macedonian language support</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md">@​astrojs/starlight's
changelog</a>.</em></p>
<blockquote>
<h2>0.42.5</h2>
<h3>Patch Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/withastro/starlight/pull/4227">#4227</a>
<a
href="https://github.com/withastro/starlight/commit/5ba7a70ad491ed8b5fc7033558dcc5428112cf97"><code>5ba7a70</code></a>
Thanks <a href="https://github.com/I90rche"><code>@​I90rche</code></a>!
- Adds Macedonian language support</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/withastro/starlight/commit/b8b654ccf618d876552f8d72d3fbe75f996aaf43"><code>b8b654c</code></a>
[ci] release (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4233">#4233</a>)</li>
<li><a
href="https://github.com/withastro/starlight/commit/5ba7a70ad491ed8b5fc7033558dcc5428112cf97"><code>5ba7a70</code></a>
i18n(mk): Add Macedonian UI translations (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4227">#4227</a>)</li>
<li>See full diff in <a
href="https://github.com/withastro/starlight/commits/@astrojs/starlight@0.42.5/packages/starlight">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@astrojs/starlight&package-manager=npm_and_yarn&previous-version=0.42.4&new-version=0.42.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-05 17:12:35 -07:00
Worktrunk Botandworktrunk-bot 54fa4a0b9a docs(config): correct stale examples and lists in wt config help (#4363)
Fixes four pieces of `wt config` help text that no longer match
behavior. The most user-visible is the `wt config state vars clear`
example labelled "Clear all keys for a specific branch", which ran
`clear env --branch=feature` and so cleared only the `env` key; it now
shows `--all --branch=feature`.

The other three are lists that missed newer behavior:

- **`wt config plugins`** described the Codex plugin as "Worktrunk
configuration skill" only. It also installs activity-marker hooks
([`.codex-plugin/plugin.json`](https://github.com/max-sixty/worktrunk/blob/main/plugins/worktrunk/.codex-plugin/plugin.json)),
as the `wt config plugins codex` help already says.
- **`wt config state marker`** said only the Claude Code plugin sets
markers automatically. The Codex, OpenCode, Pi and oh-my-pi plugins do
too.
- **`wt config state logs`** listed the background post-hooks as
post-start, post-switch, post-commit and post-merge. post-remove also
runs in the background through `register_planned` in
`src/output/handlers.rs` and logs under the removed branch's subtree.

The generated docs mirrors and the three affected help snapshots are
regenerated (`test_docs_are_in_sync`, `help` tests pass locally). I ran
the new example against a branch with no vars, and it parses and runs.
This is a docs-only change, so there's no regression test.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-10-04 02:07:50 -07:00
Worktrunk Botandworktrunk-bot 64ead5388a docs(list): drop the stale-branch and dirty-tree skips from JSON help (#4359)
`wt list --help` (and the generated `list.md` pages, skill mirrors, and
`list-v2.json` schema) explains `·`, JSON `null`, and
`default_branch.integration` in ways the collector no longer matches.
This corrects three claims. No behavior changes.

- **"branch too stale" for `·` and `null`.** #2098 removed the
stale-branch skip (`stale_branches`), and nothing in
`src/commands/list/collect/` skips tasks by branch age now. The
remaining sources of `null` are a timeout, a skipped probe (column plan
or unborn branch), or a failed forge fetch.
- **`integration` "null when a dirty tree skipped the checks".** Dirty
trees don't skip the probes. They run on the committed HEAD either way,
as `json_default_branch` says and
`test_integration_positive_match_ignores_cleanliness` pins with a dirty
`trees_match` result. A dirty integrated branch reports its reason, not
`null`.
- **"every reason renders as the same `⊂`".** `"same_commit"` renders as
`_` (or `–` with uncommitted changes), per
`IntegrationReason::SameCommit` and the Default-branch symbol table in
the same help page. `⊂` also needs a clean tree.

The same commit updates the `JsonDefaultBranch::integration` docstring,
which generates the published schema description, and four internal
comments in `collect/execution.rs` that still listed the stale-branch
skip.

No test is added because this changes only prose. Help snapshots and doc
mirrors are regenerated, and `test_docs_are_in_sync` passes.

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-10-03 00:45:29 -07:00
Maximilian Roos e505d33f25 docs: remove incidental details from public documentation (#4355)
Remove incidental details accumulated in recent public documentation: an
unnamed-machine disk-use anecdote, internal Codex and aichat
explanations, and redundant repair and edge-case narratives. Keep the
working setup recipes, hook contracts, and JSON field definitions.

Remove the unusable shared-skill footnote while preserving the
capability table, and shorten prune's age explanation while retaining
the effect of Git maintenance on older branches without reflogs.
Regenerate command pages, skill mirrors, the config example, and help
snapshots from their authored sources.

Validation: the full pre-merge gate passes (5,048 tests, lint, lockfile,
doctests, and Rust documentation), along with the documentation site
build. The complete diff was independently reviewed.

> _This was written by Codex on behalf of max-sixty_
2026-10-02 22:41:11 -07:00
Maximilian Roos 27d12e0afa Retain valid environment overrides when another setting is invalid (#4348)
One invalid environment override currently discards the entire
environment layer. Validate each independent setting against the same
file configuration, retaining valid overrides and attributing warnings
only to rejected settings.

Custom-column fields form one setting, including project-scoped columns,
so a required template and its integer width are accepted together.
Deprecated names migrate before type selection. Valid environment values
can repair an empty worktree path while unrelated invalid overrides are
rejected. Typed validation issues identify their setting paths, and the
loader preserves the current structured config diagnostics.

Validation: the required pre-merge gate passed 5,058 tests with one
skipped, plus lint, doctests, and documentation generation. Real CLI
regressions cover merged system/user layers, mixed valid/invalid
overrides, lower-layer repairs, and project-scoped compound settings.
Documentation sync passes.

> _This was written by Codex on behalf of max-sixty_
2026-10-02 20:44:03 -07:00
Maximilian Roos f4f1bbdef7 fix(prune): serialize safe deletions and run hooks concurrently (#4337)
Concurrent prune deletions can exhaust Git's packed-refs lock timeout.
An unchanged branch was then reported as "moved during deletion", and
removal could absorb the Git failure while reporting success. This
change serializes safe ref deletions within the repository, reports
movement only when the surviving SHA changed, and propagates other
failures after arranging cleanup and teardown hooks. A missing snapshot
SHA fails closed.

Each safe deletion uses one `git update-ref -d` with the original
expected SHA. The repository mutex covers that mutation and its failure
classification; interruptions cancel waiting deletions before they can
mutate anything. Integration and checkout reads remain outside the
mutex. Checkout protection remains best effort; Git's atomic
expected-SHA comparison protects concurrent commits to the candidate
branch. Worktree registry coordination independently keeps enumeration
and teardown from overlapping.

Prune runs pre-remove hooks concurrently across worktrees. Each
worktree's hook pipeline finishes before fresh ownership, lock, and
cleanliness checks. Hooks coordinate shared writes themselves, avoid
writing into other removal candidates, and can race Git configuration
readers on Windows; these limits are documented in help and its
generated mirrors. The command lock only coordinates terminal output for
foreground/current removals. Trash cleanup starts before waiting for ref
deletion, and current-worktree placeholder cleanup removes only an empty
directory.

The ref deletion path has no request queue, batch transactions, or batch
recovery. The coordinator drops from 256 production lines to 61. Three
alternating pairs comparing the former batch path with the actual mutex
implementation measured 540 → 645 ms for 80 packed orphan branches and
598 → 641 ms for 40 worktrees; all 12 samples verified complete cleanup.
Machine load was high, so these fixture timings are limited evidence of
the cost. The simpler implementation accepts that measured penalty.

Regression coverage exercises real packed-ref contention, original-SHA
protection, per-ref error isolation, interruption of waiting deletions,
cleanup while deletion is blocked, pre-hook rendezvous, and post-hook
overlap. Existing tests cover checkout retention and
foreground/background error teardown.

Validation: the full local pre-merge gate passes with 5,040 tests and
one skipped, plus formatting, Clippy, documentation, and doctests.
Generated docs and skill mirrors are in sync. Independent review found
no remaining issues.

> _This was written by Codex on behalf of max-sixty_
2026-10-02 18:55:50 -07:00
dependabot[bot] 53fc376ad1 chore: bump devalue from 5.9.1 to 5.9.4 in /docs (#4339)
Bumps [devalue](https://github.com/sveltejs/devalue) from 5.9.1 to
5.9.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sveltejs/devalue/releases">devalue's
releases</a>.</em></p>
<blockquote>
<h2>v5.9.4</h2>
<h3>Patch Changes</h3>
<ul>
<li>067b125: perf: annotate module-level <code>Object.freeze</code>
calls as pure so unused operation tables tree-shake</li>
</ul>
<h2>v5.9.3</h2>
<h3>Patch Changes</h3>
<ul>
<li>6861dbb: fix: avoid scanning sparse array holes in
<code>uneval</code> traversal and shared-array population</li>
<li>9ec5130: fix: reject non-string null-prototype object keys in
<code>parse</code> and <code>unflatten</code> to prevent bypassing the
<code>__proto__</code> check</li>
<li>dae8153: fix: prevent unhandled internal rejections in
<code>stringifyAsync</code> when serializing multiple promises</li>
<li>84f6f67: fix: prevent quadratic <code>uneval</code> output expansion
for repeated strings and bigints</li>
<li>6861dbb: fix: avoid eager allocation when evaluating sparse arrays
emitted by <code>uneval</code></li>
<li>8f8d78e: fix: validate revived backing buffers before constructing
typed arrays</li>
<li>46dc877: fix: serialize only the visible bytes of Node Buffers in
<code>stringify</code>, <code>stringifyAsync</code> and
<code>uneval</code>, preventing disclosure of unrelated data from their
shared allocation pool</li>
</ul>
<h2>v5.9.2</h2>
<h3>Patch Changes</h3>
<ul>
<li>8b2a456: fix: reject out-of-bounds indices</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/sveltejs/devalue/blob/main/CHANGELOG.md">devalue's
changelog</a>.</em></p>
<blockquote>
<h2>5.9.4</h2>
<h3>Patch Changes</h3>
<ul>
<li>067b125: perf: annotate module-level <code>Object.freeze</code>
calls as pure so unused operation tables tree-shake</li>
</ul>
<h2>5.9.3</h2>
<h3>Patch Changes</h3>
<ul>
<li>6861dbb: fix: avoid scanning sparse array holes in
<code>uneval</code> traversal and shared-array population</li>
<li>9ec5130: fix: reject non-string null-prototype object keys in
<code>parse</code> and <code>unflatten</code> to prevent bypassing the
<code>__proto__</code> check</li>
<li>dae8153: fix: prevent unhandled internal rejections in
<code>stringifyAsync</code> when serializing multiple promises</li>
<li>84f6f67: fix: prevent quadratic <code>uneval</code> output expansion
for repeated strings and bigints</li>
<li>6861dbb: fix: avoid eager allocation when evaluating sparse arrays
emitted by <code>uneval</code></li>
<li>8f8d78e: fix: validate revived backing buffers before constructing
typed arrays</li>
<li>46dc877: fix: serialize only the visible bytes of Node Buffers in
<code>stringify</code>, <code>stringifyAsync</code> and
<code>uneval</code>, preventing disclosure of unrelated data from their
shared allocation pool</li>
</ul>
<h2>5.9.2</h2>
<h3>Patch Changes</h3>
<ul>
<li>8b2a456: fix: reject out-of-bounds indices</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/sveltejs/devalue/commit/434358aa98c27b6480bda6d1e69426e2054ed6a0"><code>434358a</code></a>
Version Packages (<a
href="https://redirect.github.com/sveltejs/devalue/issues/202">#202</a>)</li>
<li><a
href="https://github.com/sveltejs/devalue/commit/067b125f0d49c99a810eb0edfeb439ed29abe823"><code>067b125</code></a>
perf: annotate module-level Object.freeze calls as pure (<a
href="https://redirect.github.com/sveltejs/devalue/issues/200">#200</a>)</li>
<li><a
href="https://github.com/sveltejs/devalue/commit/53cd3db7dddf34bb8c2ab1ebc98dafd21daab918"><code>53cd3db</code></a>
Version Packages (<a
href="https://redirect.github.com/sveltejs/devalue/issues/201">#201</a>)</li>
<li><a
href="https://github.com/sveltejs/devalue/commit/46dc877b3570dafb1cd3291b9bb48cecef8f7266"><code>46dc877</code></a>
Merge commit from fork</li>
<li><a
href="https://github.com/sveltejs/devalue/commit/84f6f67999104e36940f744bec0443536de1b463"><code>84f6f67</code></a>
Merge commit from fork</li>
<li><a
href="https://github.com/sveltejs/devalue/commit/6861dbbb7e548849e48bce718e88747a298f7250"><code>6861dbb</code></a>
Merge commit from fork</li>
<li><a
href="https://github.com/sveltejs/devalue/commit/8f8d78e173f8a00023d009c7677ccc600dee0b99"><code>8f8d78e</code></a>
Merge commit from fork</li>
<li><a
href="https://github.com/sveltejs/devalue/commit/dae8153e9d7541b975cc4018138d6cebec6c1199"><code>dae8153</code></a>
Merge commit from fork</li>
<li><a
href="https://github.com/sveltejs/devalue/commit/9ec513072e31f45e60d44dad6f0dba9c92bb8675"><code>9ec5130</code></a>
Merge commit from fork</li>
<li><a
href="https://github.com/sveltejs/devalue/commit/8ade61d0e70d935a780e6cb0a69ee2a5383b4855"><code>8ade61d</code></a>
chore: fix bench:compare script (<a
href="https://redirect.github.com/sveltejs/devalue/issues/198">#198</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/sveltejs/devalue/compare/v5.9.1...v5.9.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=devalue&package-manager=npm_and_yarn&previous-version=5.9.1&new-version=5.9.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/max-sixty/worktrunk/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-01 22:56:03 -07:00
Maximilian Roos af7f54b514 style(list): use a dim outline flag for irregular worktrees (#4334)
Display off-template paths and duplicate branch checkouts with a dim
outline flag (`⚐`) instead of the dim yellow filled flag (`⚑`). Use the
same neutral dim style as the other informational status symbols, and
update help, documentation mirrors, and snapshots.

Validation: all 343 targeted list/help/promote tests pass, along with
documentation sync, docs build, Clippy, and doctests. The full local
gate has 5,012 passes and four failures: three background-removal
timeouts (the tests pass in isolation on this branch and freshly rebuilt
main) and a Git error-message snapshot mismatch reproduced on main with
Git 2.56.0.

> _This was written by Codex on behalf of max-sixty_
2026-10-01 11:55:30 -07:00
FenjuFu ca8d3797b2 docs: pass --code to the aichat commit-generation example (#4332) 2026-10-01 08:57:08 +00:00
Worktrunk Botandworktrunk-bot 2f85940012 docs(switch): say that wt list flags a --path worktree off its template path (#4328)
The new `--path` help section (from #4317) says that "only `wt step
relocate`" treats a worktree created with `--path` differently. That
isn't true: `wt list` marks the row `⚑` (`worktree.branch_mismatch`,
"Worktree isn't at the path its branch implies"), because
`is_worktree_at_expected_path` compares every branch worktree against
the `worktree-path` template. #4317's own PR description says as much
("`wt list` still marks these rows `⚑`"), but the help text didn't carry
it over.

This rewords the sentence to name both: commands still reach the
worktree by branch or path, `wt list` flags it `⚑`, and `wt step
relocate` offers to move it back. The change is in `src/cli/mod.rs`,
plus the regenerated docs/skill mirrors and the `help_switch_long`
snapshot.

Verified against a local build: after `wt switch --create feature/x
--path ../custom`, `wt list` shows `+ feature/x ⚑_ … ../custom`, while a
template-path sibling shows no `⚑`. This changes docs only, so there's
no regression test. `test_docs_are_in_sync` and the help snapshot tests
pass.

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-10-01 00:25:12 -07:00
1a2015bfc5 feat(switch): add --path to create a worktree outside the worktree-path template (#4317)
Adds `--path <PATH>` to `wt switch`, so one worktree can live in a
directory of the user's choosing while its branch keeps its own name.
This is the opt-out from the `worktree-path` template that #1982 asked
for:

```console
$ wt switch --create feat/JIRA-1234/dark-mode --path ../dark-mode
✓ Created branch feat/JIRA-1234/dark-mode from main and worktree @ ~/code/dark-mode
$ wt switch ../dark-mode          # by path
$ wt switch feat/JIRA-1234/dark-mode   # or by branch
```

Semantics:

- **Relative paths resolve from the current directory** (or `-C`), as
`git worktree add <path>` does, through the same `resolve_input_path`
that already resolves `wt switch ../repo.feature`. A leading `~`
expands.
- **Works without `--create`** when the branch exists but has no
worktree yet.
- **A branch that already has a worktree elsewhere is an error**, not
silently ignored: `✗ feature-z already has a worktree @ …, not …; to
switch to it, run without --path`. Naming the directory it already has
just switches.
- **Error hints keep `--path`.** The `--clobber` suggestion for an
occupied directory now reads `wt switch --create --clobber feature-y
--path=../occupied`. Without `--path` it would have backed up the
template's directory instead.
- Occupancy by another worktree, `--clobber`, hooks, and `{{
worktree_path }}` all go through the existing plan, which now takes the
requested path in place of `compute_worktree_path`.

Nothing is persisted: git already records where each worktree is, and
resolution, `list`, `merge`, `remove`, and hooks read paths from `git
worktree list`. The one command that notices is `wt step relocate`,
which offers to move an off-template worktree back to the template path.
The long help now says so. `wt list` still marks these rows `⚑` and
shows the `Path` column.

**Open question for review:** I resolved relative paths from the cwd
(git's rule) and not from the template's parent directory, which the
closed #2275 did. The cwd rule is predictable and matches every other
path argument wt takes. Its cost: running `--path dark-mode` from the
main worktree nests the new worktree inside the repo, so users write
`../dark-mode`.

Tests: new integration snapshots cover create-with-path, an existing
branch with no worktree, the existing-worktree-elsewhere error, and the
`--clobber` hint. Help and doc mirrors are regenerated. Locally, the
switch and picker integration tests (312), clippy, and pre-commit pass.
The only unit-test failures are two tests that bind Unix sockets, which
the CI sandbox forbids.

Closes #1982

---------

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-09-30 02:49:31 -07:00
Worktrunk Botandworktrunk-bot e0d6ecea4f docs(tips): configure origin fetch refspec in the bare repository layout (#4323)
`git clone --bare` stores the `origin` URL but writes no
`remote.origin.fetch` refspec, so a bare clone following the [bare
repository
layout](https://worktrunk.dev/tips-patterns/#bare-repository-layout)
never gets `origin/*` remote-tracking branches — `git branch -r` stays
empty however often you fetch, and lazygit and editor integrations see
no remote branches. The recipe now sets the standard refspec, fetches,
and runs `git remote set-head origin --auto` right after the clone, with
one sentence explaining why the extra lines are needed.

Verified locally with git 2.55: a fresh `git clone --bare` has no
`remote.origin.fetch` and an empty `git branch -r`; after the three
added commands, `git branch -r` lists `origin/HEAD -> origin/master` and
`origin/master`. The `skills/` and `plugins/` mirrors were regenerated
by `test_docs_are_in_sync`, which passes.

This fixes the docs only. worktrunk could also detect a bare repo with
an `origin` but no fetch refspec (it already prompts about
`worktree-path` on first `wt switch` in a bare repo), but #1258 settled
that worktrunk shouldn't prescribe a clone layout, so this PR leaves
that out.

Closes #4322 — automated triage

Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-09-29 10:42:59 -07:00
dependabot[bot] ffbfcaf7b7 chore: bump undici from 8.10.0 to 8.11.2 in /docs (#4316)
Bumps [undici](https://github.com/nodejs/undici) from 8.10.0 to 8.11.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/nodejs/undici/releases">undici's
releases</a>.</em></p>
<blockquote>
<h2>v8.11.2</h2>
<h2>What's Changed</h2>
<ul>
<li>fix: close rejected HTTP/2 WebSocket handshake streams by <a
href="https://github.com/mcollina"><code>@​mcollina</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5873">nodejs/undici#5873</a></li>
<li>fix: avoid reconnecting aborted requests by <a
href="https://github.com/Junaid-PK"><code>@​Junaid-PK</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5846">nodejs/undici#5846</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Junaid-PK"><code>@​Junaid-PK</code></a>
made their first contribution in <a
href="https://redirect.github.com/nodejs/undici/pull/5846">nodejs/undici#5846</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/nodejs/undici/compare/v8.11.1...v8.11.2">https://github.com/nodejs/undici/compare/v8.11.1...v8.11.2</a></p>
<h2>v8.11.1</h2>
<h2>What's Changed</h2>
<ul>
<li>deslopify websocket test by <a
href="https://github.com/KhafraDev"><code>@​KhafraDev</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5851">nodejs/undici#5851</a></li>
<li>Revert &quot;fix: preserve HTTP/2 for legacy fetch consumers&quot;
by <a href="https://github.com/mcollina"><code>@​mcollina</code></a> in
<a
href="https://redirect.github.com/nodejs/undici/pull/5860">nodejs/undici#5860</a></li>
<li>fix websocketstream bugs by <a
href="https://github.com/KhafraDev"><code>@​KhafraDev</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5863">nodejs/undici#5863</a></li>
<li>fix hang on 3xx response with large body by <a
href="https://github.com/KhafraDev"><code>@​KhafraDev</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5850">nodejs/undici#5850</a></li>
<li>docs: warn about buffering response bodies by <a
href="https://github.com/mcollina"><code>@​mcollina</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5872">nodejs/undici#5872</a></li>
<li>test: cover native fetch gzip decoding through the legacy bridge by
<a href="https://github.com/mcollina"><code>@​mcollina</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5874">nodejs/undici#5874</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/nodejs/undici/compare/v8.11.0...v8.11.1">https://github.com/nodejs/undici/compare/v8.11.0...v8.11.1</a></p>
<h2>v8.11.0</h2>
<h2>What's Changed</h2>
<ul>
<li>fix: complete upgrade diagnostics lifecycle by <a
href="https://github.com/BridgeAR"><code>@​BridgeAR</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5761">nodejs/undici#5761</a></li>
<li>build(deps): bump step-security/harden-runner from 2.19.4 to 2.21.0
by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/nodejs/undici/pull/5753">nodejs/undici#5753</a></li>
<li>fix(decompress): join a repeated content-encoding header by <a
href="https://github.com/luantaraschi"><code>@​luantaraschi</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/5664">nodejs/undici#5664</a></li>
<li>fix(cookies): keep a cookie named <strong>proto</strong> in
getCookies by <a
href="https://github.com/luantaraschi"><code>@​luantaraschi</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/5663">nodejs/undici#5663</a></li>
<li>build(deps-dev): bump jest from 30.5.0 to 30.5.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/nodejs/undici/pull/5784">nodejs/undici#5784</a></li>
<li>build(deps): bump got from 15.1.0 to 16.0.0 in /benchmarks by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/nodejs/undici/pull/5785">nodejs/undici#5785</a></li>
<li>fix: selectively re-enable SIMD for ppc64 by <a
href="https://github.com/richardlau"><code>@​richardlau</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5776">nodejs/undici#5776</a></li>
<li>use private fields for brand checks by <a
href="https://github.com/KhafraDev"><code>@​KhafraDev</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5792">nodejs/undici#5792</a></li>
<li>fix(h2): do not unref a session with open streams by <a
href="https://github.com/kjsik11"><code>@​kjsik11</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5782">nodejs/undici#5782</a></li>
<li>fix(h2): avoid pool fan-out during ALPN negotiation by <a
href="https://github.com/mcollina"><code>@​mcollina</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5799">nodejs/undici#5799</a></li>
<li>fix issue <a
href="https://redirect.github.com/nodejs/undici/issues/5715">#5715</a>
by <a href="https://github.com/KhafraDev"><code>@​KhafraDev</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/5805">nodejs/undici#5805</a></li>
<li>ci: extend macOS Node.js workflow timeout by <a
href="https://github.com/mcollina"><code>@​mcollina</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5775">nodejs/undici#5775</a></li>
<li>fix(env-http-proxy-agent): NO_PROXY wildcard semantics by <a
href="https://github.com/mcollina"><code>@​mcollina</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5777">nodejs/undici#5777</a></li>
<li>fix(h2): do not replay a request whose response already started
after GOAWAY by <a
href="https://github.com/kjsik11"><code>@​kjsik11</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5788">nodejs/undici#5788</a></li>
<li>test: skip HTTP/2 churn test on Node.js 25 on all platforms by <a
href="https://github.com/kjsik11"><code>@​kjsik11</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5790">nodejs/undici#5790</a></li>
<li>fix(proxy-agent): preserve repeated iterable headers by <a
href="https://github.com/GiHoon1123"><code>@​GiHoon1123</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5779">nodejs/undici#5779</a></li>
<li>docs(errors): document ProxyConnectionError (UND_ERR_PRX_CONN) by <a
href="https://github.com/kilisamemarisaaa"><code>@​kilisamemarisaaa</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/5781">nodejs/undici#5781</a></li>
<li>dataurl parsing improvements + update WPT by <a
href="https://github.com/KhafraDev"><code>@​KhafraDev</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5812">nodejs/undici#5812</a></li>
<li>fix(decompress): treat inherited Object.prototype names as
unsupported encodings by <a
href="https://github.com/NgoQuocViet2001"><code>@​NgoQuocViet2001</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/5807">nodejs/undici#5807</a></li>
<li>test(h2): stabilize http2-connection by <a
href="https://github.com/ViniciusDev26"><code>@​ViniciusDev26</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/5801">nodejs/undici#5801</a></li>
<li>fix: preserve HTTP/2 for non-upgrade legacy requests by <a
href="https://github.com/mcollina"><code>@​mcollina</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5811">nodejs/undici#5811</a></li>
<li>fix: skip drain dispatch for clientTtl-evicted clients in PoolBase
by <a href="https://github.com/vwong"><code>@​vwong</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5677">nodejs/undici#5677</a></li>
<li>chore: update tests blocking release by <a
href="https://github.com/vwong"><code>@​vwong</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5828">nodejs/undici#5828</a></li>
<li>build(deps): bump uWebSockets.js from v20.68.0 to v20.70.0 in
/benchmarks by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/nodejs/undici/pull/5824">nodejs/undici#5824</a></li>
<li>fix(deduplicate): settle requests when composed with retry by <a
href="https://github.com/mcollina"><code>@​mcollina</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5817">nodejs/undici#5817</a></li>
<li>fix(cache): do not report aborted on successful cache hits by <a
href="https://github.com/Yahiro025"><code>@​Yahiro025</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5819">nodejs/undici#5819</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/nodejs/undici/commit/7e016ad7e5bd6540170069a9a28b1e633b29664f"><code>7e016ad</code></a>
Bumped v8.11.2 (<a
href="https://redirect.github.com/nodejs/undici/issues/5886">#5886</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/fcdd5a615ab49beda87aafe14ad30106cfe3b0d5"><code>fcdd5a6</code></a>
fix: skip reconnecting for aborted requests (<a
href="https://redirect.github.com/nodejs/undici/issues/5846">#5846</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/dd28c5c55f4a25f7c441fd4365b1191f96c3b8bf"><code>dd28c5c</code></a>
fix: close rejected HTTP/2 WebSocket handshake streams (<a
href="https://redirect.github.com/nodejs/undici/issues/5873">#5873</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/5e0a2f8e02be8f1155feab2c52f55731d3bb84a4"><code>5e0a2f8</code></a>
Bumped v8.11.1 (<a
href="https://redirect.github.com/nodejs/undici/issues/5871">#5871</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/2b728989ac5b9d247eca2094bb264ced76f7cef6"><code>2b72898</code></a>
test: cover native fetch gzip decoding through the legacy bridge (<a
href="https://redirect.github.com/nodejs/undici/issues/5874">#5874</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/636bf515c0c8497dd0ca68917e4e38577c27669e"><code>636bf51</code></a>
docs: warn about buffering response bodies (<a
href="https://redirect.github.com/nodejs/undici/issues/5872">#5872</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/8145595e221779980d91ff611f14e5a984661388"><code>8145595</code></a>
fix hang on 3xx response with large body (<a
href="https://redirect.github.com/nodejs/undici/issues/5850">#5850</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/f3cbe486706da6163b4ca226022e74df73168dd5"><code>f3cbe48</code></a>
fix websocketstream bugs (<a
href="https://redirect.github.com/nodejs/undici/issues/5863">#5863</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/1d4ea0a883bf33275d00c4db55377892180b2747"><code>1d4ea0a</code></a>
Revert &quot;fix: preserve HTTP/2 for legacy fetch consumers&quot; (<a
href="https://redirect.github.com/nodejs/undici/issues/5860">#5860</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/77d7b3f8dd2d8114b686e32d8d28bd3dde06bc33"><code>77d7b3f</code></a>
deslopify websocket test (<a
href="https://redirect.github.com/nodejs/undici/issues/5851">#5851</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/nodejs/undici/compare/v8.10.0...v8.11.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=undici&package-manager=npm_and_yarn&previous-version=8.10.0&new-version=8.11.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/max-sixty/worktrunk/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-28 19:34:17 -07:00
5177031444 fix(remove): name the detached worktree a branch-only removal leaves behind (#3791)
`wt remove <branch>` on a worktree whose HEAD has since been detached
reported `○ No worktree found for branch <name>` and said nothing more,
while a directory sat at exactly that branch's path. That line is true —
detaching severs the only link git records between a worktree and its
branch, so the branch really has no worktree — but it reads as "nothing
is there".

The removal now names what it leaves behind:

```console
$ wt remove feature
○ No worktree found for branch feature; a detached worktree is @ ~/repo.feature
↳ To remove the detached worktree, run wt remove ~/repo.feature
✓ Removed branch feature (same commit as main, _)
```

`--format=json` carries the same fact as `detached_worktree` on a
branch-only removal, since the human line goes to stderr and "a script
checking the exit code sees a clean run" was half of what the issue
reported.

The directory is found by matching the `worktree-path` template, which
after a detach is all that still connects the two. That is a weaker
association than the rest of the module draws — the template records
where a worktree *would* go, not that this one belongs to that branch —
and it is why this only ever adds a line. A mention that occasionally
points at a coincidence costs nothing. Three states go unmatched, each
because naming them would mislead: a worktree checked out on some
*other* branch (that branch names it), the main worktree (whose
path-based removal `wt remove` refuses, so the hint would be a dead
end), and a prunable entry (nothing on disk to point at).

<details>
<summary>Why this doesn't refuse the removal, and what changed from the
earlier commits on this branch</summary>

The first four commits made `wt remove <branch>` refuse in this
situation, following the issue's "either remove the worktree, or
refuse". Reviewing the premise rather than the menu, refusing was the
wrong call:

- **Nothing was ever lost.** `SafeDelete` — the default — retains an
unintegrated branch, so the only refs the old behavior deleted were ones
worktrunk's own six-condition integration test defines as lossless. Even
`wt remove -D` on an unmerged branch leaves the commits reachable: a
detached worktree's HEAD is a GC root, and the commit survives `gc
--prune=now` with no branch pointing at it.
- **So the refusal protected nothing in three of four cases** —
`--no-delete-branch`, unintegrated `SafeDelete`, and integrated
`SafeDelete` — and in the fourth the user had typed `-D`.
- **It contradicted the addressing model.** `CLAUDE.md`: a path "names
what a branch cannot (a detached worktree, one of two checkouts of a
branch)". The guard let a branch reach one anyway, via a path template.
- **It cost real work**: one branch with a detached directory at its
path failed a whole multi-branch cleanup.

`detached_worktree_for` survives to find the path; it no longer decides
whether the command runs. The scoping the guard had accumulated over
three review rounds — a branch-existence check, a `deletion_mode` gate —
goes with it, since an extra line of output needs no narrowing.

Two fixes from those rounds stand on their own and are kept:

- **The double-escaped hint path.** `format_path_for_display` already
returns a shell-ready token, so composing it with `suggest_command`
escaped it twice: a worktree under `$HOME` rendered as `wt remove
'~/repo.feature'`, where the quoting suppresses the tilde expansion, and
a path needing real quoting came out carrying literal quote characters.
Three call sites had it, two predating this branch.
`format_path_for_display` now documents the trap, which until then lived
only in `pr_mr_switch_hint`'s docstring.
- **`live_sibling_checkout`'s docstring**, explaining why that predicate
stays on `exists()` rather than the `worktree_is_unusable` union the
rest of the removal path uses: the two disagree only on a present
directory that no longer holds its worktree, and since the predicate
only ever gates a deletion, it takes the conservative test.

</details>

## Testing

`test_remove_branch_whose_worktree_was_detached` pins the behavior —
branch removed, worktree untouched, output naming it — and
`test_remove_json_reports_detached_worktree` pins the machine channel.
Snapshots cover the wording, the `--no-delete-branch` no-op, an
unintegrated branch whose ref is retained, a prunable entry (which is
named nothing, having nothing on disk), a detached main worktree (where
the default-branch refusal is still the accurate answer), and the
multi-target case.

Fixes #3769

Thanks to @chachi for the report — the repro runs exactly as written,
and the diagnosis in it (the branch→worktree lookup, not detached
removal) is what this addresses.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
2026-09-27 23:44:50 -07:00
Maximilian RoosandClaude Opus 5.5 2661ba15bf feat(plugin): add wt config plugins claude hook for the Claude hooks (#4304)
Adds a hidden `wt config plugins claude hook` subcommand that reads
Claude Code's hook payload from stdin and acts on its `hook_event_name`:
activity markers, the `EnterWorktree` approval, and `WorktreeCreate` /
`WorktreeRemove`. This is the first half of getting the Claude Code
plugin into Anthropic's plugin directory, whose validator blocks our
current `hooks/hooks.json` because its commands compute paths (`-C
"$CLAUDE_PROJECT_DIR"`) and carry inline programs (`bash -c '…$(jq
…)…'`). Once `hooks.json` runs this subcommand, every hook command is
the same literal line and the plugin no longer needs `jq`.

`hooks.json` itself is unchanged here. The marketplace serves the plugin
from `main`, so switching it before a release ships `hook` would break
worktree creation for everyone on v0.79. The switch is a separate draft
PR, to merge a few weeks after the release that ships this.

- `src/commands/config/plugins.rs`: `handle_claude_hook` dispatches on
the event and re-runs the same `wt` binary with the command a user would
type, so each action behaves exactly as the old hook command did. Its
doc comment carries the per-event contracts (#2939, #3545, #3754,
#3921).
- `approve-enter-worktree` stays, sharing its check with `hook`, for
plugin copies installed before `hook` existed: marketplace installs
don't update on their own.
- `tests/integration_tests/claude_hook.rs` covers the new subcommand
directly; the existing shell-integration tests still run the real
`hooks.json` commands.
- `plugin.json` gains the listing metadata the directory reads
(`license`, `homepage`, `repository`, `keywords`, `icon`, with
`icon.png` copied from `docs/public/logo.png`), and the plugin README
describes what each hook runs, which the directory's security scan
checks for.
- The direnv example in the tips docs builds its path with direnv's
`expand_path` instead of `$PWD`, which the directory scanner read as a
credential.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 23:44:24 -07:00
dependabot[bot] a70ab5a678 chore: bump the docs-site group in /docs with 2 updates (#4309)
Bumps the docs-site group in /docs with 2 updates:
[@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight)
and
[astro](https://github.com/withastro/astro/tree/HEAD/packages/astro).

Updates `@astrojs/starlight` from 0.42.1 to 0.42.4
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/starlight/releases">@​astrojs/starlight's
releases</a>.</em></p>
<blockquote>
<h2><code>@​astrojs/starlight</code><a
href="https://github.com/0"><code>@​0</code></a>.42.4</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4149">#4149</a>
<a
href="https://github.com/withastro/starlight/commit/fa10e87376f49f76a693e8d2b292aef65b959e37"><code>fa10e87</code></a>
Thanks <a
href="https://github.com/ematipico"><code>@​ematipico</code></a>! -
Optimizes rendering of large nested sidebars</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4215">#4215</a>
<a
href="https://github.com/withastro/starlight/commit/f791de65e6e14e9011586004d79f78fcef3a427e"><code>f791de6</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Adds a new <code>seti:coffee</code> icon for CoffeeScript files in the
<code>&lt;FileTree&gt;</code> component.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4215">#4215</a>
<a
href="https://github.com/withastro/starlight/commit/f791de65e6e14e9011586004d79f78fcef3a427e"><code>f791de6</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Fixes <code>&lt;FileTree&gt;</code> icons for <code>.ejs</code> and
<code>npm-debug.log</code> files displaying the default file icon.</p>
</li>
</ul>
<h2><code>@​astrojs/starlight</code><a
href="https://github.com/0"><code>@​0</code></a>.42.3</h2>
<h3>Patch Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/withastro/starlight/pull/4211">#4211</a>
<a
href="https://github.com/withastro/starlight/commit/33e21ec86274070df1725580c1e8134e34062c15"><code>33e21ec</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Fixes a potential page freeze due to table of contents highlighting when
a <a
href="https://starlight.astro.build/reference/overrides/#pagetitle"><code>&lt;PageTitle&gt;</code>
component</a> override does not render a heading with the required
<code>id=&quot;_top&quot;</code>.</li>
</ul>
<h2><code>@​astrojs/starlight</code><a
href="https://github.com/0"><code>@​0</code></a>.42.2</h2>
<h3>Patch Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/withastro/starlight/pull/4201">#4201</a>
<a
href="https://github.com/withastro/starlight/commit/fafd989453b024081e51c0c92db920a369c8153e"><code>fafd989</code></a>
Thanks <a
href="https://github.com/linux-universe"><code>@​linux-universe</code></a>!
- Add 1 new icon: <code>fluxer</code></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md">@​astrojs/starlight's
changelog</a>.</em></p>
<blockquote>
<h2>0.42.4</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4149">#4149</a>
<a
href="https://github.com/withastro/starlight/commit/fa10e87376f49f76a693e8d2b292aef65b959e37"><code>fa10e87</code></a>
Thanks <a
href="https://github.com/ematipico"><code>@​ematipico</code></a>! -
Optimizes rendering of large nested sidebars</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4215">#4215</a>
<a
href="https://github.com/withastro/starlight/commit/f791de65e6e14e9011586004d79f78fcef3a427e"><code>f791de6</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Adds a new <code>seti:coffee</code> icon for CoffeeScript files in the
<code>&lt;FileTree&gt;</code> component.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/starlight/pull/4215">#4215</a>
<a
href="https://github.com/withastro/starlight/commit/f791de65e6e14e9011586004d79f78fcef3a427e"><code>f791de6</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Fixes <code>&lt;FileTree&gt;</code> icons for <code>.ejs</code> and
<code>npm-debug.log</code> files displaying the default file icon.</p>
</li>
</ul>
<h2>0.42.3</h2>
<h3>Patch Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/withastro/starlight/pull/4211">#4211</a>
<a
href="https://github.com/withastro/starlight/commit/33e21ec86274070df1725580c1e8134e34062c15"><code>33e21ec</code></a>
Thanks <a href="https://github.com/HiDeoo"><code>@​HiDeoo</code></a>! -
Fixes a potential page freeze due to table of contents highlighting when
a <a
href="https://starlight.astro.build/reference/overrides/#pagetitle"><code>&lt;PageTitle&gt;</code>
component</a> override does not render a heading with the required
<code>id=&quot;_top&quot;</code>.</li>
</ul>
<h2>0.42.2</h2>
<h3>Patch Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/withastro/starlight/pull/4201">#4201</a>
<a
href="https://github.com/withastro/starlight/commit/fafd989453b024081e51c0c92db920a369c8153e"><code>fafd989</code></a>
Thanks <a
href="https://github.com/linux-universe"><code>@​linux-universe</code></a>!
- Add 1 new icon: <code>fluxer</code></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/withastro/starlight/commit/3ec633b8c50d3e1a6d67cae7dc4c50f80101ea41"><code>3ec633b</code></a>
[ci] release (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4217">#4217</a>)</li>
<li><a
href="https://github.com/withastro/starlight/commit/f791de65e6e14e9011586004d79f78fcef3a427e"><code>f791de6</code></a>
Fix file icons generator (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4215">#4215</a>)</li>
<li><a
href="https://github.com/withastro/starlight/commit/fa10e87376f49f76a693e8d2b292aef65b959e37"><code>fa10e87</code></a>
perf: avoid repeated sidebar subtree scans (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4149">#4149</a>)</li>
<li><a
href="https://github.com/withastro/starlight/commit/fafea30324b17b52c489bc37dffbc78c8cd28e2f"><code>fafea30</code></a>
Add benchmark for sidebar sublist processing (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4216">#4216</a>)</li>
<li><a
href="https://github.com/withastro/starlight/commit/b0d3b8e721b8612ab498aea678e760c099bda5a3"><code>b0d3b8e</code></a>
[ci] release (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4212">#4212</a>)</li>
<li><a
href="https://github.com/withastro/starlight/commit/33e21ec86274070df1725580c1e8134e34062c15"><code>33e21ec</code></a>
Fix toc highlighting potential page freeze (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4211">#4211</a>)</li>
<li><a
href="https://github.com/withastro/starlight/commit/525590a2480378187ea7b69c3863563d04e56315"><code>525590a</code></a>
[ci] release (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4206">#4206</a>)</li>
<li><a
href="https://github.com/withastro/starlight/commit/fafd989453b024081e51c0c92db920a369c8153e"><code>fafd989</code></a>
add Fluxer icon (<a
href="https://github.com/withastro/starlight/tree/HEAD/packages/starlight/issues/4201">#4201</a>)</li>
<li>See full diff in <a
href="https://github.com/withastro/starlight/commits/@astrojs/starlight@0.42.4/packages/starlight">compare
view</a></li>
</ul>
</details>
<br />

Updates `astro` from 7.3.3 to 7.3.5
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/astro/releases">astro's
releases</a>.</em></p>
<blockquote>
<h2>astro@7.3.5</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/17736">#17736</a>
<a
href="https://github.com/withastro/astro/commit/2b8b2e80169da0ab19055166438291c46fcfe320"><code>2b8b2e8</code></a>
Thanks <a
href="https://github.com/ematipico"><code>@​ematipico</code></a>! - Adds
a new container function called <code>renderComponent()</code>, which
renders Astro components with inlined styles and scripts.</p>
<p>Users must import the component with the new <code>?container</code>
query string:</p>
<pre lang="js"><code>import { experimental_AstroContainer } from
&quot;astro/container&quot;;
import TodoList from &quot;../components/TodoList.astro?container&quot;;
<p>const container = await experimental_AstroContainer.create();</p>
<p>const _string = container.renderComponent(TodoList);
</code></pre></p>
</li>
</ul>
<h2>astro@7.3.4</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18063">#18063</a>
<a
href="https://github.com/withastro/astro/commit/40896acb744988d9d3c2015e810c57de26390b3f"><code>40896ac</code></a>
Thanks <a
href="https://github.com/adamchal"><code>@​adamchal</code></a>! - Fixes
incremental builds repeatedly rendering unchanged pages when modules or
compiled CSS reference bundled assets.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18053">#18053</a>
<a
href="https://github.com/withastro/astro/commit/cf5d72f286c3c1185b7d39692b8ca8e789c16e02"><code>cf5d72f</code></a>
Thanks <a
href="https://github.com/Princesseuh"><code>@​Princesseuh</code></a>! -
Improves the <code>astro check</code> error shown for TypeScript 7. The
command now explains that TypeScript 7 is not currently supported and
provides instructions for experimentally type-checking Astro files with
TypeScript 7.1 and <code>@astrojs/ts-content-mapper</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18086">#18086</a>
<a
href="https://github.com/withastro/astro/commit/795a7e44640e7ad513a590a362dc0d3259de7771"><code>795a7e4</code></a>
Thanks <a
href="https://github.com/ump45nose"><code>@​ump45nose</code></a>! - Fix
double-escaped ampersands in Markdown image <code>alt</code> and
<code>title</code> attributes. The <code>__ASTRO_IMAGE_</code>
round-trip now decodes the numeric (<code>&amp;#x26;</code>) and named
(<code>&amp;amp;</code>) character references the Markdown processors
emit, so an <code>&amp;</code> in an alt or title is escaped exactly
once in the final HTML instead of twice.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18074">#18074</a>
<a
href="https://github.com/withastro/astro/commit/042980585a75a12f3b0d63377483af98ef80e0f9"><code>0429805</code></a>
Thanks <a
href="https://github.com/SurefireStudios"><code>@​SurefireStudios</code></a>!
- Fix three error names that did not match their documented reference.
<code>MissingLocale</code>,
<code>MissingIndexForInternationalization</code> and
<code>NoManifestAvailable</code> reported names ending in
<code>Error</code> in the dev overlay, while their error reference pages
are published under the unsuffixed names, so the name shown to users
could not be found in the docs.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18007">#18007</a>
<a
href="https://github.com/withastro/astro/commit/22458379f5f258ac1df225f5af644b98b1b8237b"><code>2245837</code></a>
Thanks <a href="https://github.com/L4XB"><code>@​L4XB</code></a>! -
Fixes the dev server re-evaluating the whole server module graph on
every request. The <code>astro:head-metadata</code> plugin invalidated
its component metadata virtual module from its own
<code>transform</code> hook, so each evaluation of that module scheduled
the next one. Adapters that run requests outside Vite's module runner,
such as <code>@astrojs/cloudflare</code>, paid for a full re-evaluation
of the server graph on every request for the lifetime of the
process.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18096">#18096</a>
<a
href="https://github.com/withastro/astro/commit/43657c4612f04cecf6e34d288eed1811c6508b74"><code>43657c4</code></a>
Thanks <a
href="https://github.com/matthewp"><code>@​matthewp</code></a>! - Fixes
domain-based i18n routing to respect
<code>security.allowedDomains</code> when selecting a locale from
request host headers</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18043">#18043</a>
<a
href="https://github.com/withastro/astro/commit/8a53a8b70f964e7bc127d6991cc9aca21e87750f"><code>8a53a8b</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes <code>image.responsiveStyles</code> emitting invalid
<code>object-position</code> CSS values for same-axis keyword pairs
(<code>top bottom</code>, <code>left right</code>, etc.)</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18029">#18029</a>
<a
href="https://github.com/withastro/astro/commit/c08252d6803d4af2890b4bd1c69e4b4fc49e2d04"><code>c08252d</code></a>
Thanks <a
href="https://github.com/matthewp"><code>@​matthewp</code></a>! - Runs
<code>astro dev</code> and <code>astro preview</code> in the foreground
when an AI agent is detected on Windows, allowing the agent to manage
the process lifetime. Pass <code>--background</code> explicitly to
request an Astro-managed background process. Agent-inferred
backgrounding remains enabled on other platforms.</p>
</li>
<li>
<p>Updated dependencies [<a
href="https://github.com/withastro/astro/commit/3fd16eeb5cd096a6ceb8cc3e70b89ed30d6fcd4d"><code>3fd16ee</code></a>,
<a
href="https://github.com/withastro/astro/commit/8358d59cba754480c7d830c473837a0d7100ac7e"><code>8358d59</code></a>]:</p>
<ul>
<li><code>@​astrojs/markdown-satteri</code><a
href="https://github.com/0"><code>@​0</code></a>.4.2</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md">astro's
changelog</a>.</em></p>
<blockquote>
<h2>7.3.5</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/17736">#17736</a>
<a
href="https://github.com/withastro/astro/commit/2b8b2e80169da0ab19055166438291c46fcfe320"><code>2b8b2e8</code></a>
Thanks <a
href="https://github.com/ematipico"><code>@​ematipico</code></a>! - Adds
a new container function called <code>renderComponent()</code>, which
renders Astro components with inlined styles and scripts.</p>
<p>Users must import the component with the new <code>?container</code>
query string:</p>
<pre lang="js"><code>import { experimental_AstroContainer } from
&quot;astro/container&quot;;
import TodoList from &quot;../components/TodoList.astro?container&quot;;
<p>const container = await experimental_AstroContainer.create();</p>
<p>const _string = container.renderComponent(TodoList);
</code></pre></p>
</li>
</ul>
<h2>7.3.4</h2>
<h3>Patch Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18063">#18063</a>
<a
href="https://github.com/withastro/astro/commit/40896acb744988d9d3c2015e810c57de26390b3f"><code>40896ac</code></a>
Thanks <a
href="https://github.com/adamchal"><code>@​adamchal</code></a>! - Fixes
incremental builds repeatedly rendering unchanged pages when modules or
compiled CSS reference bundled assets.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18053">#18053</a>
<a
href="https://github.com/withastro/astro/commit/cf5d72f286c3c1185b7d39692b8ca8e789c16e02"><code>cf5d72f</code></a>
Thanks <a
href="https://github.com/Princesseuh"><code>@​Princesseuh</code></a>! -
Improves the <code>astro check</code> error shown for TypeScript 7. The
command now explains that TypeScript 7 is not currently supported and
provides instructions for experimentally type-checking Astro files with
TypeScript 7.1 and <code>@astrojs/ts-content-mapper</code>.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18086">#18086</a>
<a
href="https://github.com/withastro/astro/commit/795a7e44640e7ad513a590a362dc0d3259de7771"><code>795a7e4</code></a>
Thanks <a
href="https://github.com/ump45nose"><code>@​ump45nose</code></a>! - Fix
double-escaped ampersands in Markdown image <code>alt</code> and
<code>title</code> attributes. The <code>__ASTRO_IMAGE_</code>
round-trip now decodes the numeric (<code>&amp;#x26;</code>) and named
(<code>&amp;amp;</code>) character references the Markdown processors
emit, so an <code>&amp;</code> in an alt or title is escaped exactly
once in the final HTML instead of twice.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18074">#18074</a>
<a
href="https://github.com/withastro/astro/commit/042980585a75a12f3b0d63377483af98ef80e0f9"><code>0429805</code></a>
Thanks <a
href="https://github.com/SurefireStudios"><code>@​SurefireStudios</code></a>!
- Fix three error names that did not match their documented reference.
<code>MissingLocale</code>,
<code>MissingIndexForInternationalization</code> and
<code>NoManifestAvailable</code> reported names ending in
<code>Error</code> in the dev overlay, while their error reference pages
are published under the unsuffixed names, so the name shown to users
could not be found in the docs.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18007">#18007</a>
<a
href="https://github.com/withastro/astro/commit/22458379f5f258ac1df225f5af644b98b1b8237b"><code>2245837</code></a>
Thanks <a href="https://github.com/L4XB"><code>@​L4XB</code></a>! -
Fixes the dev server re-evaluating the whole server module graph on
every request. The <code>astro:head-metadata</code> plugin invalidated
its component metadata virtual module from its own
<code>transform</code> hook, so each evaluation of that module scheduled
the next one. Adapters that run requests outside Vite's module runner,
such as <code>@astrojs/cloudflare</code>, paid for a full re-evaluation
of the server graph on every request for the lifetime of the
process.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18096">#18096</a>
<a
href="https://github.com/withastro/astro/commit/43657c4612f04cecf6e34d288eed1811c6508b74"><code>43657c4</code></a>
Thanks <a
href="https://github.com/matthewp"><code>@​matthewp</code></a>! - Fixes
domain-based i18n routing to respect
<code>security.allowedDomains</code> when selecting a locale from
request host headers</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18043">#18043</a>
<a
href="https://github.com/withastro/astro/commit/8a53a8b70f964e7bc127d6991cc9aca21e87750f"><code>8a53a8b</code></a>
Thanks <a
href="https://github.com/apps/astro-factory"><code>@​astro-factory</code></a>!
- Fixes <code>image.responsiveStyles</code> emitting invalid
<code>object-position</code> CSS values for same-axis keyword pairs
(<code>top bottom</code>, <code>left right</code>, etc.)</p>
</li>
<li>
<p><a
href="https://redirect.github.com/withastro/astro/pull/18029">#18029</a>
<a
href="https://github.com/withastro/astro/commit/c08252d6803d4af2890b4bd1c69e4b4fc49e2d04"><code>c08252d</code></a>
Thanks <a
href="https://github.com/matthewp"><code>@​matthewp</code></a>! - Runs
<code>astro dev</code> and <code>astro preview</code> in the foreground
when an AI agent is detected on Windows, allowing the agent to manage
the process lifetime. Pass <code>--background</code> explicitly to
request an Astro-managed background process. Agent-inferred
backgrounding remains enabled on other platforms.</p>
</li>
<li>
<p>Updated dependencies [<a
href="https://github.com/withastro/astro/commit/3fd16eeb5cd096a6ceb8cc3e70b89ed30d6fcd4d"><code>3fd16ee</code></a>,
<a
href="https://github.com/withastro/astro/commit/8358d59cba754480c7d830c473837a0d7100ac7e"><code>8358d59</code></a>]:</p>
<ul>
<li><code>@​astrojs/markdown-satteri</code><a
href="https://github.com/0"><code>@​0</code></a>.4.2</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/withastro/astro/commit/c2e01642af5f3919e4951b277a01d2de0ba1322f"><code>c2e0164</code></a>
[ci] release (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18113">#18113</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/2b8b2e80169da0ab19055166438291c46fcfe320"><code>2b8b2e8</code></a>
feat: add render component (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/17736">#17736</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/790c6f720efd9de362e7a2b6319ac2d721062bda"><code>790c6f7</code></a>
[ci] release (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18035">#18035</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/9d17bf1af7eb5d6c753e590dcb36b882647f859a"><code>9d17bf1</code></a>
Update dependency obug to v3 (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18100">#18100</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/43657c4612f04cecf6e34d288eed1811c6508b74"><code>43657c4</code></a>
Fix i18n domain host validation (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18096">#18096</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/00393ff0819d615acea30341f2c850dbafacb826"><code>00393ff</code></a>
Update dependency vitest [SECURITY] (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18026">#18026</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/40896acb744988d9d3c2015e810c57de26390b3f"><code>40896ac</code></a>
fix(incremental): resolve asset placeholders in modules or compiled CSS
(<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18063">#18063</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/042980585a75a12f3b0d63377483af98ef80e0f9"><code>0429805</code></a>
fix(errors): align three error names with their documented reference (<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18074">#18074</a>)</li>
<li><a
href="https://github.com/withastro/astro/commit/3eab954d213e3dd040db7925b56e7ab5a02f4532"><code>3eab954</code></a>
[ci] format</li>
<li><a
href="https://github.com/withastro/astro/commit/795a7e44640e7ad513a590a362dc0d3259de7771"><code>795a7e4</code></a>
Fix double-escaped ampersands in Markdown image alt and title attributes
(<a
href="https://github.com/withastro/astro/tree/HEAD/packages/astro/issues/18">#18</a>...</li>
<li>Additional commits viewable in <a
href="https://github.com/withastro/astro/commits/astro@7.3.5/packages/astro">compare
view</a></li>
</ul>
</details>
<br />


Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-27 21:16:20 -07:00
Maximilian RoosandClaude Opus 5.5 7294e7964b perf(list): skip the PR/MR lookup for branches never pushed (#4289)
A forge opens a PR/MR only from a branch it hosts, so a local branch
that no remote has under its name can't head one. `wt list --full`, the
statusline and the picker still asked the forge about every such branch
whenever the CI cache (30–60s) had expired. On a repo with 239 local
branches, of which 19 exist on `origin`, that was 249 `gh` calls at
~450ms and ~65ms of CPU each, about 15 CPU-seconds per run.

`detect_ci` now skips the PR/MR lookup for a local branch that was never
pushed: no remote has a branch by that name, and the branch's push
remote (or the primary remote, when none is set) has a fetch refspec
that would have recorded it under `refs/remotes/`. `git push` updates
the remote-tracking ref only where the fetch refspecs map the branch. So
a `--single-branch` or `--depth` clone, which maps only the cloned
branch, still asks the forge about every other branch. A URL push remote
(`gh pr checkout` of a fork's PR) has no refspecs and is still asked
about too. Both checks read the ref inventory and config map already
cached for the command. The branch-workflow fallback is unchanged, and
the rule applies to every forge.

The push remote now comes from the existing local-branch scan
(`%(push:remotename)`, no measurable cost) instead of one `for-each-ref`
per branch. `Branch::push_remote_url` forks nothing after the first
scan, and the per-branch cache that existed only to avoid that fork is
deleted.

Measured with `wt list --full` on that repo, CI cache cleared, 5 runs
each at load average ~30:

| | main | this branch |
|---|---:|---:|
| `gh` calls | 249 | 25 |
| last CI result (median) | 9.25s | 5.2s |
| total wall (median) | 12.0s | 9.6s |

Under that load the local git work was the bottleneck, and the 25 calls
started only at 2.3–5s. On a quiet machine the CI tail should be close
to one round trip; that's an estimate, not a measurement.

The trade-off: a PR opened from a branch pushed by another clone, and
not yet fetched here, shows no PR until the next fetch. The help text's
blank-CI row now reads "Branch never pushed", replacing "No upstream",
which was never exactly when the cell goes blank.

`test_pr_lookup_skips_branches_on_no_remote` checks the `gh` call log
for four cases: pushed, URL push remote, a push remote set up like a
`--single-branch` clone, and never pushed. Dropping either the remote
check or the refspec check fails it.
`refspecs_track_ref_follows_the_fetch_mapping` covers the refspec
matching, including negative refspecs.

> _This was written by Claude Code on behalf of max-sixty_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 21:09:00 -07:00
Maximilian Roos ebb27e3bfe docs: remove redundant CLAUDE.md imports (#4287)
Claude Code reads the existing AGENTS.md files directly, so remove the
nine one-line CLAUDE.md imports that duplicate them.

> _This was written by Codex on behalf of max-sixty_
2026-09-26 17:54:52 -07:00