Skip to content

[DOCS] Document /tasks in a daemon chat and the list_tasks and cancel_task frames #1111

Closed

Description

@edenreich

Summary

/tasks now works in a daemon chat, through two new requests on the infer daemon AG-UI binding, in inference-gateway/cli#1729. That PR has not merged yet, so this should land with or after it.

/tasks used to refuse in a daemon chat. It now lists and cancels the shells, subagents, recordings and A2A tasks the session's worker runs, with their output, stats and a subagent's transcript. Daemon clients (browser extension, desktop app) can use the same requests.

  • list_tasks (optional project_dir, and id for the conversation) is answered with a tasks frame: {"type": "tasks", "tasks": [{"id": "shell-1", "kind": "shell", "label": "shell-1", "detail": "go build ./...", "status": "running", "started_at": "2026-11-06T10:00:00Z"}]}
  • status is running, completed or failed. A finished job also has completed_at and output. A subagent has its session_id, and stats once it ends.
  • cancel_task takes the job in task_id, since id names the conversation, and is answered with {"type": "task_cancelled", "task_id": "shell-1"}. error says why a job could not be stopped. The job ends a moment later, so a client lists the jobs again to see it finished.
  • These frames answer for the worker they reach, so a client follows the session first.
  • A cancelled shell shows as failed.
  • In a daemon chat the view refreshes while a job runs. A job started while nothing runs shows after reopening /tasks.

Affected pages:

  • cli.md: the /tasks view section, and the daemon section if it lists what a daemon chat turns off.
  • opentask.md: where list_shortcuts is documented, for the two new requests.

The CLI repo's own docs/browser-extension-protocol.md, docs/daemon.md, docs/shortcuts-guide.md and docs/tasks-management.md are updated by the PR.

Source: inference-gateway/cli#1729

Acceptance Criteria

  • cli.md states that /tasks works in a daemon chat and acts on the jobs of the session's worker, with the refresh limit above
  • The list_tasks request and tasks reply are documented with a JSON example and the status values
  • The cancel_task request and task_cancelled reply are documented, including task_id, error and that the job ends a moment later
  • list_tasks and cancel_task are listed among the project-scoped requests, if the page keeps that list

Activity

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

    @edenreich
    ContributorAuthor

    @claude can you document this? use /ponytail:ponytail check if still relevant first.

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

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 2m 18s —— View job • docs/issue-1111-20261107-0127


    Documented /tasks in a daemon chat

    • Check relevance - upstream cli#1729 merged 2026-11-06, so this is current and lands now
    • Read the /tasks view and shared-event-stream sections of cli.md, and opentask.md
    • Confirm the frame shapes against the CLI's own browser-extension-protocol.md / daemon.md / tasks-management.md
    • Write the docs
    • Validate - bun run format:check, bun run lint:md, bun run build all clean
    • Commit and open PR

    What changed

    cli.md

    • New /tasks in a daemon chat subsection under the /tasks view: it lists and cancels the jobs of the session's worker (shells, subagents, recordings, A2A tasks) with output, stats and a subagent's transcript, the same frames the browser extension and desktop app use. The view refreshes while a job runs, a job started while nothing ran shows after reopening /tasks, cancelling ends the job a moment later, and a cancelled shell shows as Failed.
    • list_tasks / cancel_task added to the app frames table of the shared event stream, which is the page's project-scoped request list.

    opentask.md

    • New Background jobs section (next to list_shortcuts, list_issues, list_files) with JSON examples for list_tasks -> tasks and cancel_task -> task_cancelled, the status values running/completed/failed, completed_at and output on a finished job, a subagent's session_id and stats, task_id versus the conversation id, error, and that these frames answer for the worker they reach so a client follows the session first.
    • The four frames added to the frame reference table.

    Create a PR - already opened as #1112.

    Skipped: no screenshot or bun run preview pass (no nav, SEO or theme change), and no entry in a "what a daemon chat turns off" table because this page has none. Risk: the frame fields are taken from the CLI's merged protocol doc rather than exercised against a running daemon, so a later rename upstream would need a follow-up here.
    | Branch: docs/issue-1111-20261107-0127

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

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    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