From f0cd20bcbd3afda0cb024bb067cd630315e15cb7 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Mon, 13 Jul 2026 23:12:06 +0200 Subject: [PATCH] feat(chat): add showMessageTimestamps preference atom (localStorage, off by default) --- surfsense_web/atoms/chat/show-timestamps.atom.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 surfsense_web/atoms/chat/show-timestamps.atom.ts diff --git a/surfsense_web/atoms/chat/show-timestamps.atom.ts b/surfsense_web/atoms/chat/show-timestamps.atom.ts new file mode 100644 index 000000000..434f065ff --- /dev/null +++ b/surfsense_web/atoms/chat/show-timestamps.atom.ts @@ -0,0 +1,11 @@ +import { atomWithStorage } from "jotai/utils"; + +/** + * Per-device preference: show a timestamp under each chat message. + * + * Off by default to match streaming-AI chat convention (ChatGPT/Claude keep + * the message stream clean and put time in the conversation list). Persisted + * in localStorage, so it does not sync across devices — acceptable for a + * cosmetic display toggle. + */ +export const showMessageTimestampsAtom = atomWithStorage("chat-show-timestamps:v1", false);