Skip to content

Studio: browser use follow-ups (safetensors nudge, date fields, disabled dropdowns, moved pages) - #13429

Merged
danielhanchen merged 13 commits into
mainfrom
studio-browser-use-followups
Oct 12, 2026
Merged

danielhanchen merged 13 commits into
mainfrom
studio-browser-use-followups

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Follow-ups to #13372 (Studio browser use), from the review rounds on that PR.

Changes

  • Safetensors/MLX: one post-tool nudge per browser turn. The GGUF and external loops already let a browser task continue when the model announces its next step ("I'll click the first result") without calling a tool; the safetensors loop stopped there because its nudge required that no tool had run yet. It now allows one nudge per tool turn when browser tools are offered, with iterations reserved for it. Requests without browser tools take exactly the old path (same budget, same condition, same iteration count).

  • Date and time fields. browser_type refused date, time, datetime-local, month and week inputs even though the snapshot shows them as textboxes. They are accepted now; a value the field can't parse returns an error naming the expected format instead of reporting success.

  • Disabled dropdowns. browser_select on a disabled <select> changed its value and fired its change handlers. It now returns the same disabled error as text fields.

  • A page that moves during a read. A snapshot or find whose tab navigated while the page script ran now returns an error instead of text from a page no site rule was checked against (same rule the screenshot path got in Studio: let models use the browser panel #13372).

  • Enter in a field is judged by the button it presses. Enter submits through the form's default button, but only the field's own label was checked, so Enter in "Quantity" next to "Buy now" went through without the purchase prompt. The page script now reports the default button's label and the submit gate checks it like a click on that button.

  • Secret dropdowns. A card-expiry or other payment <select> is refused like its text field would be, instead of the agent choosing a value.

  • CI after Studio: let models use the browser panel #13372. The token count parity harness inlines the chat adapter and had no stand-in for browserAgentToolsForTurn, so 5 of its 14 cases threw ReferenceError on main; it now stubs browser use off. The startup bundle check was 1.3 KB transfer over: Studio: let models use the browser panel #13372 added 7.8 KB raw / 2.7 KB transfer (measured at its merge commit vs its parent). The composer toggle now loads on use (0.3 KB back); with main's re-measured budget from Studio: linked folders honour .gitignore, folder uploads in the browser, queued drops and retry for failed sources #13224 the merged tree is within budget (1,958.2 KB transfer, 1.9 KB to spare), so the budget itself is unchanged here.

Verified

  • tests/test_safetensors_tool_loop.py: 3 new tests. On the old loop the two browser cases fail and the non-browser case passes; all pass here. With test_nudge_tool_calls_wiring.py and test_browser_agent.py: 430 passed.
  • Page script in Chromium, main vs this branch, on a fixture page:
Action main this branch
type 2026-10-12 into a date field not a text field typed
type 12/10/2026 into a date field not a text field error: takes a value like 2026-03-14
select B on a disabled dropdown selected B, change event fired refused, value and events unchanged
  • tests/studio/test_token_count_prompt_parity.py: 14 passed (5 failed before). npm run build && npm run bundle:check on this branch merged with main: within budget. Full npm test: 11764 of 11766, the 2 failures read files outside studio/ that the local copy lacks.
  • Frontend typecheck and tests/browser-agent-gate.test.ts pass; the new Enter case fails on the old gate. In Chromium, Enter in a Quantity field reports submitter: "Buy now".

UI parity (merge base 2a81fc4 vs head 5ce5345)

The composer toggle now loads on use, so nothing visible should move. Both builds list Browser use in the + menu, show the Browser pill after clicking it, and show the same Settings > Browser section; only the random greeting line differs.

Composer + menu, before and after

@danielhanchen danielhanchen self-assigned this Oct 12, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-12T13:59:33.863932Z fff724a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T15:54:20.242282Z 725f6d1 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: d1a6617f9b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: f21e0d8dcc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 12, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 12, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 12, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 12, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 12, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 12, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 12, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 12, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 12, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 725f6d1bf4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 6a01c55 into main Oct 12, 2026
@danielhanchen
danielhanchen deleted the studio-browser-use-followups branch October 12, 2026 15:56
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.

1 participant