You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: computer_use compact schema mode description still says foreground is "only for a user-requested takeover" #4023
In the compact model schema of the computer_use tool, the description of the mode parameter was not updated. It still says foreground mode is only for a takeover the user asked for. The rest of the model-facing text uses a newer policy: the user's GUI task already allows foreground mode when background delivery is unsupported or verified ineffective, unless the user said background-only. Because the model receives this compact schema, it gets two instructions that contradict each other.
Expected: the mode description should give the same policy as the tool description, the action description and the full-schema mode description.
json!("Default background. Foreground only for a user-requested takeover.");
What the code does instead:
computer_use_tool.rs:1700-1709: input_schema_for_model and input_schema_for_model_with_context return model_input_schema, so the model sees this text.
computer_use_tool.rs:445: the mode description in the full schema was updated. It says foreground mode can be used when needed unless the user required background-only.
computer_use_tool.rs:719: the action description tells the model to use start_control(mode=foreground) when background delivery is unavailable or verified ineffective.
computer_use_tool.rs:248 and computer_use_tool.rs:1605: the tool description gives the same policy.
Effect on the model: suppose background delivery fails or turns out not to work, for example typing into a background window does nothing. If the model goes by the mode field, it can decide it is not allowed to call start_control(mode=foreground) until the user explicitly asks for a takeover. It then stops to ask the user or keeps retrying background input. This conflicts with the action description, and the task either stalls or wastes tool calls.
Suggested text for line 667:
json!("Default background. Use foreground for the requested GUI task when background delivery is unsupported or verified ineffective, unless the user required background-only/no-disruption; then activate_app and reobserve before global input.")
Activity