tart-guest-agent/internal/command
Daniel Gräfe 6bceea7928 Lazy clipboard init and backoff when SPICE not connected
When the SPICE clipboard channel is not available (e.g., running
headless or without clipboard sharing), the vdagent would previously
retry every 1 second, initializing the clipboard library each time.
This caused unnecessary CPU usage.

Changes:
- Defer clipboard.Init() until first successful SPICE message
- Add ErrSPICENotConnected error type to distinguish "never connected"
  from "connection lost"
- Use 1-minute backoff when SPICE is not available, vs 1-second for
  transient failures

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 10:33:34 +01:00
..
root.go Lazy clipboard init and backoff when SPICE not connected 2026-01-23 10:33:34 +01:00