`fill` reports "✓ Done" but leaves date/time inputs empty (date, datetime-local)

Author: a5x10Created Sep 26, 2026Updated Sep 26, 2026

Version: agent-browser 0.38.1, headless Chrome attached over CDP.

fill on an <input type="date"> or <input type="datetime-local"> prints ✓ Done, but the input's value stays empty, so a form whose button waits for onChange stays disabled.

Repro

agent-browser open 'data:text/html,<input id=when type=datetime-local><input id=d type=date>'
agent-browser fill '#when' 2026-09-26T20:49    # ✓ Done
agent-browser get value '#when'                # (empty)
agent-browser fill '#d' 2026-09-26             # ✓ Done
agent-browser get value '#d'                   # (empty)

Typing doesn't work either. keyboard type into the focused field did nothing. press on the digits spread them over the wrong segments (202608-09-26T16:09).

What works: setting the value with the native setter and firing input and change:

javascript
const e = document.querySelector('#when');
Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value').set.call(e, '2026-09-26T20:49');
e.dispatchEvent(new Event('input', { bubbles: true }));
e.dispatchEvent(new Event('change', { bubbles: true }));

Expected: fill sets the value of date, time, datetime-local, month and week inputs in the format the input takes (YYYY-MM-DD, HH:MM, YYYY-MM-DDTHH:MM, YYYY-MM, YYYY-Www), the way Playwright's fill does for these types. Failing that, it should report an error instead of ✓ Done when the value didn't take.

Source: vercel-labs/agent-browser