The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
import { atom } from 'nanostores'
import { persistStore } from '@/lib/persist-store'
import { persistBoolean, storedBoolean } from '@/lib/storage'
import { recordFeatureToggle } from './desktop-metrics'
const HIDE_THREAD_TIMELINE_STORAGE_KEY = 'hermes.desktop.hideThreadTimeline'
/** Desktop-local appearance preference, shared by all threads in this window. */
export const $hideThreadTimeline = atom(storedBoolean(HIDE_THREAD_TIMELINE_STORAGE_KEY, false))
persistStore(
$hideThreadTimeline,
(value, options) => persistBoolean(HIDE_THREAD_TIMELINE_STORAGE_KEY, value, options),
false
)
export function setHideThreadTimeline(value: boolean) {
recordFeatureToggle('thread_timeline', !$hideThreadTimeline.get(), !value)
$hideThreadTimeline.set(value)
}