feat(terminal): add split_pane support for tmux pane splitting#463
Merged
Conversation
Handle `split_pane` WebSocket messages from the API and execute
`tmux split-window -h/-v -t {sessionName}`. Return `tmux_pane_split`
response with success/failure details.
Security: sessionName validated against ^[a-zA-Z0-9_\-:.]+$ to prevent
command injection at both API and agent layers.
Add 11 tests covering horizontal/vertical split, invalid session names
(semicolon, backtick, dollar sign, empty), ENOENT, and general errors.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
split_paneWebSocket messages from the APItmux split-window -h/-v -t {sessionName}on the agenttmux_pane_splitresponse with success/failure details^[a-zA-Z0-9_\-:.]+$at both API and agent layersTest plan
npm run buildpasses🤖 Generated with Claude Code