Shell App
Troubleshooting
Troubleshooting
This guide covers common issues you may encounter with the Shell App and how to resolve them.
Connection Issues
Issue: "Disconnected" Status Won't Connect
Symptoms:
- Connection status shows "Disconnected" (gray indicator)
- Clicking "Connect" doesn't establish connection
- Auto-reconnect keeps failing
Cause: The shell server may not be running or may be unreachable.
Solution:
Verify the shell server is running
# For development, start the shell server yarn dev:shell-server # Or check if it's running lsof -i :3001Check the server URL
- Go to Settings (
/shell/settings) - Verify the server URL is correct (default:
ws://localhost:3001) - For Electron, this is auto-detected
- Go to Settings (
Check network/firewall
- Ensure port 3001 is not blocked
- If using a remote server, verify network connectivity
Restart the app
- Refresh the page (web) or restart the Electron app
Issue: Connection Keeps Dropping
Symptoms:
- Terminal connects but disconnects frequently
- "Reconnecting..." appears repeatedly
- Commands sometimes don't execute
Cause: Network instability or server overload.
Solution:
- Check your network connection stability
- If on WiFi, try a wired connection
- Check server logs for errors:
yarn docker:logs # For Docker-based server - Reduce the number of concurrent sessions if many are open
Issue: "Error" Status (Red Indicator)
Symptoms:
- Connection status shows red "Error"
- Error message displayed
- Cannot create or connect to sessions
Cause: Server error, authentication issue, or configuration problem.
Solution:
- Check the error message displayed for specific details
- Verify authentication - ensure you're logged into FlowState
- Check server health:
# Test WebSocket connection wscat -c ws://localhost:3001 - Clear browser cache and reload
- Check browser console (F12) for detailed error logs
Session Issues
Issue: Session Not Appearing in List
Symptoms:
- Created a session but it doesn't show in sidebar
- Session list appears empty despite having sessions
Cause: Sync issue between shell server and RxDB, or session may be associated with different workspace.
Solution:
- Refresh the session list - disconnect and reconnect to the server
- Check workspace context - ensure you're viewing the correct workspace
- Verify RxDB sync:
- Open browser DevTools
- Check Network tab for RxDB replication requests
- Manually list sessions from server:
- The app should automatically list sessions on connect
- If not, the server may need restart
Issue: Cannot Reconnect to Existing Session
Symptoms:
- Clicking on a session in the list doesn't open terminal
- Session shows but terminal area is blank
- "Session not found" error
Cause: The shell process for that session may have exited on the server.
Solution:
- Delete and recreate - if the session process exited, delete the old session and create a new one
- Check session status - closed sessions (process exited) can't be reconnected
- Verify server has the session:
- Sessions are tracked by the shell server
- Server restart clears active sessions
Issue: Session History Not Restored
Symptoms:
- Reconnected to session but previous output is gone
- Terminal starts fresh despite having history
Cause: History scrollback depends on server-side buffer retention.
Solution:
- Understand history limits - the shell server maintains a limited scrollback buffer
- Use terminal scrollback - scroll up in the terminal to see available history
- For persistent logs - redirect command output to files:
./script.sh | tee output.log
Terminal Issues
Issue: Terminal Display Corrupted
Symptoms:
- Characters appear in wrong positions
- Colors are wrong or missing
- Cursor position incorrect
Cause: Terminal dimension mismatch or encoding issues.
Solution:
- Reset terminal:
reset # or clear - Resize the terminal - drag the divider or resize the window
- Check TERM variable:
echo $TERM # Should be xterm-256color or similar
Issue: Special Characters Not Working
Symptoms:
- Backspace doesn't delete characters
- Arrow keys print escape sequences instead of navigating
- Tab completion doesn't work
Cause: Terminal type not properly set or input handling issue.
Solution:
- Set terminal type:
export TERM=xterm-256color - Check shell - some shells handle input differently:
echo $SHELL # Verify you're using bash/zsh - Try different browser - some browsers handle key events differently
Issue: Copy/Paste Not Working
Symptoms:
- Cannot paste text into terminal
- Cannot copy text from terminal output
Cause: Browser clipboard permissions or keyboard shortcut conflicts.
Solution:
- Use correct shortcuts:
- Copy:
Ctrl+Shift+C(Linux),Cmd+C(macOS), or right-click - Paste:
Ctrl+Shift+V(Linux),Cmd+V(macOS), or right-click
- Copy:
- Grant clipboard permissions when prompted by browser
- Right-click context menu - use the terminal's context menu if shortcuts fail
Performance Issues
Issue: Terminal Feels Slow/Laggy
Symptoms:
- Typing has noticeable delay
- Command output appears slowly
- Scrolling is choppy
Cause: Network latency, large output volume, or browser performance.
Solution:
- Check network latency to the shell server
- Reduce output volume:
# Instead of cat large-file.txt head -100 large-file.txt # Or use pagination less large-file.txt - Clear terminal buffer periodically (
Ctrl+KorCmd+K) - Close unused sessions to reduce memory usage
- Check browser performance:
- Close unnecessary tabs
- Disable browser extensions temporarily
Issue: High Memory Usage
Symptoms:
- Browser becomes sluggish
- System memory usage high when using Shell App
- Page eventually crashes
Cause: Too many sessions or excessive terminal output.
Solution:
- Close unused sessions - delete sessions you're not actively using
- Clear terminal output regularly
- Limit long-running commands that produce continuous output
- Restart the app periodically during heavy use
Getting Help
If you can't resolve your issue using this guide:
- Check the FAQ for additional answers
- Review Features to ensure you're using the app correctly
- Gather diagnostic information:
- Browser console logs (F12 > Console)
- Network requests (F12 > Network)
- Shell server logs
- Exact error messages
- Contact support with:
- Description of the issue
- Steps to reproduce
- Screenshots or recordings if applicable
- Browser and OS version
- FlowState version (check About page at
/shell/about)