aegis-bridge 2.12.3 → 2.13.1
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/session.js +1 -3
- package/package.json +1 -1
package/dist/session.js
CHANGED
|
@@ -754,8 +754,6 @@ export class SessionManager {
|
|
|
754
754
|
return false;
|
|
755
755
|
try {
|
|
756
756
|
// Issue #390: Fast crash detection via stored CC PID
|
|
757
|
-
if (session.ccPid && !this.tmux.isPidAlive(session.ccPid))
|
|
758
|
-
return false;
|
|
759
757
|
const windowHealth = await this.tmux.getWindowHealth(session.windowId);
|
|
760
758
|
if (!windowHealth.windowExists)
|
|
761
759
|
return false;
|
|
@@ -765,7 +763,7 @@ export class SessionManager {
|
|
|
765
763
|
// This gives CC time to finish writing results before Aegis closes the session.
|
|
766
764
|
if (windowHealth.paneDead && session.status !== 'idle') {
|
|
767
765
|
const msSinceActivity = Date.now() - (session.lastActivity || session.createdAt);
|
|
768
|
-
const GRACE_PERIOD_MS =
|
|
766
|
+
const GRACE_PERIOD_MS = 15000; // 15 seconds — enough for CC to finish and write results
|
|
769
767
|
if (msSinceActivity < GRACE_PERIOD_MS) {
|
|
770
768
|
// Pane just died right after activity — likely CC is finishing up.
|
|
771
769
|
// Don't mark dead yet — give it 5 seconds to complete.
|