Skip to content

fix: preserve literal fill and type text - #2394

Open
lahfir wants to merge 5 commits into
mainfrom
laf/literal-option-text
Open

lahfir wants to merge 5 commits into
mainfrom
laf/literal-option-text

Conversation

@lahfir

@lahfir lahfir commented Nov 3, 2026

Copy link
Copy Markdown
Contributor
  1. Fill and type treated option-like input as flags and changed the text entered into forms.
  2. Honor -- before literal text and preserve MCP text arguments while keeping type options active.
  3. Fixes fill/type consume option-shaped text as flags, even after an end-of-options marker #2171 and builds on fix(cli): treat text after -- as literal in fill and type #2204.

Co-authored by @bercedev, based on #2204.

Before

Fill inserts -- instead of --json, and type clears the field instead of appending --clear.

before

After

Fill inserts --json, and type appends --clear without clearing the field.

after

lahfir and others added 5 commits November 3, 2026 12:27
Stop flag and config parsing at the text boundary so option-like input reaches the field unchanged.

Co-Authored-By: berce <75228263+bercedev@users.noreply.github.com>
Keep command options before literal text and document the optional CLI marker.
A global option can consume -- as its value, so inspect the remaining command arguments for the literal boundary.
Reject incomplete or duplicate separators before appending structured text.
@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
agent-browser Ready Ready Preview, v0 Nov 3, 2026 9:46pm UTC
agent-browser-env-demo Ready Ready Preview, v0 Nov 3, 2026 9:46pm UTC

This branch was successfully deployed

2 active deployments
Preview – agent-browser-env-demo — 55e4b238 Deployed Nov 3, 2026 by vercel[bot]
Preview – agent-browser — 55e4b238 Deployed Nov 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fill/type consume option-shaped text as flags, even after an end-of-options marker

2 participants