feat: improve local terminal workflows

This commit is contained in:
Andy Dixon
2026-07-22 11:57:52 +01:00
parent 4fc3b19441
commit 5d5993d9c4
20 changed files with 967 additions and 160 deletions
+6
View File
@@ -430,6 +430,12 @@ func (s *Service) ConnectLocal() (models.SessionInfo, error) {
return *info, nil
}
// RestartLocalSession starts a new shell in an exited local terminal while
// preserving its tab, scrollback, terminal geometry, and best-effort cwd.
func (s *Service) RestartLocalSession(sessionID string, cols int, rows int) error {
return s.sessions.RestartLocal(sessionID, cols, rows)
}
// DisconnectSession closes a session by ID.
func (s *Service) DisconnectSession(sessionID string) error {
return s.sessions.Disconnect(sessionID)