Commit 71cc5cf
committed
fix(tools): Use ANNOTATIONS_CREATE for swap_pane
why: ANNOTATIONS_MUTATING advertises idempotentHint=True, but
`swap_pane(A, B)` is a toggle — calling it twice swaps the panes
back to their original positions, so repeated invocations do NOT
converge on a single state. Per the MCP annotation semantics
defined in src/libtmux_mcp/_utils.py (L55-66), non-idempotent
operations belong in ANNOTATIONS_CREATE (idempotentHint=False).
This matches the precedent already established on this branch
for send_keys, paste_text, and (commit 0df675f) pipe_pane.
what:
- Switch swap_pane registration from ANNOTATIONS_MUTATING to
ANNOTATIONS_CREATE in pane_tools.register(). Tag remains
TAG_MUTATING.1 parent 052079d commit 71cc5cf
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1274 | 1274 | | |
1275 | 1275 | | |
1276 | 1276 | | |
1277 | | - | |
| 1277 | + | |
1278 | 1278 | | |
1279 | 1279 | | |
1280 | 1280 | | |
| |||
0 commit comments