fix: address Oracle + Cubic review feedback for background-agent refactoring

- Revert getMessageDir to original join(MESSAGE_STORAGE, sessionID) behavior
- Fix dead subagentSessions.delete by capturing previousSessionID before tryFallbackRetry
- Add .unref() to process cleanup setTimeout to prevent 6s hang on Ctrl-C
- Add missing isUnstableAgent to fallback retry input mapping
- Fix process-cleanup tests to use exit listener instead of SIGINT at index 0
- Swap test filenames in compaction-aware-message-resolver to exercise skip logic correctly
This commit is contained in:
YeonGyu-Kim
2026-02-22 12:14:26 +09:00
parent ed43cd4c85
commit d1e5bd63c1
5 changed files with 21 additions and 12 deletions
@@ -11,7 +11,7 @@ function registerProcessSignal(
handler()
if (exitAfter) {
process.exitCode = 0
setTimeout(() => process.exit(), 6000)
setTimeout(() => process.exit(), 6000).unref()
}
}
process.on(signal, listener)