Skip to content

feat(gadgets): improve Tmux capture and EditFile display#81

Merged
zbigniewsobiecki merged 1 commit intodevfrom
feat/gadget-ux-improvements
Jan 18, 2026
Merged

feat(gadgets): improve Tmux capture and EditFile display#81
zbigniewsobiecki merged 1 commit intodevfrom
feat/gadget-ux-improvements

Conversation

@zbigniewsobiecki
Copy link
Copy Markdown
Member

Summary

This PR improves the developer and agent experience with several UX enhancements:

Tmux Capture Session Status

  • Problem: Agents could get stuck in infinite polling loops when a tmux command completed but the capture action didn't report it
  • Solution: Tmux(action="capture") now reports status=running or status=exited exit_code=N
  • Added getSessionStatus() helper to TmuxControlClient combining exit marker and pane death detection

EditFile BEFORE/AFTER Markers

  • Problem: Both BEFORE and AFTER sections used > markers, making diffs harder to read
  • Solution: BEFORE sections now use < (content being removed), AFTER uses > (content being added)
  • More intuitive diff visualization matching common diff conventions

Interactive Mode EditFile Display

  • Shows the comment field (rationale for the edit)
  • Displays mode in yellow ([search_replace], [insert_at_line], [remove_lines])
  • Proper formatting for all three EditFile modes

Test plan

  • All existing tests pass
  • TypeScript typecheck passes
  • Biome lint passes
  • CI passes on PR

🤖 Generated with Claude Code

Tmux capture action now reports session status:
- Added getSessionStatus() helper to TmuxControlClient
- handleCapture() now returns status=running or status=exited exit_code=N
- Prevents agents from infinite polling loops when commands complete
- Updated examples to show new status field

EditFile output uses intuitive diff markers:
- BEFORE sections now use '<' marker (content being removed)
- AFTER sections use '>' marker (content being added)
- Added editMarker parameter to formatContext()
- Updated all examples to reflect new markers

Interactive mode EditFile display improvements:
- Shows comment field (rationale for the edit)
- Displays mode in yellow ([search_replace], [insert_at_line], [remove_lines])
- Proper formatting for all three modes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@zbigniewsobiecki zbigniewsobiecki merged commit 13afc8d into dev Jan 18, 2026
3 checks passed
@zbigniewsobiecki zbigniewsobiecki deleted the feat/gadget-ux-improvements branch January 18, 2026 13:28
@zbigniewsobiecki zbigniewsobiecki mentioned this pull request Jan 18, 2026
2 tasks
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.

1 participant