1
0
forked from wrenn/wrenn

fix: improve error feedback for terminal disconnects and host unavailability

Show "[session disconnected]" in terminal when PTY websocket closes cleanly.
Map scheduler and agent unavailability errors to 503 with user-friendly
message instead of leaking internal details.
This commit is contained in:
2026-05-03 04:47:10 +06:00
parent 31456fd169
commit ef5f223863
2 changed files with 6 additions and 0 deletions

View File

@ -332,6 +332,7 @@
if (s.state === 'connected') {
updateSession(id, { state: 'disconnected' });
int.term.write('\r\n\x1b[38;2;107;104;98m[session disconnected]\x1b[0m\r\n');
}
};