fix: get codex sessions in windows; improve message counting logic; fix session navigation in ChatInterface

This commit is contained in:
Haileyesus Dessie
2026-01-05 16:35:20 +03:00
parent ba70ad8e81
commit 9efe433d99
3 changed files with 17 additions and 11 deletions

View File

@@ -2980,11 +2980,6 @@ function ChatInterface({ selectedProject, selectedSession, ws, sendMessage, mess
if (onReplaceTemporarySession) {
onReplaceTemporarySession(latestMessage.sessionId);
}
// Navigate to the new session to ensure URL and selectedSession are updated
if (onNavigateToSession) {
onNavigateToSession(latestMessage.sessionId);
}
}
break;
@@ -3538,8 +3533,13 @@ function ChatInterface({ selectedProject, selectedSession, ws, sendMessage, mess
}
const codexPendingSessionId = sessionStorage.getItem('pendingSessionId');
const codexActualSessionId = latestMessage.actualSessionId || codexPendingSessionId;
if (codexPendingSessionId && !currentSessionId) {
setCurrentSessionId(codexPendingSessionId);
setCurrentSessionId(codexActualSessionId);
setIsSystemSessionChange(true);
if (onNavigateToSession) {
onNavigateToSession(codexActualSessionId);
}
sessionStorage.removeItem('pendingSessionId');
console.log('Codex session complete, ID set to:', codexPendingSessionId);
}