fix: update event type in CodexProvider from threadCompleted to turnCompleted

- Changed the event type from 'thread.completed' to 'turn.completed' in the CODEX_EVENT_TYPES constant and its usage within the CodexProvider class.
- This update aligns the event handling with the intended functionality, ensuring correct event processing.
This commit is contained in:
DhanushSantosh
2026-01-08 01:54:02 +05:30
parent 821827f850
commit ff3af937da

View File

@@ -72,7 +72,7 @@ const CODEX_EVENT_TYPES = {
itemCompleted: 'item.completed',
itemStarted: 'item.started',
itemUpdated: 'item.updated',
threadCompleted: 'thread.completed',
turnCompleted: 'turn.completed',
error: 'error',
} as const;
@@ -817,7 +817,7 @@ export class CodexProvider extends BaseProvider {
continue;
}
if (eventType === CODEX_EVENT_TYPES.threadCompleted) {
if (eventType === CODEX_EVENT_TYPES.turnCompleted) {
const resultText = extractText(event.result) || undefined;
yield { type: 'result', subtype: 'success', result: resultText };
continue;