mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-16 23:01:06 +02:00
feat(chat): add showMessageTimestamps preference atom (localStorage, off by default)
This commit is contained in:
parent
a44c67da97
commit
f0cd20bcbd
1 changed files with 11 additions and 0 deletions
11
surfsense_web/atoms/chat/show-timestamps.atom.ts
Normal file
11
surfsense_web/atoms/chat/show-timestamps.atom.ts
Normal file
|
|
@ -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<boolean>("chat-show-timestamps:v1", false);
|
||||
Loading…
Add table
Add a link
Reference in a new issue