Skip to content

[DOCS] Document skipping unchanged screen frames #1177

Closed

Description

@edenreich

Summary

The CLI no longer re-sends a screen frame a client already has. read_frame takes an optional have, the id of the frame the client shows, and answers unchanged instead of the image when nothing newer exists. The web terminal's screen route does the same over HTTP: it serves the frame id as an ETag and answers 304 Not Modified to a matching If-None-Match. cli.md describes the Screen view as polling for the latest frame and does not mention that an unchanged screen costs nothing to poll.

Details to cover:

  • The Screen view polls /screen/?id=<session> and names the frame it already shows. A screen that has not changed answers 304 Not Modified and the page keeps its picture.
  • A frame's id now changes only when the picture does. A capture that shows what the latest frame shows is not stored again, so a still screen keeps one frame however long it stands.
  • For a client of the daemon binding: read_frame accepts have, and the reply is {"type": "frame", "unchanged": true} with no frame when the latest frame is still that one. Without have the full frame is sent as before.
  • Polling faster is cheap on a still screen, but how fresh a frame is still depends on the capture pace, not the poll.

Affected pages:

  • cli.md - the Screen view paragraph above "Take-over Mode" that says the page polls /screen/?id=<session> every two seconds.
  • cli.md - any description of read_frame in the daemon binding protocol.

Source PR: inference-gateway/cli#1797

Acceptance Criteria

  • cli.md states that a poll of an unchanged screen answers 304 Not Modified and does not download the image again
  • The page states that a frame id changes only when the picture changes
  • Where read_frame is described, the optional have field and the unchanged reply are documented

Activity

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

    @edenreich
    ContributorAuthor

    @claude can you document this?

  5. inference-gateway-maintainer commented on Nov 10, 2026

    @inference-gateway-maintainer
    Contributor

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


    Documented skipping unchanged screen frames

    • Read issue and locate affected sections in cli.md
    • Screen view paragraph: ETag on the image, 304 Not Modified on an unchanged poll, and a frame id that changes only when the picture does
    • read_frame: optional have field, the {"type": "frame", "unchanged": true} reply, and the frame table row
    • bun run format:check, bun run lint:md, bun run build - all pass
    • Committed and opened PR docs(cli): skipping unchanged screen frames #1178

    What changed

    In The Screen View, a paragraph after the existing capture-pace note says each image is served with its frame id as an ETag, the page names the frame it already shows, and an unchanged screen answers 304 Not Modified so the picture is not downloaded again. It also states a capture that shows what the latest frame already shows is not stored again, so a still screen keeps one frame however long it stands.

    In Screen Protocol Frames, an example read_frame with have and the unchanged reply with no frame, plus a note that without have the full frame is sent as before. The read_frame row of the frame table mentions both.

    The "how fresh that latest frame is depends on the capture pace, not on the poll" sentence already covered the last detail in the issue, so it stays as is, directly above the new paragraph.

    PR: #1178
    | Branch

  6. moved this from Todo to In progress in 2026on Nov 10, 2026
  7. moved this from In progress to QA in 2026on Nov 10, 2026
  8. moved this from QA to Done in 2026on Nov 10, 2026
  9. inference-gateway-releaser commented on Nov 12, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.26 🎉

    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

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions