Skip to content

Make detached loops session-bound#28

Open
lossyrob wants to merge 1 commit into
mainfrom
fix-loop-session-bound-detached
Open

Make detached loops session-bound#28
lossyrob wants to merge 1 commit into
mainfrom
fix-loop-session-bound-detached

Conversation

@lossyrob
Copy link
Copy Markdown
Owner

@lossyrob lossyrob commented Jun 2, 2026

Summary

  • Make detached PowerShell loop workers session-bound by recording owner process metadata and abandoning when the owner exits.
  • Surface abandoned through status and waiter handling so restarted sessions do not adopt stale live workers.
  • Remove independent background handoff guidance and add regression tests for owner lifecycle behavior.

Tests

  • pwsh -NoProfile -ExecutionPolicy Bypass -File .\skills\loop\scripts\Test-StartLoopDetached.ps1
  • pwsh -NoProfile -ExecutionPolicy Bypass -File .\skills\loop\scripts\Test-LoopOwnerLifecycle.ps1
  • pwsh -NoProfile -ExecutionPolicy Bypass -File .\skills\loop\scripts\Test-WaiterFallback.ps1
  • pwsh -NoProfile -ExecutionPolicy Bypass -File .\skills\loop\scripts\Test-LoopCleanup.ps1

Record owner process metadata for detached PowerShell workers and abandon runs when the owner exits. Surface abandoned runs through status/waiter handling, prune abandoned run directories, and remove independent background handoff guidance.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant