@staff0rd/assist 0.419.0 → 0.419.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/sessions/web/bundle.js +246 -246
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.419.
|
|
9
|
+
version: "0.419.2",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -25952,6 +25952,7 @@ function handlePtyExit(session, exitCode, onStatusChange) {
|
|
|
25952
25952
|
resume();
|
|
25953
25953
|
return;
|
|
25954
25954
|
}
|
|
25955
|
+
session.pty = null;
|
|
25955
25956
|
if (handleStoppedExit(session, exitCode, onStatusChange)) return;
|
|
25956
25957
|
refreshActivity(session);
|
|
25957
25958
|
if (handleFailedResume(session, exitCode, onStatusChange)) return;
|
|
@@ -26068,7 +26069,8 @@ function restartSession(session, clients, onStatusChange) {
|
|
|
26068
26069
|
daemonLog(`session ${session.id} restarted (${via}): ${session.name}`);
|
|
26069
26070
|
};
|
|
26070
26071
|
const pty2 = session.pty;
|
|
26071
|
-
|
|
26072
|
+
const alive = session.status === "running" || session.status === "waiting";
|
|
26073
|
+
if (pty2 && alive) {
|
|
26072
26074
|
daemonLog(
|
|
26073
26075
|
`session ${session.id} restart requested: killing running process, will resume on exit`
|
|
26074
26076
|
);
|