feat(chat): persistance bornee du brouillon custom chat par projet/layout (#182)

This commit is contained in:
2026-08-11 16:24:20 +02:00
parent 25ad44a3d9
commit 94b4ce7e5f
23 changed files with 1552 additions and 70 deletions

View File

@ -41,6 +41,8 @@ import type {
} from "@/domain";
import type {
AgentGateway,
ChatDraftScope,
ChatDraftSnapshot,
ConversationDetails,
CreateAgentInput,
CreateTicketInput,
@ -255,6 +257,18 @@ export class HttpAgentGateway implements AgentGateway {
});
}
readChatDraft(scope: ChatDraftScope): Promise<ChatDraftSnapshot> {
return this.http.invoke<ChatDraftSnapshot>("read_chat_draft", { request: scope });
}
async saveChatDraft(scope: ChatDraftScope, text: string): Promise<void> {
await this.http.invoke("save_chat_draft", { request: { ...scope, text } });
}
async clearChatDraft(scope: ChatDraftScope): Promise<void> {
await this.http.invoke("clear_chat_draft", { request: scope });
}
async launchAgent(
projectId: string,
agentId: string,