mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-07 06:52:28 +00:00
feat: add support for user message events from Codex
Add sendUserMessage() method to ApiSessionClient and CodexSession to handle user_message events from Codex. Updates CodexConversionResult type and convertCodexEvent() to process user_message payloads, with test coverage.
This commit is contained in:
@@ -17,6 +17,9 @@ export async function codexLocalLauncher(session: CodexSession): Promise<'switch
|
||||
session.onSessionFound(converted.sessionId);
|
||||
scanner.onNewSession(converted.sessionId);
|
||||
}
|
||||
if (converted?.userMessage) {
|
||||
session.sendUserMessage(converted.userMessage);
|
||||
}
|
||||
if (converted?.message) {
|
||||
session.sendCodexMessage(converted.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user