Skip to content

fix: split terminal panel into side-by-side Shell/Run and fix run WebSocket (Refs: beans-f4ny)#154

Merged
hmans merged 2 commits into
mainfrom
beans/zippy-baboon-st03
Mar 18, 2026
Merged

fix: split terminal panel into side-by-side Shell/Run and fix run WebSocket (Refs: beans-f4ny)#154
hmans merged 2 commits into
mainfrom
beans/zippy-baboon-st03

Conversation

@hmans
Copy link
Copy Markdown
Owner

@hmans hmans commented Mar 18, 2026

Summary

  • Fix run WebSocket bug: resolveTerminalWorkDir in terminal_handler.go didn't handle the __run suffix on session IDs. When StartRun created a session like __central____run, the WebSocket handler couldn't resolve its work directory and immediately closed the connection. Fixed by stripping __run before lookup.
  • Side-by-side Terminal/Run layout: Replaced the Shell/Run tab switcher with a horizontal split. When a run process is active, the terminal panel splits into "Terminal" (left) and "Run" (right). When not running, the shell takes full width.

Test plan

  • Open a workspace, click Run — verify the run command starts and output appears in the Run pane
  • Verify the Shell terminal remains usable alongside the Run pane
  • Click Stop — verify the Run pane disappears and Shell takes full width
  • Test with a worktree workspace (not just central) to verify __run suffix stripping works for worktree IDs too

hmans added 2 commits March 18, 2026 11:17
…Socket (Refs: beans-f4ny)

- Fix resolveTerminalWorkDir to strip __run suffix from session IDs before
  workspace lookup, so run terminal WebSocket connections resolve correctly
- Replace Shell/Run tab switcher with horizontal split layout showing both
  terminals side-by-side when a run process is active
- Remove unused terminalTab state variable
- Replace assertion for removed "Shell" tab button with check for
  two terminal input textboxes (Shell + Run side by side)
@hmans hmans merged commit e4553a8 into main Mar 18, 2026
1 check passed
@hmans hmans deleted the beans/zippy-baboon-st03 branch March 18, 2026 10:30
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