Embedded Shell Terminal
Contributor Guide
- Target Component:
rumour/ui/src/components/views/TerminalPanel.tsx,BottomPanel.tsx - Backing Service: Tauri PTY / xterm.js integration
- Status: Skeleton / Ready for Contribution
- Assigned Contributor: Open for assignment
Overview
Rumour UI features a built-in terminal emulator (`Ctrl + `` to toggle) powered by xterm.js. The terminal executes directly within the active workspace directory, allowing developers to execute shell commands, Git commands, or Rumour CLI operations without leaving the desktop application.
Capabilities & Usage
1. Workspace Directory Context
- Automatically launches in the root path of the currently open workspace (
workspacePath). - Preserves local environment variables and shell configuration (
bash,zsh,fish,PowerShell).
2. Rumour CLI Interoperability
- Run
rumour run .to test the exact same workspace through the CLI engine. - Execute CLI utilities like
rumour bench,rumour vault,rumour mock, orrumour export. - Real-time comparison between UI execution and CLI test results.
3. Terminal Controls
- Toggle Terminal (`Ctrl + ``): Instantly show or collapse the terminal drawer.
- Clear Terminal (
Ctrl + L): Clear terminal scrollback. - Resize Handle: Drag the horizontal divider to adjust terminal height.
Contributor Checklist
- Capture screenshot of embedded terminal running
rumour runin a workspace. - Document keyboard shortcut behaviors across platforms (macOS, Windows, Linux).
- Detail shell detection logic and configuration options in
rumour.settings.json.