feat(codex): preview generated images in chat (#630)

This commit is contained in:
MapleStoryIdle
2026-05-17 11:52:03 +08:00
committed by GitHub
parent 84ba7044a8
commit 86780e94d0
15 changed files with 429 additions and 5 deletions
+6
View File
@@ -20,6 +20,7 @@ import {
type RpcCodexModel,
type RpcCommandResponse,
type RpcDeleteUploadResponse,
type RpcGeneratedImageResponse,
type RpcListDirectoryResponse,
type RpcListCodexModelsResponse,
type RpcListOpencodeModelsResponse,
@@ -37,6 +38,7 @@ export type {
RpcCodexModel,
RpcCommandResponse,
RpcDeleteUploadResponse,
RpcGeneratedImageResponse,
RpcListDirectoryResponse,
RpcListCodexModelsResponse,
RpcListOpencodeModelsResponse,
@@ -655,6 +657,10 @@ export class SyncEngine {
return await this.rpcGateway.readSessionFile(sessionId, path)
}
async readGeneratedImage(sessionId: string, imageId: string): Promise<RpcGeneratedImageResponse> {
return await this.rpcGateway.readGeneratedImage(sessionId, imageId)
}
async listDirectory(sessionId: string, path: string): Promise<RpcListDirectoryResponse> {
return await this.rpcGateway.listDirectory(sessionId, path)
}