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

View File

@@ -117,6 +117,7 @@ export function tryFallbackRetry(args: {
model: task.model,
fallbackChain: task.fallbackChain,
category: task.category,
isUnstableAgent: task.isUnstableAgent,
}
queue.push({ task, input: retryInput })
queuesByKey.set(key, queue)