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.
Files changed (2) hide show
  1. package/dist/session.js +1 -3
  2. 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 = 5000; // 5 seconds — enough for CC to finish and write results
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aegis-bridge",
3
- "version": "2.12.3",
3
+ "version": "2.13.1",
4
4
  "type": "module",
5
5
  "description": "Orchestrate Claude Code sessions via API. Create, brief, monitor, refine, ship.",
6
6
  "main": "dist/server.js",