Files
Maximilian Roosandworktrunk-bot b3d6fd2700 Clarify recovery hints and file-operation diagnostics (#4346)
GitHub PR-not-found errors keep the selected repository and its source
in the diagnosis, preserve the CLI error, and render `gh repo
set-default` as a separate recovery hint. Relocation warnings identify
the blocking path and explain that `--clobber` backs it up; config
migration hints name the command that applies the updates.

Copy and promote failures use the shared path formatter and retain their
underlying I/O errors. Failed copies name both source and destination,
including when the source is readable and the destination is invalid.
Promote recovery commands use shell-quoted paths.

Validation: the required local pre-merge gate passes 5,392 tests (one
skipped), Clippy, formatting, locked dependencies, documentation and
doctests. Focused error-path tests check quoted paths, destination
context and retained I/O causes; command snapshots cover the recovery
hints. Independent review found no remaining issues.

Remote patch coverage is 90.06% (136/151 lines) against a 98.55% gate.
The 15 misses are existing filesystem-failure paths whose diagnostic
formatting changed; exercising most would require races, fault injection
or special permission/ownership fixtures. The maintainer approved
landing with this coverage gap and the independent subagent review after
the automated review job completed without posting a verdict. Linux,
macOS and Windows CI, including all advisory affected-tests jobs,
passed.

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

---------

Co-authored-by: worktrunk-bot <worktrunk-bot@users.noreply.github.com>
2026-10-21 10:32:29 -07:00
..