Skip to content

[DOCS] Document resending a prompt and the rewind_conversation frame #1202

Closed

Description

@edenreich

Summary

Two linked changes add a way to send an earlier prompt again from a client of the daemon, and neither is documented on the docs site yet.

Behaviour to document:

  • The deletion is permanent and has no confirmation step, as in the TUI.
  • A prompt is named by its text and by occurrence, which counts the times the user sent that text from the newest. 1, or none, is the last time.
  • The frame runs only on the session its project_dir and id name. A session that is not open answers with RUN_ERROR.
  • A worker that is running a turn, or has one queued, refuses and leaves the conversation as it was. So does one whose conversation has no such prompt.
  • The desktop needs an infer release that has the frame. A session on a remote workspace needs it in its pod too. An older infer never answers, and the app reports an error.
  • A prompt sent with an @file reference cannot be resent until the chat is reopened, because the worker stores the expanded text. Nothing is deleted in that case.

Frames to show as a code sample:

{"type": "rewind_conversation", "project_dir": "/abs/path/to/project", "id": "<conversation id>", "content": "<the prompt's text>", "occurrence": 1}
{"type": "conversation_rewound", "id": "<conversation id>", "messages": [...]}
{"type": "conversation_rewound", "id": "<conversation id>", "messages": null, "error": "the conversation has no such prompt"}

Affected pages:

  • desktop.md, section "Chat and tool approval": the Resend prompt button and what it deletes.
  • cli.md, the daemon and serve worker sections: the rewind_conversation frame next to the other panel frames.
  • opentask.md, if the frame reference lives there alongside the session artifacts frames.

Source: the frame is specified in docs/browser-extension-protocol.md ("Conversation rewind") and docs/conversation-versioning.md in inference-gateway/cli#1824.

Acceptance Criteria

  • desktop.md describes the Resend prompt button, that it drops the prompt and everything after it, and that the deletion is permanent
  • desktop.md states the infer version the button needs, once feat(conversation): let a daemon client rewind a session to a prompt cli#1824 is released
  • The rewind_conversation and conversation_rewound frames are documented with the JSON sample, the occurrence rule and the refusal cases
  • The docs say the frame runs only on the session it names
  • The @file limitation is noted

Activity

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

    @edenreich
    ContributorAuthor

    @claude can you document this?

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

    @inference-gateway-maintainer
    Contributor

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


    Documented resending a prompt and the rewind_conversation frame

    • Gather context (existing panel frame docs in cli.md, desktop.md, opentask.md)
    • desktop.md - new "Resending a prompt" section under Chat and tool approval
    • opentask.md - new "Conversation rewind" section with the JSON samples, occurrence rule, refusal cases, session scoping, @file limitation; both frames added to the frame reference table
    • cli.md - rewind_conversation in the serve worker stdin frames table and the shared event stream app frames table
    • Validated: bun run lint:md, bun run format:check, bun run build all pass
    • Committed and opened #1203

    One acceptance criterion left open: the exact infer version is not stated, because inference-gateway/cli#1824 is still open and unreleased - the frame is not in docs/browser-extension-protocol.md upstream yet. The docs say the button needs "an infer release that carries the rewind_conversation frame", which should be replaced with the version number once it ships.
    | Branch

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

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.27 🎉

    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