Skip to content

[FEATURE] Show background shell (and subagent) output in the /tasks detail panel #692

Closed
inference-gateway/docs
#388

Description

@edenreich

Summary

In /tasks, selecting a background shell (or subagent) row shows only metadata - the command (Detail:), status, and elapsed time - but not the shell's output. There is no way to see, let alone stream, the captured stdout/stderr of a background shell from /tasks. A2A tasks already render their result (renderFinalResult, internal/ui/components/task_management_view.go:808), so shells/subagents feel inconsistent.

The data is not currently plumbed to the view: the /tasks view consumes the supervisor Snapshot() as domain.TrackedJob, which carries Meta / Status / CompletedAt / LastNote (internal/domain/background_job.go:133-137) - metadata and a short last-note, but not the captured output stream. A background shell's full output currently flows into the conversation when the job finishes (via the supervisor completion note), not into the /tasks detail panel.

Requested: when a background shell/subagent row is selected in /tasks, show its output in the detail panel - ideally streamed live for a running shell, and the captured output (or a tail) for a finished one - bringing shells/subagents to parity with the A2A "Final Result" panel.

Acceptance Criteria

  • Selecting a running background-shell row in /tasks shows its output, updated live as it streams.
  • Selecting a completed background-shell row shows its captured output (or a bounded tail with a way to see more).
  • The same applies to subagent rows (show the subagent's output/result).
  • Output rendering is bounded (truncation/scroll) so a chatty shell does not blow up the panel.
  • Plumb the output to the view: extend the supervisor snapshot / TrackedJob (or add a lookup by job id) so the detail panel can read a job's output without routing through the conversation.

Reported on macOS, infer chat TUI, against the new per-kind /tasks tables.

Activity

  1. added
    enhancement
    on Jun 30, 2026
  2. moved this to Todo in 2026on Jun 30, 2026
  3. edenreich commented on Jul 13, 2026

    @edenreich
    ContributorAuthor

    @infer Can you work on this?

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

    @inference-gateway-maintainer
    Contributor

    Model: ollama_cloud/deepseek-v4-flash · View Job

    Todos

    • Read relevant code: TrackedJob, supervisor, task_management_view
    • Add issue to project board and set status to In progress
    • Add JobOutputProvider interface and Output field to TrackedJob
    • Implement JobOutputProvider on shellJob and update Supervisor.Snapshot()
    • Implement JobOutputProvider on headlessSubagentJob
    • Update task_management_view to render output for shell/subagent rows
    • Run precommit and push
    • Create draft PR

    Pull Request

    #897

    ✅ Infer Result: Success

    All changes are committed and pushed. The draft PR is open at #897.

    Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 12m 38s

    Tokens: 6,384,190 in · 16,190 out · 6,400,380 total (54 requests)

    Tool calls: 67 total · 97% success rate

    ⚠️ 2 failed tool call(s)
    • Edit: old_string not found in file /home/runner/work/cli/cli/internal/ui/components/task_management_view.go

    No similar content found. Please verify the content exists and matches exactly (including whitespace).

    • Bash: exit status -1: �[32mtask: [precommit:run] pre-commit run --all-files
      �[0m[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
      [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
      [INFO] Once installed this environment will be reused.
      [INFO] This may take a few minutes...
      trim trailing whitespace.................................................Passed
      fix end of files.........................................................Passed
      check yaml...............................................................Passed
      check json...............................................................Passed
      check toml...............................................................Passed
      check for merge conflicts................................................Passed
      check for added large files..............................................Passed
      mixed line ending........................................................Passed
      Go mod tidy..............................................................Passed
      Format code..............................................................Passed
      Lint.....................................................................Passed
      Generate mocks...........................................................Passed

    Triggered by edenreich · Infer Action

  5. moved this from Todo to In progress in 2026on Jul 13, 2026
  6. moved this from In progress to QA in 2026on Jul 13, 2026
  7. added a commit that references this issue on Jul 13, 2026
    ccb0b1a
  8. moved this from QA to Done in 2026on Jul 13, 2026
  9. inference-gateway-releaser commented on Jul 13, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.146.0 🎉

    The release is available on:

    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

    enhancementreleased

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions