fix(codex): restore transcript tool calls

This commit is contained in:
weishu
2026-07-22 09:02:06 +08:00
parent af962fc61f
commit 3dd425b15c
4 changed files with 465 additions and 27 deletions
+4 -4
View File
@@ -151,12 +151,12 @@ export async function codexLocalLauncher(session: CodexSession): Promise<'switch
} else if (converted?.userActivity) {
session.notifyUserActivity();
}
if (converted?.message) {
if (converted.message.type === 'proposed_plan') {
for (const message of converted?.messages ?? []) {
if (message.type === 'proposed_plan') {
// Codex may complete the Plan item before emitting its final text preface.
pendingPlansByTurnId.set(converted.message.turnId, converted.message);
pendingPlansByTurnId.set(message.turnId, message);
} else {
session.sendAgentMessage(converted.message);
session.sendAgentMessage(message);
}
}
if (converted?.finishedTurnId) {