Commit 3aac988
committed
mcp(fix[window_tools]): Use Window.resize() instead of raw cmd
why: Raw window.cmd("resize-window") skips stderr checking and
self.refresh() that Window.resize() provides.
what:
- Replace raw cmd with window.resize(height=height, width=width)
- Add test for resize_window tool1 parent 45cf989 commit 3aac988
File tree
2 files changed
+15
-7
lines changed- src/libtmux/mcp/tools
- tests/mcp
2 files changed
+15
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
| 303 | + | |
310 | 304 | | |
311 | 305 | | |
312 | 306 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
84 | 98 | | |
85 | 99 | | |
86 | 100 | | |
| |||
0 commit comments