Skip to content

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.

fix(sessions): redact typed text from the timeline

Shahriar55a7dbadb178
diff --git a/lib/bridge/redact.ts b/lib/bridge/redact.ts
index bf3c922..f45007c 100644
--- a/lib/bridge/redact.ts
+++ b/lib/bridge/redact.ts
@@ -26,9 +26,15 @@ function redactValue(key: string, value: unknown, depth: number): unknown {
return null;
}
+const TYPED_FIELD: Record<string, string> = {
+ 'page.fillInput': 'value',
+ 'page.typeText': 'text',
+};
+
export function redactInput(action: string, input: unknown): unknown {
if (!input || typeof input !== 'object') return redactValue('', input, 0);
const redacted = redactValue('', input, 0) as Record<string, unknown>;
- if (action === 'page.fillInput' && 'value' in redacted) redacted.value = REDACTED;
+ const typed = TYPED_FIELD[action];
+ if (typed && typed in redacted) redacted[typed] = REDACTED;
return redacted;
}