Skip to content

[DOCS] Headless computer-use control surface (computer_use.approval + pause/resume IPC) #577

Closed

Description

@edenreich

Summary

inference-gateway/cli#1075 (resolves inference-gateway/cli#1074, ships in the next cli release after v0.174.0) adds a headless computer-use control surface for host UIs such as the desktop app. None of it is documented yet.

What shipped:

  • A computer_use.approval knob in computer_use.yaml with three levels: never (default, current bypass behavior), destructive (MouseClick and ActivateApp require approval), always (every computer-use tool requires approval). Unknown values are rejected at config load and fail closed in the approval policy. Env override: INFER_COMPUTER_USE_APPROVAL.
  • A stdin IPC control message for infer headless: {"type":"computer_use_control","action":"pause|resume"}. Works with the json, json-pretty, and ag-ui formats, with or without --require-approval, following the same IPC pattern as approval_response.
  • Pause cancels the in-flight request and emits a computer_use_paused event; resume restarts the run with a hidden "Please continue from where you left off." message and emits computer_use_resumed. The JSON renderer emits these as JSON lines with the session request_id; the ag-ui renderer emits matching CUSTOM events.

Suggested content:

  • Add computer_use.approval (values, default, fail-closed behavior, env override) to the configuration reference page for computer_use.yaml.
  • Document the computer_use_control stdin message and the computer_use_paused / computer_use_resumed output events on the headless/agent-mode page, next to the existing approval_response IPC docs.
  • Include a runnable example, e.g. piping a pause and resume line into infer headless --format json "..." and the resulting event lines.

Acceptance Criteria

  • The configuration reference documents computer_use.approval with all three levels, the default, the fail-closed behavior for unknown values, and INFER_COMPUTER_USE_APPROVAL.
  • The headless docs describe the computer_use_control stdin message and the pause/resume semantics (cancel on pause, hidden continue message on resume).
  • The headless docs list the computer_use_paused / computer_use_resumed events for both the JSON and ag-ui formats, with an example.

Activity

  1. added
    documentation
    on Aug 19, 2026
  2. added theissue type on Aug 19, 2026
  3. moved this to Todo in 2026on Aug 19, 2026
  4. edenreich commented on Aug 19, 2026

    @edenreich
    ContributorAuthor

    @claude Can you work on this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Aug 19, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 3m 38s —— View job • docs/issue-577-20260819-1706 • Create PR ➔


    Done - PR #579

    • Gather context (read cli.md + upstream feat(computer-use): headless control surface for host UIs cli#1075 diff for exact field names)
    • Document computer_use.approval in the config reference
    • Document computer_use_control stdin IPC + pause/resume semantics
    • Document computer_use_paused / computer_use_resumed events (json + ag-ui) with example
    • Validate (lint:md, format:check, build, anchors checked against built HTML)
    • Commit + open PR

    All in cli.md, one commit:

    • ### Computer Use Approval (cli.md, after the Computer Use Configuration block) - three levels, never default, INFER_COMPUTER_USE_APPROVAL override, fail-closed on unknown values (rejected at config load, treated as always in the policy). Added approval: never to the YAML reference block.
    • #### Pause and resume control (IPC) (under Headless Agent Stream Output, next to the approval IPC docs) - the computer_use_control stdin message, cancel-on-pause, hidden "Please continue from where you left off." on resume, resume clearing the cancelled run's error, works across json/json-pretty/ag-ui with or without --require-approval, malformed/unknown lines ignored.
    • Events - computer_use_paused / computer_use_resumed added to the stream event types table, shown as JSON lines and as ag-ui CUSTOM events, plus a runnable pipe-pause-then-resume example with sample output.

    Not done: no separate computer_use.yaml page exists in this repo - the computer-use config reference lives in cli.md, so that is where the knob is documented.

    | Branch

  6. moved this from Todo to In progress in 2026on Aug 19, 2026
  7. moved this from In progress to QA in 2026on Aug 19, 2026
  8. moved this from QA to Done in 2026on Aug 21, 2026
  9. inference-gateway-releaser commented on Aug 24, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.12 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions