Skip to content

[DOCS] Document the computer_use activity and the screenRecording frame state of the AG-UI output #878

Closed

Description

Summary

The CLI now publishes computer-use activity and screen-recording state on the standard AG-UI output stream, so desktop clients (the overlay and monitor of the #1396 epic) no longer need to reverse-engineer Computer tool arguments and RecordStart results. Implemented in inference-gateway/cli#1441 for inference-gateway/cli#1404. The CLI page docs/ag-ui-output.md is updated in that PR; the docs site should document the same contract wherever it covers the headless AG-UI output.

  • New activity: ACTIVITY_SNAPSHOT with activityType computer_use, keyed computer_use:<toolCallId>, written just before each pointer (move, click, double_click, triple_click) or keyboard (type, key) action. content is {toolCallId, action, x, y, screenWidth, screenHeight} in screen coordinates; keyboard actions carry no x and y.
  • Extended state: the screenRecording state key carries active, and while a recording runs also path, region {x, y, width, height} and frameWidth/frameHeight. region is in the frame space the recorder captures.

Acceptance Criteria

  • The AG-UI output documentation describes the computer_use activity with its content shape and when it is written
  • The screenRecording state key is documented with active, path, region, frameWidth and frameHeight, with region noted as frame space
  • The CLI page docs/ag-ui-output.md (updated in PR 1441) is linked or mirrored wherever the docs cover the headless AG-UI output

Activity

  1. added
    documentation
    on Sep 30, 2026
  2. edenreich commented on Sep 30, 2026

    @edenreich
    Contributor

    @claude can you document this?

  3. added theissue type on Sep 30, 2026
  4. inference-gateway-maintainer commented on Sep 30, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 3m 41s —— View job • docs/issue-878-20260930-2343 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-878-20260930-2343?quick_pull=1&title=Issue%20%23878%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23878%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented in #883

    • Gather context (found the headless AG-UI coverage in cli.md, cross-checked the CLI's docs/ag-ui-output.md)
    • Document the computer_use ACTIVITY_SNAPSHOT - key, content shape, which pointer/keyboard actions write it and when
    • Document the screenRecording state key - active, path, region, frameWidth/frameHeight, with region noted as frame space
    • Link the CLI docs/ag-ui-output.md reference from the new section
    • Validate: bun run lint:md, bun run format:check, bun run build all pass
    • Commit and open PR

    What changed in cli.md

    • New section AG-UI computer-use activity and recording state under the headless AG-UI output docs, with a worked ACTIVITY_SNAPSHOT example (activityType computer_use, messageId computer_use:<toolCallId>, screen coordinates) and a STATE_DELTA example for screenRecording, plus a field table and the frame-space note.
    • The screen-recording section's AG-UI table now names the screenRecording STATE_DELTA instead of the old CUSTOM screen_recording event.
    • The shared event stream table gained ACTIVITY_SNAPSHOT and a state-object description for STATE_SNAPSHOT/STATE_DELTA, and lost the stale screen_recording / computer_use_action CUSTOM rows - those names no longer exist in the CLI under protocol v2.

    Not done: the rest of the protocol-v2 migration of that CUSTOM-events table (agent_status, judge_verdict, background_tasks, token_usage also moved to standard AG-UI events upstream) is outside this issue's scope and worth its own pass.
    | Branch | PR #883

  5. inference-gateway-releaser commented on Oct 1, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.20 🎉

    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