Skip to content

[DOCS] Document the /tasks Output detail section for background shells and subagents #387

Closed

Description

@edenreich

Summary

inference-gateway/cli#897 (resolves inference-gateway/cli#692) adds an "Output" section to the
/tasks detail panel in the chat TUI for background shell and subagent rows, bringing them to
parity with the A2A "Final Result" panel. The docs should cover:

  • Selecting a background shell row in /tasks now shows its captured stdout/stderr, updated
    live (about once per second) while the shell is running, and the full captured output
    (bounded by the output ring buffer) once it finishes.
  • Selecting a subagent row shows the subagent's final result message (headless subagents) or
    the last harvested turn (interactive tmux-pane subagents).
  • Rendering is bounded: the panel shows at most the last 10KB of output, prefixed with
    "(truncated, showing last 10KB)".
  • New configuration option tools.agent.inherit_mock (env var
    INFER_TOOLS_AGENT_INHERIT_MOCK, default true): when the parent CLI runs against the
    embedded mock gateway (gateway.mock: true), spawned subagents inherit mock mode via
    INFER_GATEWAY_MOCK=true instead of talking to the real gateway. Set to false to opt out.

Affected pages: the /tasks panel / background tasks documentation, and the configuration
reference (agent tool options).

Source PR: inference-gateway/cli#897
Source issue: inference-gateway/cli#692

Acceptance Criteria

  • The /tasks documentation describes the Output detail section for background shell rows
    (live streaming while running, captured output when finished, 10KB tail bound).
  • The /tasks documentation describes the Output detail section for subagent rows (final
    result / last harvested turn).
  • The configuration reference documents tools.agent.inherit_mock and
    INFER_TOOLS_AGENT_INHERIT_MOCK with the default value and its purpose.

Activity

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

    @edenreich
    ContributorAuthor

    @claude Can you work on this?

  5. inference-gateway-maintainer commented on Jul 13, 2026

    @inference-gateway-maintainer
    Contributor

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


    Documenting /tasks Output detail section + tools.agent.inherit_mock

    Done. Opened PR #388.

    • Read issue and gather context from existing docs
    • Locate /tasks panel documentation and configuration reference
    • Verify exact behavior against source PR feat(tasks): show background shell and subagent output in /tasks detail panel cli#897 (10KB tail, 1s tick, headless vs interactive subagent output, inherit_mock default true)
    • Document tools.agent.inherit_mock / INFER_TOOLS_AGENT_INHERIT_MOCK in the agent-tool config reference
    • Add a /tasks view section documenting the Output detail (shell live streaming + captured output + 10KB tail; subagent final result / last harvested turn)
    • Add /tasks to the built-in shortcuts table
    • Run lint / format / build checks (all pass)
    • Commit and open PR

    What changed (cli.md)

    New /tasks view section (next to the existing /tools and /a2a view docs):

    • Describes the per-kind background-work panel (A2A tasks, background shells, subagents) with live-updating rows.
    • Output detail for background shell rows - stdout/stderr streams live (about once per second) while running; the full captured output (bounded by the shell's output ring buffer) shows once it finishes.
    • Output detail for subagent rows - final result message for headless subagents, last harvested turn for interactive tmux-pane subagents.
    • 10KB tail bound - the panel shows at most the last 10KB, prefixed with (truncated, showing last 10KB).
    • Added /tasks to the built-in shortcuts table.

    Configuration reference (agent-tool options):

    • Documented tools.agent.inherit_mock (env INFER_TOOLS_AGENT_INHERIT_MOCK, default true) in the YAML block and env-var table, plus a prose note: when the parent runs against the embedded mock gateway (gateway.mock: true), subagents inherit mock mode via INFER_GATEWAY_MOCK=true; set to false to opt out.

    All three acceptance criteria are covered. Verified locally with bun run lint:md, bun run format:check, bun run build, and bun test - all green. No /tasks view or inherit_mock docs existed before, so I added a focused /tasks section to host the Output detail rather than editing a non-existent one.

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

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.2 🎉

    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