You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
revdiff-planning's launch-plan-review.sh has no agterm branch — falls through to "no overlay terminal available" #270
plugins/revdiff-planning/scripts/launch-plan-review.sh detects the terminal via env vars (tmux/zellij/herdr/kitty/wezterm/cmux/ghostty/iTerm2/emacs). agterm sets TERM_PROGRAM=agterm (not ghostty), and is_cmux_session() doesn't match it either — so under plain agterm, every branch falls through to the final echo "error: no overlay terminal available" >&2; exit 1. plan-review-hook.py treats that as a soft failure and silently falls back to the normal text confirmation — no crash, but the whole review-in-revdiff feature is a no-op under agterm.
Your other plugin, plugins/planning/scripts/launch-plan-review.sh, already has a working agterm branch:
# agterm: `agtermctl session overlay open <cmd> --block` opens revdiff in a full-pane# overlay over the agent's own session and blocks until it exits — like tmux's# display-popup -E, so no sentinel is needed. checked first so an agterm session always# uses its native overlay even when a multiplexer is also present. needs $AGTERM_SESSION_ID# (set in every agterm session) and agtermctl on PATH.if [ -n"${AGTERM_SESSION_ID:-}" ] &&command -v agtermctl >/dev/null 2>&1;then
AGTERM_TARGET=(--target "$AGTERM_SESSION_ID")
[ -n"${AGTERM_SOCKET:-}" ] && AGTERM_TARGET+=(--socket "$AGTERM_SOCKET")
agtermctl session status blocked --blink "${AGTERM_TARGET[@]}">/dev/null 2>&1||truetrap'agtermctl session status active "${AGTERM_TARGET[@]}" >/dev/null 2>&1 || true; rm -f "$OUTPUT_FILE"' EXIT
trap'exit 130' INT
trap'exit 143' TERM
agtermctl session overlay open "$REVDIFF_CMD""${AGTERM_TARGET[@]}" --cwd "$CWD" --block >/dev/null ||true
cat "$OUTPUT_FILE"exit 0
fi
Porting the same block into revdiff-planning's launcher (before the tmux check, same as in planning) should fix it — $REVDIFF_CMD/$OUTPUT_FILE/$CWD are already the same variable names in both scripts.
fixed in #273. Added the agterm overlay branch to launch-plan-review.sh, ported from the cc-thingz planning launcher as you suggested and placed first, before the tmux check.
one adjustment for this launcher: it captures the launcher's stdout for annotations and sets REVDIFF_EXIT_CODE_ON_ANNOTATIONS=true, so the port discards the overlay-open stdout and propagates revdiff's exit code instead of the exit 0 the cc-thingz version uses. Also brought agterm into the fall-through error message, the plugin README, and the diff-review launch-revdiff.sh messages, and added an agterm case to the launcher exit-code test.
Activity
fix(revdiff-planning): agterm overlay branch for plan-review launcher (…
umputun commentedon Jul 16, 2026
fixed in #273. Added the agterm overlay branch to
launch-plan-review.sh, ported from thecc-thingzplanning launcher as you suggested and placed first, before the tmux check.one adjustment for this launcher: it captures the launcher's stdout for annotations and sets
REVDIFF_EXIT_CODE_ON_ANNOTATIONS=true, so the port discards the overlay-open stdout and propagates revdiff's exit code instead of theexit 0the cc-thingz version uses. Also brought agterm into the fall-through error message, the plugin README, and the diff-reviewlaunch-revdiff.shmessages, and added an agterm case to the launcher exit-code test.