mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-05 09:33:07 +00:00
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:
@@ -72,7 +72,7 @@ const CODEX_EVENT_TYPES = {
|
|||||||
itemCompleted: 'item.completed',
|
itemCompleted: 'item.completed',
|
||||||
itemStarted: 'item.started',
|
itemStarted: 'item.started',
|
||||||
itemUpdated: 'item.updated',
|
itemUpdated: 'item.updated',
|
||||||
threadCompleted: 'thread.completed',
|
turnCompleted: 'turn.completed',
|
||||||
error: 'error',
|
error: 'error',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@@ -817,7 +817,7 @@ export class CodexProvider extends BaseProvider {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (eventType === CODEX_EVENT_TYPES.threadCompleted) {
|
if (eventType === CODEX_EVENT_TYPES.turnCompleted) {
|
||||||
const resultText = extractText(event.result) || undefined;
|
const resultText = extractText(event.result) || undefined;
|
||||||
yield { type: 'result', subtype: 'success', result: resultText };
|
yield { type: 'result', subtype: 'success', result: resultText };
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user