mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-14 05:18:34 +00:00
fix(browser): accept fill fields without explicit type
Default missing fill field type to 'text' in /act route to avoid spurious 'fields are required' failures from relay/tool callers. Add regression test for fill payloads with ref+value only.
This commit is contained in:
@@ -192,8 +192,8 @@ export function registerBrowserAgentActRoutes(
|
||||
}
|
||||
const rec = field as Record<string, unknown>;
|
||||
const ref = toStringOrEmpty(rec.ref);
|
||||
const type = toStringOrEmpty(rec.type);
|
||||
if (!ref || !type) {
|
||||
const type = toStringOrEmpty(rec.type) || "text";
|
||||
if (!ref) {
|
||||
return null;
|
||||
}
|
||||
const value =
|
||||
|
||||
Reference in New Issue
Block a user