Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

agterm overlay: use launcher cwd + flag blocked status - #242

#242
Merged
umputun merged 3 commits into
masterumputun/revdiff:masterfrom
fix/agterm-overlayumputun/revdiff:fix/agterm-overlayCopy head branch name to clipboard
Jun 24, 2026
Merged

agterm overlay: use launcher cwd + flag blocked status#242
umputun merged 3 commits into
masterumputun/revdiff:masterfrom
fix/agterm-overlayumputun/revdiff:fix/agterm-overlayCopy head branch name to clipboard

Conversation

@umputun

@umputun umputun commented Jun 24, 2026

Copy link
Copy Markdown
Owner

two agterm-backend fixes to the overlay launcher, plus a docs note.

overlay used the wrong directory. The agterm branch called agtermctl session overlay open without --cwd, so the overlay opened in the agent session's cwd instead of the dir the launcher ran from. Worktree-based reviews (e.g. a PR review against a git worktree) showed the wrong repo. Every other backend already forwards $CWD; agterm now passes --cwd "$CWD".

no blocked indicator while revdiff is open. Claude Code doesn't flag the session blocked while revdiff owns the overlay, so the launcher now sets the agent-status indicator to blocked (blinking) while the overlay is up and back to active after, via agtermctl session status.

both fixes touch the .claude-plugin and plugins/codex launcher copies (kept in sync). The agterm branch needs agtermctl to run, so no unit test; verified manually against a worktree.

separate commit: a CLAUDE.md note that plugin/pi version bumps happen at release only, not per file change.

umputun added 2 commits June 24, 2026 14:11
two agterm-backend fixes:
- pass --cwd "$CWD" to `agtermctl session overlay open` so the overlay runs in
  the launcher's working dir, not the agent session's. worktree-based reviews
  (e.g. a PR review against a git worktree) showed the wrong repo before.
- set the session's agent-status indicator to blocked (blinking) while the
  overlay is up, back to active after. claude code doesn't flag the session
  blocked while revdiff owns the overlay, so the launcher does it directly.
plugin (.claude-plugin) and pi (package.json) version bumps happen as part of
the release process, not on each plugin file change. drops the per-change
"ask to bump" prompts.
Copilot AI review requested due to automatic review settings June 24, 2026 19:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the revdiff overlay launcher to behave correctly in agterm sessions by (1) launching the overlay in the caller’s working directory and (2) explicitly toggling the agterm agent-status indicator while the overlay is active. It also updates CLAUDE.md to clarify that plugin/pi version bumps are handled only during releases.

Changes:

  • Pass --cwd "$CWD" to agtermctl session overlay open so agterm overlays open in the launcher’s working directory (e.g., a git worktree).
  • Set agterm session status to blocked (with --blink) while revdiff owns the overlay, then restore active after revdiff exits.
  • Update CLAUDE.md guidance to avoid prompting version bumps per PR/change; bumps happen at release time.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
plugins/codex/skills/revdiff/scripts/launch-revdiff.sh Adds agterm --cwd forwarding and session status toggling while overlay runs.
.claude-plugin/skills/revdiff/scripts/launch-revdiff.sh Keeps the Claude plugin launcher copy in sync with the same agterm fixes.
CLAUDE.md Documents release-only version bump policy for plugin and pi packages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +127 to +131
# (blocked + blink draws attention from other windows); restore active once revdiff exits.
agtermctl session status blocked --blink "${AGTERM_TARGET[@]}" >/dev/null 2>&1 || true
rc=0
"${AGTERM_ARGS[@]}" || rc=$?
agtermctl session overlay open "$REVDIFF_CMD" "${AGTERM_TARGET[@]}" --cwd "$CWD" --block || rc=$?
agtermctl session status active "${AGTERM_TARGET[@]}" >/dev/null 2>&1 || true
Comment on lines +126 to +130
# (blocked + blink draws attention from other windows); restore active once revdiff exits.
agtermctl session status blocked --blink "${AGTERM_TARGET[@]}" >/dev/null 2>&1 || true
rc=0
"${AGTERM_ARGS[@]}" || rc=$?
agtermctl session overlay open "$REVDIFF_CMD" "${AGTERM_TARGET[@]}" --cwd "$CWD" --block || rc=$?
agtermctl session status active "${AGTERM_TARGET[@]}" >/dev/null 2>&1 || true
set the agent-status indicator back to active from an EXIT trap (INT/TERM exit
through it) instead of only on the normal return path. an interrupt while
revdiff owned the overlay previously left the session stuck blinking blocked.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 24, 2026

Copy link
Copy Markdown

Deploying revdiff with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0da5ecc
Status: ✅  Deploy successful!
Preview URL: https://029a240e.revdiff.pages.dev
Branch Preview URL: https://fix-agterm-overlay.revdiff.pages.dev

View logs

@umputun
umputun merged commit f82ae9c into master Jun 24, 2026
5 checks passed
@umputun
umputun deleted the fix/agterm-overlay branch June 24, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.