mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +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',
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user