fix: distinguish transient errors from missing sessions in crash detection

This commit is contained in:
YeonGyu-Kim
2026-03-31 17:04:07 -07:00
parent 9f2c4500e8
commit 3cce7406ea
6 changed files with 167 additions and 20 deletions
@@ -3556,6 +3556,10 @@ describe("BackgroundManager.checkAndInterruptStaleTasks", () => {
session: {
prompt: async () => ({}),
promptAsync: async () => ({}),
get: async () => ({
error: { message: "Session not found", status: 404 },
data: undefined,
}),
abort: async () => ({}),
},
}