diff --git a/web/src/services/orchestrator.js b/web/src/services/orchestrator.js index 72031af..2c9c404 100644 --- a/web/src/services/orchestrator.js +++ b/web/src/services/orchestrator.js @@ -6,3 +6,21 @@ export function runOrchestrator(payload) { body: JSON.stringify(payload) }) } + +export function fetchLatestConversation(userId) { + const params = new URLSearchParams({ + user_id: String(userId || '').trim() + }) + + return apiRequest(`/orchestrator/conversations/latest?${params.toString()}`) +} + +export function clearUserConversations(userId) { + const params = new URLSearchParams({ + user_id: String(userId || '').trim() + }) + + return apiRequest(`/orchestrator/conversations?${params.toString()}`, { + method: 'DELETE' + }) +} diff --git a/web/src/views/AppShellRouteView.vue b/web/src/views/AppShellRouteView.vue index 887d2d6..125c98b 100644 --- a/web/src/views/AppShellRouteView.vue +++ b/web/src/views/AppShellRouteView.vue @@ -125,6 +125,7 @@ :key="smartEntrySessionId" :initial-prompt="smartEntryContext.prompt" :initial-files="smartEntryContext.files" + :initial-conversation="smartEntryContext.conversation" :entry-source="smartEntryContext.source" :request-context="smartEntryContext.request" @close="closeSmartEntry" diff --git a/web/src/views/SettingsView.vue b/web/src/views/SettingsView.vue index 8c0e026..c82aa2e 100644 --- a/web/src/views/SettingsView.vue +++ b/web/src/views/SettingsView.vue @@ -181,10 +181,71 @@ - - - + + + +