Skip to content

fix(server): keep several lines sent to an agent on a mirrored Linux or macOS pane in its message box - #290

Merged
devswha merged 2 commits into
mainfrom
fix/mirror-paste-everywhere
Oct 2, 2026
Merged

devswha merged 2 commits into
mainfrom
fix/mirror-paste-everywhere

Conversation

@devswha

@devswha devswha commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Change

Closes #269.

Several lines sent to an agent on a mirrored pane were shaped into one bracketed paste only on a Windows PC. A Linux or macOS PC mirrors too when it has no Node for the PTY sidecar (#265), and herdr there hands pane.send_text to the program byte for byte. mirrorInput now shapes the block wherever the pane is mirrored; the rules are unchanged (only a pane herdr names an agent on, only a block with a line break inside it, never one already bracketed).

Validation

  • herdr 0.9.0 on Linux, isolated session: cat -v after ESC[?2004h showed line one\rline two from pane.send_text bare, and a block sent with markers arrived with them. herdr adds none itself.
  • A server with terminalAttach: false on the same session, gjc in the pane, a submit frame with typed: true and two CR-joined lines (what the terminal's input line sends):
    • before: gjc took reply with the single word first as a message of its own and answered it;
    • after: one message holding both lines.
  • bun run typecheck, bun run test:unit (874 pass).
  • Not checked: a real remote PC without Node (the mirror was forced with terminalAttach: false), and the paste-into-terminal path on Linux, which calls the same function.

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: a9f8fb48-2cc9-42f9-b78b-dc6280ca289d

📥 Commits

Reviewing files that changed from the base of the PR and between 0c9e083 and 0114204.

📒 Files selected for processing (4)
  • CHANGELOG.md
  • server/index.ts
  • server/mirror-input.test.ts
  • server/mirror-input.ts
 ____________________________________________________________________
< Never go full rewrite. You don't buy that? Ask Netscape Navigator. >
 --------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

@devswha
devswha merged commit 9a1797a into main Oct 2, 2026
9 of 10 checks passed
@devswha
devswha deleted the fix/mirror-paste-everywhere branch October 2, 2026 00:28
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.

Windows: several lines sent from the terminal lens's input line on a phone still send the first line alone to an agent

1 participant