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
+2 -2
View File
@@ -8,7 +8,7 @@ import type { Message } from '@/lib/api';
const MAX_RECORDING_SECONDS = 60;
export default function MessageInput() {
const { currentId, setCurrentId, addMessage, setIsLoading, isLoading, setConversations } = useStore();
const { currentId, setCurrentId, addMessage, setIsLoading, isLoading, setConversations, settings } = useStore();
const [text, setText] = useState('');
const [recording, setRecording] = useState(false);
const [transcribing, setTranscribing] = useState(false);
@@ -55,7 +55,7 @@ export default function MessageInput() {
setIsLoading(true);
try {
const data = await api.sendMessage(message, convId);
const data = await api.sendMessage(message, convId, settings.share_time ?? true);
setCurrentId(data.conversation_id);
addMessage({
role: 'assistant',