fix: 🐛 update isRunning to check exitCode (#3148)

* fix: 🐛 update isRunning to check exitCode

* chore: 🤖 fix logic check for isRunning

* refactor: 💡 add signalCode check for isRunning
This commit is contained in:
Cameron Perera authored and GitHub committed 2026-02-13 17:13:59 -06:00
1 parent 46ededd676
commit ea1e7a99de
1 file changed
+5 -1
@@ -49,7 +49,11 @@ class Session {
* @return {boolean} * @return {boolean}
*/ */
get isRunning() { get isRunning() {
return this.#process && !this.#process.killed; return (
this.#process &&
this.#process.exitCode === null &&
this.#process.signalCode === null
);
} }
/** /**