Use hostConfig.id instead of entire hostConfig object in useEffect dependency array
Prevents unnecessary terminal reconnections when host properties are updated
Root cause: When any host property is updated, updateHostConfig() creates a new object reference. The Terminal component's useEffect depended on the entire hostConfig object, so any reference change triggered reconnection logic.
Fix: Only depend on hostConfig.id since we only need to reconnect when switching to a different host, not when properties of the same host change.
Before: Edit any host → all open terminals disconnect and reconnect After: Edit any host → terminals stay connected
## Summary
- Use `hostConfig.id` instead of entire `hostConfig` object in useEffect dependency array
- Prevents unnecessary terminal reconnections when host properties are updated
**Root cause**: When any host property is updated, `updateHostConfig()` creates a new object reference. The Terminal component's useEffect depended on the entire `hostConfig` object, so any reference change triggered reconnection logic.
**Fix**: Only depend on `hostConfig.id` since we only need to reconnect when switching to a different host, not when properties of the same host change.
**Before**: Edit any host → all open terminals disconnect and reconnect
**After**: Edit any host → terminals stay connected
Related to #401
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
hostConfig.idinstead of entirehostConfigobject in useEffect dependency arrayRoot cause: When any host property is updated,
updateHostConfig()creates a new object reference. The Terminal component's useEffect depended on the entirehostConfigobject, so any reference change triggered reconnection logic.Fix: Only depend on
hostConfig.idsince we only need to reconnect when switching to a different host, not when properties of the same host change.Before: Edit any host → all open terminals disconnect and reconnect
After: Edit any host → terminals stay connected
Related to #401