open --prompt with no session hook drops the prompt and the session, and still exits 0 #555
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#555
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
iw open <key> --prompt "..."asks for two things: open the session, and send it a prompt. With no session action hook installed the user gets neither.WorkspaceSession.enterAfterHooks:Three separate problems.
The undeliverable prompt costs the session too. Not sending the prompt is honest. Skipping
joinas well is an unrelated penalty — the session exists, is ready, and the user is not put into it. The no-prompt path joins; the prompt path should too.The warning names an internal concept and offers no next step. "No session action hook installed" describes the plugin architecture to somebody who typed a command. iw-cli's own gate rule is that every blocking result carries the command that clears it, because the hint is the whole interface. This one carries nothing — not what to run instead, not where a hook would come from.
It exits 0 having not done what was asked. A script cannot distinguish a prompt that ran from a prompt that vanished.
There is a fourth, subtler one: the same flag behaves differently on
startand onopen, and the difference is an invisible plugin detail —starthas a hook,opendoes not.Suggested shape, in order of preference:
Found while looking for a single terminal command to run a triage in an existing worktree.
Type: bug
Filed from:
/home/mph/Devel/iw/iw-cli-IW-517on branchIW-517Intake: agent-ready
Workflow: diagnostic
Reason: all gates passed
Analysis: project-management/issues/IW-555/analysis.md on branch IW-555