feat: update codex live runtime and restart flow
This commit is contained in:
@@ -1003,6 +1003,19 @@ export async function removeChatRuntimeJob(requestId: string) {
|
||||
return response.removed;
|
||||
}
|
||||
|
||||
export async function rollbackChatRuntimeJob(requestId: string, sessionId?: string | null) {
|
||||
const response = await requestChatApi<{ ok: boolean; rolledBack: boolean }>(
|
||||
`/runtime/jobs/${encodeURIComponent(requestId)}/rollback`,
|
||||
{
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
sessionId: sessionId?.trim() || undefined,
|
||||
}),
|
||||
},
|
||||
);
|
||||
return response.rolledBack;
|
||||
}
|
||||
|
||||
export async function uploadChatComposerFile(sessionId: string, file: File) {
|
||||
const normalizedSessionId = sessionId.trim();
|
||||
|
||||
@@ -1028,6 +1041,7 @@ export async function createChatConversationRoom(args: {
|
||||
sessionId: string;
|
||||
title?: string;
|
||||
chatTypeId?: string | null;
|
||||
lastChatTypeId?: string | null;
|
||||
contextLabel?: string;
|
||||
contextDescription?: string;
|
||||
notifyOffline?: boolean;
|
||||
@@ -1040,6 +1054,7 @@ export async function createChatConversationRoom(args: {
|
||||
sessionId: args.sessionId,
|
||||
title: args.title ?? '새 대화',
|
||||
chatTypeId: args.chatTypeId ?? null,
|
||||
lastChatTypeId: args.lastChatTypeId ?? args.chatTypeId ?? null,
|
||||
contextLabel: args.contextLabel ?? null,
|
||||
contextDescription: args.contextDescription ?? null,
|
||||
notifyOffline,
|
||||
@@ -1076,6 +1091,7 @@ export async function updateChatConversationRoom(
|
||||
payload: {
|
||||
title?: string;
|
||||
chatTypeId?: string | null;
|
||||
lastChatTypeId?: string | null;
|
||||
contextLabel?: string | null;
|
||||
contextDescription?: string | null;
|
||||
notifyOffline?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user