IW-555: an undeliverable --prompt costs the automation, not the session #580
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!580
Loading…
Reference in a new issue
No description provided.
Delete branch "IW-555"
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
iw open --prompt "…"andiw start --prompt "…"ask for two things: put thecaller into the worktree session, and send that session a prompt. When no
session action hook was there to take the prompt, the caller got neither —
and the command exited 0.
This branch makes the undeliverable prompt cost only the automation:
NoHooksandSetupOnlynow join exactlyas the no-prompt path does. Skipping the join was an unrelated penalty.
architecture ("no session action hook installed"), the command prints the
prompt itself:
The prompt was not sent. Run it in the session by hand: ….CommandResult.promptNotSent)means "session open, prompt not sent", declared on
open,startandanalyze. A failed join still exits 1.The
SetupOnlybranch — silent prompt loss on any repository with an.envrcor a zvec-grep index — was the worse of the two cases and is fixed by the same
condition.
Defects fixed
--promptwith no action hook drops the prompt, skips the join, and exits 0 (NoHooks)--promptis dropped in silence (SetupOnly)Testing
core/test/OpenHarnessTest.scala,core/test/StartHarnessTest.scala— theprompt is printed, the session is joined, and the exit code is 5; a failed
attach still exits 1; a setup hook with no prompt attaches silently.
test/open-prompt.bats,test/start-prompt.bats,test/analyze.bats— thewiring smoke tests follow the new message and exit code.
docs/api/SessionHooks.mdcorrected to describe what the branches now do.Reproduce with
IW_PLUGINS_DISABLED=1andIW_HOOK_CLASSESunset — on adeveloper machine the
kanonplugin supplies an action hook foropenandhides the symptom.
Release notes
project-management/issues/IW-555/release-notes.md(Czech, user-facing).Follow-ups filed
IW_CORE_JARis exported into everyiw opensession and makes oneworktree run another worktree's jar (found while comparing against a
baseline; see
LESSONS.md).Closes #555
🤖 Generated with Claude Code
Issue: IW-555 Phase: 1 - `--prompt` with no action hook drops the prompt, skips the join, and exits 0 (`NoHooks`) This commit marks the checkpoint for phase 1 context generation. Use dx-fix IW-555 to return to this point. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>`--prompt` with no action hook drops the prompt, skips the join, and exits 0 (`NoHooks`) Artifacts: - phase-01-tasks.md 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>--promptwith no action hook drops the prompt, skips the join, and exits 0 (NoHooks) (#564) 1d777f1d06--promptis dropped in silence (SetupOnly) (#576) 13537b1720