An agentic browser harness: an AI side panel & orb in your own logged-in Chrome, Edge, Arc, Brave or even Firefox run by the agent/subscription you already use (Claude Code, Codex, Antigravity). Free, open source, no API key. Also an MCP server.
TypeScript agentic-browseragentic-browsingagy-cliaiai-agentai-browser-extensionai-toolsbrave-extensionbrowser-agentbrowser-automationbrowser-extensionbrowser-usebrowserskillchrome-extensionclaude-codecodexfirefox-addonmcp-servernanobrowserweb-automation
fix(recordings): route select values through the sensitivity predicate
Shahriar3b045a3728e8
diff --git a/lib/recordings/capture.ts b/lib/recordings/capture.tsindex d560a18..aba41e2 100644--- a/lib/recordings/capture.ts+++ b/lib/recordings/capture.ts@@ -66,13 +66,12 @@ export function startCapture({ captureValues, send }: CaptureOptions): () => voi};};- const valueFor = (el: Editable, field: string, key: string): string => {- const raw =- el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement- ? el.value- : (el.textContent ?? '');+ const rawOf = (el: Editable): string =>+ el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement ? el.value : (el.textContent ?? '');++ const valueFor = (el: HTMLElement, field: string, key: string, raw: string): string => {const sensitive = isSensitiveField({- type: el instanceof HTMLInputElement ? el.type : 'text',+ type: el instanceof HTMLInputElement ? el.type : el.tagName.toLowerCase(),name: el.getAttribute('name') ?? '',id: el.id,autocomplete: el.getAttribute('autocomplete') ?? '',@@ -102,7 +101,7 @@ export function startCapture({ captureValues, send }: CaptureOptions): () => voitarget,field: field.slice(0, MAX_TEXT_CHARS),inputKind,- value: valueFor(el, field, target.selector),+ value: valueFor(el, field, target.selector, rawOf(el)),url: location.href,});};@@ -123,12 +122,16 @@ export function startCapture({ captureValues, send }: CaptureOptions): () => voiconst el = event.target;if (el instanceof HTMLSelectElement) {const option = el.selectedOptions[0];+ const target = targetFor(el);+ const field = target.text || el.getAttribute('name') || el.id || 'field';+ const value = valueFor(el, field, target.selector, el.value);+ const withheld = value.startsWith('{{');push({t: Date.now(),kind: 'select',- target: targetFor(el),- value: el.value.slice(0, MAX_VALUE_CHARS),- label: option?.text.trim().slice(0, MAX_TEXT_CHARS) || undefined,+ target,+ value,+ label: withheld ? undefined : option?.text.trim().slice(0, MAX_TEXT_CHARS) || undefined,url: location.href,});return;