Skip to content

Fix drive-less paths and drain error reports; version 2.2 - #29

Merged
HalRiveria merged 1 commit into
mainfrom
fix/review-followups
Nov 2, 2026
Merged

HalRiveria merged 1 commit into
mainfrom
fix/review-followups

Conversation

@HalRiveria-Bot

Copy link
Copy Markdown
Collaborator

What was wrong

  • Paths that depend on a current drive or folder. A WorkingDirectory or FilePath like \tools or C:tools went straight to Windows, which used the process's drive and folder rather than PowerShell's current location. The start failed, or the program could run in the wrong place. This has been there since v2.1.
  • Non-terminating errors during an abort's drain. A worker with a non-terminating error that finished while an abort waited for it printed nothing, so a partial result looked fine. The main loop already reported these.

Reproduced on Windows PowerShell 5.1 and PowerShell 7.

What changed

  • Only complete paths (X:\..., \...) now go straight through. The rest are resolved the way PowerShell reads them, including from a registry location. A FilePath with a drive and no folder (C:tool.exe) is included.
  • The drain now reports Runspace error: ... the same way as the main loop.
  • Removed Set-PkRunActive, Set-PkConsoleQuickEdit and Test-PkOwnAbortException, which had no callers, and a no-op assignment.
  • Version is 2.2, in the file header and the README.

Testing

  • 3 new harness checks: a WorkingDirectory without a complete path, a FilePath without a drive, and a non-terminating error during the drain. All 3 fail on main's kit.
  • ALL PASSED (291 assertions) on 5.1 and 7.

🤖 Generated with Claude Code

A WorkingDirectory or FilePath like \tools or C:tools depends on a current
drive and folder. The kit passed those straight to Windows, which used the
process's rather than PowerShell's current location: the start failed, or
the program ran in the wrong place. Only complete paths now go straight
through; the rest are resolved the way PowerShell reads them.

A non-terminating error in a worker that finished during an abort's drain
wasn't reported, so a partial result looked fine. It now gets the same
"Runspace error:" message as in the main loop.

Three helpers with no callers are removed, along with a no-op assignment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HalRiveria
HalRiveria merged commit 944597d into main Nov 2, 2026
2 checks passed
@HalRiveria
HalRiveria deleted the fix/review-followups branch November 2, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants