Repository navigation
feat(delivery): send feedback through any command with PLANNOTATOR_TUI_DELIVER_CMD - #151
Merged
Merged
Conversation
…I_DELIVER_CMD The command line runs in the shell with the feedback on stdin. Exit 0 is delivered, 75 blocked and 69 unavailable (both copy), anything else failed with stderr. [deliver] command sets it in the config. A target a Herdr, Rex or hc launcher named still comes first; the command replaces the clipboard.
This was referenced Nov 15, 2026
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds a plug-in delivery target for agents and multiplexers that plannotator-tui has no built-in support for. Herdr, Rex and herdr-core stay built in.
Set
PLANNOTATOR_TUI_DELIVER_CMD, or[deliver] commandin the config, to a command line. Send (E) runs it with the feedback on stdin. The command's exit status is the outcome:075(EX_TEMPFAIL)Blocked: the agent cannot take a message nowEretries69(EX_UNAVAILABLE)Unavailable: there is no agent to send toEretriesFailedDecisions:
sh -con unix andcmd /S /C "<line>"on Windows, throughraw_argso the line arrives as written. Pipelines and variables work.PLANNOTATOR_TUI_REVIEW_PATHis set to the file or folder under review, when there is one. Everything else is inherited, includingPLANNOTATOR_TUI_DELIVER_AGENTwhen a launcher set it.Pcan still switch Send to a Pi session.cmd &) does not hold the review up either.describe()iscmd · <program>, the first word's file name, skippingVAR=value. For example:Send 3 new ▸ cmd · tmux (E).plannotator-tui pi send --session <id>already works as a delivery command. The README shows it.Code:
src/delivery/command.rs(the target) anddelivery/command/tests.rs.config.rsgains[deliver] command. Incli.rs,review_deliveryputs the command betweenagent_pane()and the clipboard, andplannotator-tui configshows the value that applies, as it does for the theme.Tests
The tests run real shells and tiny scripts:
exit 0/75/69/3through the real shell. These run on every platform, Windows included, becauseexit Nmeans the same toshandcmd.PLANNOTATOR_TUI_REVIEW_PATH, and its stdout line becomes the notice.sleep 5 & echo sent, and a command that never finishes (stopped by the timeout).[deliver] commandparses and shows inplannotator-tui config.cargo fmt --all --check,cargo clippy --workspace --all-targets -- -D warnings,cargo test --workspaceandpython3 herdr/test-manifest.pypass on macOS. Windows runs in CI; I could not cross-compile it here.Closes #136