IW-616: Shutdown-safe ProcessAdapter.run #618
No reviewers
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli!618
Loading…
Reference in a new issue
No description provided.
Delete branch "IW-616"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
ProcessAdapter.rungets adestroyOnExit: Boolean = trueparameter, passed toos.proc(...).call. WithdestroyOnExit = false, a caller (for example a shutdown hook) can spawn a process while the JVM shuts down. The default staystrue, so no current caller changes behavior.Changes
core/adapters/Process.scala— newdestroyOnExitparameter and Scaladoc.core/test/ShutdownSpawnProbe.scala— probe main that spawnsgitfrom a shutdown hook.core/test/ProcessTest.scala— two forked-JVM tests: default path throws during shutdown;destroyOnExit = falsesucceeds.docs/api/Process.md— documents the parameter.Testing
ProcessTest; the existingruntests are unchanged.Review packet:
project-management/issues/IW-616/review-packet.mdRelease notes
Bezpečnější spouštění příkazů při ukončování procesu — nástroje postavené na iw-cli teď mohou spustit příkaz i ve chvíli, kdy jejich proces končí, pokud si to vyžádají (
destroyOnExit = false). Výchozí chování se nemění. Vizproject-management/issues/IW-616/release-notes.md.🤖 Generated with Claude Code
Closes #616
ProcessAdapter.run cannot spawn during JVM shutdown, so no recovery step can reach git Artifacts: - tasks.md - review-state.json (tasks_ready) 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>Issue: IW-616 Phase: 1 - Shutdown-safe ProcessAdapter.run This commit marks the checkpoint for phase 1 context generation. Use wf-implement IW-616 to return to this point. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>Shutdown-safe ProcessAdapter.run Artifacts: - phase-01-tasks.md 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>