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: custom headers input untyable — controlled input rejected partial JSON
Louis Beaumont459b30a7bb4b
diff --git a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsxindex 6c46d1cba..ba42dd9a8 100644--- a/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx+++ b/apps/screenpipe-app-tauri/components/settings/recording-settings.tsx@@ -1451,8 +1451,8 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. Scre<div className="space-y-1"><label className="text-xs text-muted-foreground">custom headers (JSON)</label><Input- value={settings.openaiCompatibleHeaders ? JSON.stringify(settings.openaiCompatibleHeaders) : ""}- onChange={(e) => {+ defaultValue={settings.openaiCompatibleHeaders ? JSON.stringify(settings.openaiCompatibleHeaders) : ""}+ onBlur={(e) => {const val = e.target.value.trim();if (!val) {handleSettingsChange({ openaiCompatibleHeaders: undefined }, true);@@ -1464,7 +1464,7 @@ Your screen is a pipe. Everything you see, hear, and type flows through it. ScrehandleSettingsChange({ openaiCompatibleHeaders: parsed }, true);}} catch {- // Don't update until valid JSON+ // Invalid JSON — don't save}}}placeholder='{"X-Custom-Header": "value"}'