Skip to content

fix(ui): improve terminal reset on instance switch and reconnect handling#22

Merged
linletian merged 4 commits intodevelopfrom
fix/refresh-prob-1
Mar 16, 2026
Merged

fix(ui): improve terminal reset on instance switch and reconnect handling#22
linletian merged 4 commits intodevelopfrom
fix/refresh-prob-1

Conversation

@linletian
Copy link
Copy Markdown
Owner

Summary

  • Improve terminal reset handling when switching between instances
  • Add proper reconnect handling for WebSocket connections
  • Update terminal UI state management

Test plan

  • Test instance switching preserves terminal state
  • Verify reconnect works after connection loss
  • Check terminal cleanup on instance stop

linletian and others added 4 commits March 14, 2026 16:59
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ling

- Use term.reset() instead of manual ESC sequences for more complete state cleanup
- Prevent refresh from reconnecting healthy TTY connections
- Add term.blur() to fix Copilot CLI cursor recovery after switch
- Delay focusTerminalIfPossible() to after resize for TUI reinitialization
- Filter ESC[?1007h (alternate scroll mode) to prevent wheel-to-arrow regression
Bring in v0.1.1 release documentation from main after ade3250.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@linletian linletian merged commit 7c37b1f into develop Mar 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant