Skip to content

Commit 190619f

Browse files
committed
remove placeholder text, more complete term reset
1 parent 86b2203 commit 190619f

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

frontend/app/block/durable-session-flyover.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,19 +199,17 @@ function DurableEndedContent({ doneReason, startupError, viewModel, onClose }: D
199199
};
200200

201201
let titleText = "Durable Session (Ended)";
202-
let descriptionText = "[Placeholder text - will be updated]";
203-
let showRestartButton = false;
202+
let descriptionText = "The durable session has ended. This block is still configured for durable sessions.";
203+
let showRestartButton = true;
204204

205205
if (doneReason === "terminated") {
206206
titleText = "Durable Session (Ended, Exited)";
207207
descriptionText =
208208
"The shell was terminated and is no longer running. This block is still configured for durable sessions.";
209-
showRestartButton = true;
210209
} else if (doneReason === "gone") {
211210
titleText = "Durable Session (Ended, Lost)";
212211
descriptionText =
213212
"The session was lost or not found on the remote server. This may have occurred due to a system reboot or the session being manually terminated.";
214-
showRestartButton = true;
215213
} else if (doneReason === "startuperror") {
216214
titleText = "Durable Session (Failed to Start)";
217215
descriptionText = "The durable session failed to start.";

pkg/util/shellutil/shellutil.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,11 +623,20 @@ func GetTerminalResetSeq() string {
623623
resetSeq := "\x1b[0m" // reset attributes
624624
resetSeq += "\x1b[?25h" // show cursor
625625
resetSeq += "\x1b[?1l" // normal cursor keys
626+
resetSeq += "\x1b[?6l" // origin mode off (DECOM)
626627
resetSeq += "\x1b[?7h" // wraparound on
627-
resetSeq += "\x1b[?1000l" // disable mouse tracking
628-
resetSeq += "\x1b[?1007l" // disable alternate scroll mode
629-
resetSeq += "\x1b[?1004l" // disable focus reporting (FocusIn/FocusOut)
628+
resetSeq += "\x1b[?45l" // reverse wraparound off
629+
resetSeq += "\x1b[?66l" // application keypad off (DECNKM)
630+
resetSeq += "\x1b[4l" // insert mode off (IRM)
631+
resetSeq += "\x1b[?9l" // X10 mouse tracking off
632+
resetSeq += "\x1b[?1000l" // disable Send Mouse X & Y on button press
633+
resetSeq += "\x1b[?1002l" // disable Use Cell Motion Mouse Tracking
634+
resetSeq += "\x1b[?1003l" // disable Use All Motion Mouse Tracking
635+
resetSeq += "\x1b[?1004l" // disable Send FocusIn/FocusOut events
636+
resetSeq += "\x1b[?1006l" // disable Enable SGR Mouse Mode
637+
resetSeq += "\x1b[?1007l" // disable Enable Alternate Scroll Mode
630638
resetSeq += "\x1b[?2004l" // disable bracketed paste mode
639+
resetSeq += "\x1b[?2026l" // synchronized output off
631640
resetSeq += FormatOSC(16162, "R") // disable alternate screen mode
632641
return resetSeq
633642
}

0 commit comments

Comments
 (0)