Commit 1c1a6fa
committed
mcp(fix[pane_tools]): Use tmux-level reset instead of sending keystrokes
why: `clear_pane` called `pane.clear()` which sends the literal text
"reset" + Enter as keystrokes to the pane's foreground process. For
non-shell panes (vim, REPL, TUI), this injects unexpected input. The
tool's contract says "clear the pane" but the annotation says
`destructiveHint: False`, compounding the mismatch.
what:
- Use `pane.reset()` which does tmux-level `send-keys -R \; clear-history`
- This resets the terminal state and clears history without injecting keystrokes1 parent 462db9c commit 1c1a6fa
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
0 commit comments