YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(chat): hide history button in overlay, show only when embedded
Louis Beaumont5bca9654ef97
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsxindex a4cb389e5..c37e57fdf 100644--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx@@ -2958,22 +2958,24 @@ export function StandaloneChat({ className }: { className?: string } = {}) {{!isMac && !className && (<div className="absolute top-0 left-0 w-8 h-8 border-l-2 border-t-2 border-foreground/10 rounded-tl-lg" />)}- <Button- variant={showHistory ? "secondary" : "ghost"}- size="icon"- onMouseDown={(e) => e.stopPropagation()}- onClick={async (e) => {- e.stopPropagation();- if (!showHistory) {- await reloadStore();- }- setShowHistory(!showHistory);- }}- className="relative z-10 h-7 w-7"- title="Chat history"- >- <History size={14} />- </Button>+ {isEmbedded && (+ <Button+ variant={showHistory ? "secondary" : "ghost"}+ size="icon"+ onMouseDown={(e) => e.stopPropagation()}+ onClick={async (e) => {+ e.stopPropagation();+ if (!showHistory) {+ await reloadStore();+ }+ setShowHistory(!showHistory);+ }}+ className="relative z-10 h-7 w-7"+ title="Chat history"+ >+ <History size={14} />+ </Button>+ )}<div className="relative z-10 p-1.5 rounded-lg bg-foreground/5 border border-border/50"><PipeAIIcon size={18} animated={false} className="text-foreground" /></div>