Skip to content

[Bug]: computer_use compact schema mode description still says foreground is "only for a user-requested takeover" #4023

Open

Description

@swf1996120

Summary

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.

Area

Agent runtime / core

Reproduction or evidence

Location: src/crates/assembly/core/src/agentic/tools/implementations/computer_use_tool.rs:667 (inside model_input_schema, lines 666-667)

Current text:

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.")

Environment, if relevant

OpenBitFun commit: 40bb954

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions