diff --git a/.changeset/v0-14-0-release.md b/.changeset/v0-14-0-release.md new file mode 100644 index 0000000..d4f1aaf --- /dev/null +++ b/.changeset/v0-14-0-release.md @@ -0,0 +1,10 @@ +--- +"agent-browser": minor +--- + +- Added `keyboard` command for raw keyboard input -- type with real keystrokes, insert text, and press shortcuts at the currently focused element without needing a selector. +- Added `--color-scheme` flag and `AGENT_BROWSER_COLOR_SCHEME` env var for persistent dark/light mode preference across browser sessions. +- Fixed IPC EAGAIN errors (os error 35/11) by adding backpressure-aware socket writes, command serialization, and lowering the default Playwright timeout to 25s (configurable via `AGENT_BROWSER_DEFAULT_TIMEOUT`). +- Fixed remote debugging (CDP) reconnection. +- Fixed state load failing when no browser is running. +- Fixed `--annotate` flag warning appearing when not explicitly passed via CLI. diff --git a/AGENTS.md b/AGENTS.md index 0dd7052..50bfdde 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -24,6 +24,8 @@ When adding or changing user-facing features (new flags, commands, behaviors, en This applies to changes that either human users or AI agents would need to know about. Do not skip any of these locations. +In the `docs/src/app/` MDX files, always use HTML `
| Variable | Description | Default |
|---|---|---|
AGENT_BROWSER_AUTO_CONNECT | Auto-discover and connect to a running Chrome instance. | (disabled) |
AGENT_BROWSER_ALLOW_FILE_ACCESS | Allow file:// URLs to access local files. | (disabled) |
AGENT_BROWSER_COLOR_SCHEME | Color scheme preference (dark, light, no-preference). | (none) |
AGENT_BROWSER_DEFAULT_TIMEOUT | Default Playwright timeout in ms. Keep below 30000 to avoid IPC timeouts. | 25000 |
AGENT_BROWSER_SESSION_NAME | Auto-save/load state persistence name. | (none) |
AGENT_BROWSER_STATE_EXPIRE_DAYS | Auto-delete saved session states older than N days. | 30 |
AGENT_BROWSER_ENCRYPTION_KEY | 64-char hex key for AES-256-GCM session encryption. | (none) |
AGENT_BROWSER_STREAM_PORT | Enable WebSocket streaming on the specified port (e.g., 9223). | (disabled) |
AGENT_BROWSER_IOS_DEVICE | Default iOS device name for the ios provider. | (none) |
AGENT_BROWSER_IOS_UDID | Default iOS device UDID for the ios provider. | (none) |
AGENT_BROWSER_DEBUG | Enable debug output (1 to enable). | (disabled) |