Skip to content

[DOCS] infer daemon stop, infer sessions and infer workspaces #1307

Description

@edenreich

Summary

The CLI regroups its daemon commands by what they act on, in inference-gateway/cli#1968 and inference-gateway/cli#1970 (stacked on it):

  • infer daemon starts the daemon and infer daemon stop stops it. Stop sends SIGTERM to the pid that the lock on ~/.infer/run/daemon.pid vouches for, waits for the shutdown, and kills the daemon if it still runs after a minute. The shutdown is graceful for everything the daemon runs: every session worker ends its turn and cleans up, and every scheduled, heartbeat or A2A run shuts down on SIGTERM. With no daemon running, stop says so and exits 0. A pid file no daemon holds is left alone.
  • The session commands move from infer daemon to infer sessions: run, stop and teleport, each taking a <session-id>.
  • The workspace listing moves from infer daemon workspaces to infer workspaces list.
  • infer daemon run, infer daemon stop <id>, infer daemon teleport and infer daemon workspaces are gone.

Land this with the CLI release that ships both PRs.

Affected pages:

  • cli.md:
    • "Starting the daemon": add infer daemon stop and what its shutdown does
    • "Workspace lifecycle and cleanup": infer daemon teleport <conversation-id> --to <workspace> and infer daemon stop <conversation-id> become infer sessions teleport <session-id> --to <workspace> and infer sessions stop <session-id>
    • "Workspace kinds" and "How the daemon dials a workspace (protocol)": infer daemon workspaces becomes infer workspaces list
    • the command table: replace the infer daemon stop <id> row with infer sessions <subcommand> (run, stop, teleport), and add rows for infer daemon stop and infer workspaces list

Commands to show:

infer daemon stop                                   # stop the running daemon and everything it runs
infer sessions run <session-id> "continue please"   # one turn through the daemon, wherever the session runs
infer sessions teleport <session-id> --to k8s-dev   # teleport a session, printing each stage until ready
infer sessions stop <session-id>                    # stop the agent and delete its remote runtime
infer workspaces list                               # every workspace in daemon.yaml and whether it is reachable

Source: inference-gateway/cli#1968, inference-gateway/cli#1970, inference-gateway/cli#1969.

Acceptance Criteria

  • cli.md documents infer daemon stop under "Starting the daemon": the graceful shutdown of session workers and runs, the kill after a minute, and the exit 0 when no daemon runs
  • Every infer daemon run, infer daemon stop <id> and infer daemon teleport on the site reads infer sessions run, stop or teleport, with <session-id>
  • Every infer daemon workspaces on the site reads infer workspaces list
  • The command table lists infer daemon stop, infer sessions <subcommand> and infer workspaces list, and no longer lists infer daemon stop <id>

Activity

  1. added
    documentation
    on Nov 24, 2026
  2. added theissue type on Nov 24, 2026
  3. edenreich commented on Nov 24, 2026

    @edenreich
    ContributorAuthor

    @claude can you work on this?

  4. inference-gateway-maintainer commented on Nov 24, 2026

    @inference-gateway-maintainer
    Contributor

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


    Docs for infer daemon stop, infer sessions and infer workspaces list - done

    Changes in cli.md:

    • Starting the daemon: added a "Stopping the daemon" part for infer daemon stop. It covers the SIGTERM to the pid that the daemon.pid lock vouches for, the graceful shutdown of session workers and of scheduled, heartbeat and A2A runs, the kill after a minute, the exit 0 when no daemon runs, and that a pid file no daemon holds is left alone.
    • Workspace lifecycle and cleanup: the old teleport and stop commands now read infer sessions teleport <session-id> --to <workspace> and infer sessions stop <session-id>.
    • Workspace kinds and the protocol section: infer daemon workspaces now reads infer workspaces list.
    • Command reference: the infer daemon stop <id> row is gone. There are new rows for infer daemon stop, infer sessions <subcommand> (run, teleport, stop) and infer workspaces list.

    No other page used the old commands. infer sessions run appears only in the command table because no section of the docs walks through it yet.

    PR #1308 should merge together with the CLI release that ships the regrouped commands.

  5. moved this from Todo to In progress in 2026on Nov 24, 2026
  6. moved this from In progress to QA in 2026on Nov 24, 2026
  7. moved this from QA to Done in 2026on Nov 24, 2026
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

    documentation

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions