Skip to content

feat(terminal): add split_pane support for tmux pane splitting#463

Merged
koichimurakami merged 1 commit into
mainfrom
feature/console-split-layout
Jun 20, 2026
Merged

feat(terminal): add split_pane support for tmux pane splitting#463
koichimurakami merged 1 commit into
mainfrom
feature/console-split-layout

Conversation

@koichimurakami

Copy link
Copy Markdown
Contributor

Summary

  • Handle split_pane WebSocket messages from the API
  • Execute tmux split-window -h/-v -t {sessionName} on the agent
  • Return tmux_pane_split response with success/failure details
  • sessionName validated against ^[a-zA-Z0-9_\-:.]+$ at both API and agent layers

Test plan

  • npm run build passes
  • 11 new tests pass (terminal-websocket-split.spec.ts)
  • No regressions in existing test suite (154 suites, 4364 tests)

🤖 Generated with Claude Code

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>
@koichimurakami koichimurakami merged commit c527fb3 into main Jun 20, 2026
3 checks passed
@koichimurakami koichimurakami deleted the feature/console-split-layout branch June 20, 2026 12:12
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.

1 participant