add share_time toggle — user-controlled time context, opt-out in settings

This commit is contained in:
2026-04-29 17:16:36 +00:00
parent 92565dce5c
commit ea77c434ce
4 changed files with 33 additions and 4 deletions
+11 -2
View File
@@ -25,8 +25,15 @@ export const api = {
request<{ deleted: string }>(`/conversations/${id}`, { method: 'DELETE' }),
clearAllConversations: () =>
request<{ cleared: boolean }>('/conversations', { method: 'DELETE' }),
sendMessage: (message: string, conversation_id: string) =>
request<ChatResponse>('/chat', { method: 'POST', body: JSON.stringify({ message, conversation_id }) }),
sendMessage: (message: string, conversation_id: string, share_time = true) =>
request<ChatResponse>('/chat', {
method: 'POST',
body: JSON.stringify({
message,
conversation_id,
...(share_time ? { client_time: new Date().toISOString() } : {}),
}),
}),
getMemory: () => request<{ content: string }>('/memory'),
updateMemory: (content: string) =>
request<{ saved: boolean }>('/memory', { method: 'POST', body: JSON.stringify({ content }) }),
@@ -73,6 +80,7 @@ export interface Settings {
font_size: 'small' | 'medium' | 'large';
web_search: boolean;
show_sources: boolean;
share_time: boolean;
dream_hour_utc: number;
dream_minute_utc: number;
dream_mode: string;
@@ -106,6 +114,7 @@ export interface DreamerStatus {
export interface Status {
aaron_ai: string;
watcher: string;
watcher_ingestion?: { status: string; message: string; file_count: number };
chunk_count: number;
file_count: number;
last_indexed: string;
+1
View File
@@ -47,6 +47,7 @@ export const useStore = create<AppState>()(
font_size: 'medium',
web_search: true,
show_sources: true,
share_time: true,
dream_hour_utc: 8,
dream_minute_utc: 0,
dream_mode: 'nrem',