Skip to content

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

feat(settings): add Display → Hide Thinking Blocks (default on)

Louis Beaumont7317f82d79d5
diff --git a/apps/screenpipe-app-tauri/components/settings/display-section.tsx b/apps/screenpipe-app-tauri/components/settings/display-section.tsx
index a86c4c19b..2120c55ed 100644
--- a/apps/screenpipe-app-tauri/components/settings/display-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/display-section.tsx
@@ -160,6 +160,30 @@ export function DisplaySection() {
</CardContent>
</Card>
+ <Card className="border-border bg-card">
+ <CardContent className="px-3 py-2.5">
+ <div className="flex items-center justify-between">
+ <div className="flex items-center space-x-2.5">
+ <MessageSquare className="h-4 w-4 text-muted-foreground shrink-0" />
+ <div>
+ <h3 className="text-sm font-medium text-foreground flex items-center gap-1.5">
+ Hide Thinking Blocks
+ <HelpTooltip text="Don't render the collapsible model-reasoning blocks in chat. The model still emits them; this just hides them from the transcript." />
+ </h3>
+ <p className="text-xs text-muted-foreground">Hide model reasoning in chat transcript</p>
+ </div>
+ </div>
+ <Switch
+ checked={settings?.hideThinkingBlocks ?? true}
+ onCheckedChange={(checked) =>
+ handleSettingsChange({ hideThinkingBlocks: checked })
+ }
+ className="ml-4"
+ />
+ </div>
+ </CardContent>
+ </Card>
+
<Card className="border-border bg-card">
<CardContent className="px-3 py-2.5">
<div className="flex items-center justify-between">
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index 372c5a879..5cd0b3c69 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -1013,6 +1013,8 @@ function ToolCallGroup({ toolCalls, defaultExpanded = false }: { toolCalls: Tool
// Renders message content with interleaved text and tool call blocks
function MessageContent({ message, onImageClick, onRetry }: { message: Message; onImageClick?: (images: string[], index: number) => void; onRetry?: (prompt: string) => void }) {
const isUser = message.role === "user";
+ const { settings } = useSettings();
+ const hideThinkingBlocks = settings?.hideThinkingBlocks ?? true;
// Retry CTA — shown at the bottom of error messages that have a retryPrompt
const retryCta = !isUser && message.retryPrompt ? (
@@ -1047,11 +1049,12 @@ function MessageContent({ message, onImageClick, onRetry }: { message: Message;
return <MarkdownBlock key={`text-${group.key}`} text={group.text} isUser={isUser} />;
}
if (group.type === "thinking") {
- // Always start collapsed. The "thought for Xs" pill is enough
- // signal that the assistant did chain-of-thought work — auto-
- // expanding it (the c092166e0 behavior) drew the eye to the
- // raw reasoning text instead of the actual response and felt
- // noisy on every message. Click to expand if you want detail.
+ // Settings → Display → Hide Thinking Blocks (default true). Even
+ // when shown the block starts collapsed: the "thought for Xs"
+ // pill is enough signal that the assistant did chain-of-thought
+ // work — auto-expanding (the c092166e0 behavior) drew the eye
+ // to raw reasoning instead of the response.
+ if (hideThinkingBlocks) return null;
return <ThinkingBlock key={`thinking-${group.key}`} text={group.text} isThinking={group.isThinking} durationMs={group.durationMs} />;
}
if (group.type === "tool-group") {
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
index 32c250687..c2696ddbd 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-settings.tsx
@@ -237,6 +237,8 @@ export type Settings = SettingsStore & {
localRetentionMode?: "media" | "all";
/** Apply macOS vibrancy effect to sidebar for a translucent glass look */
translucentSidebar?: boolean;
+ /** Hide model "thinking" reasoning blocks in chat (default: true) */
+ hideThinkingBlocks?: boolean;
/** Notification preferences — which notification sources are enabled */
notificationPrefs?: {
captureStalls: boolean;
diff --git a/apps/screenpipe-app-tauri/lib/utils/tauri.ts b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
index 460389d66..6e0d00097 100644
--- a/apps/screenpipe-app-tauri/lib/utils/tauri.ts
+++ b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
@@ -1750,7 +1750,13 @@ showRestartNotifications?: boolean;
/**
* When true, apply macOS vibrancy effect to the sidebar for a translucent look.
*/
-translucentSidebar?: boolean;
+translucentSidebar?: boolean;
+/**
+ * When true (default), hide model "thinking" reasoning blocks in the chat
+ * transcript. The model still emits them server-side; we just don't
+ * render the collapsible block in the UI.
+ */
+hideThinkingBlocks?: boolean;
/**
* UI theme: "light", "dark", or "system".
*/
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/store.rs b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
index c55ccb70b..9731eb2c0 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/store.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
@@ -501,6 +501,12 @@ pub struct SettingsStore {
#[serde(rename = "translucentSidebar", default)]
pub translucent_sidebar: bool,
+ /// When true (default), hide model "thinking" reasoning blocks in the chat
+ /// transcript. The model still emits them server-side; we just don't
+ /// render the collapsible block in the UI.
+ #[serde(rename = "hideThinkingBlocks", default = "default_true")]
+ pub hide_thinking_blocks: bool,
+
/// UI theme: "light", "dark", or "system".
#[serde(rename = "uiTheme", default = "default_ui_theme")]
pub ui_theme: String,
@@ -818,6 +824,7 @@ Rules:
translucent_sidebar: true,
#[cfg(not(target_os = "macos"))]
translucent_sidebar: false,
+ hide_thinking_blocks: true,
ui_theme: "system".to_string(),
extra: std::collections::HashMap::new(),
}