- Add robust error handling and recovery mechanisms to IPC server/client
- Implement graceful shutdown handling for IPC connections
- Add connection timeouts and retry logic for headless environments
- Enhance logging for debugging in virtual display scenarios
- Handle SIGTERM, SIGINT, and SIGHUP signals properly
- Add socket cleanup and directory creation for Docker containers
- Implement reconnection logic with exponential backoff
This fix addresses the issue where VSCode gets killed (signal 9) when
running RooCode in headless Docker environments with xvfb during IPC
operations. The improvements make IPC communication more resilient to
the challenges of virtual display environments.
Fixes#7814