Skip to content

Add a focused CLI workflow for inspecting active tasks #1946

Closed

Description

@integry

Goal

Add one focused, read-only CLI workflow for inspecting active ProPR tasks. Operators and automation should be able to fetch tasks by lifecycle state and fetch the full details for one running task without having to discover and compose separate lower-level commands.

The CLI already has propr task list -s <status> and propr task get <task-id>. Reuse those API/client primitives and preserve their compatibility; this issue is about a coherent running-task inspection entry point and stable machine-readable output, not a second task API.

Expected behavior

  • Add a clearly named task inspection command or option under propr task.
  • With no task ID, fetch active tasks from the server using explicit lifecycle-state filters. Support selecting a particular authoritative task state rather than filtering a previously fetched page only on the client.
  • With a task ID, fetch and display that task's current status and full available details/run history using the existing task-status/details endpoint.
  • Define the default active/running state set from the server's canonical status vocabulary; do not invent status names or silently omit queued work.
  • Preserve existing task list and task get behavior.
  • Support --json with a documented, deterministic shape suitable for scripts. Human output should clearly distinguish queued and executing work and include task ID, repository, title, state, agent/model when available, and elapsed/updated time.
  • Authentication, remote selection, timeout, and API error behavior must match the rest of the CLI.

Acceptance criteria

  • CLI tests cover state-filtered inspection, default active-state inspection, a specific running task, empty results, invalid/not-found task IDs, API failures, and JSON output.
  • API-client tests prove filters are sent to the server and the task-detail path is used for a supplied ID.
  • CLI help, examples, the CLI README, and user documentation explain the workflow.
  • Existing task command tests remain green.

Activity

  1. propr-dev commented on Aug 25, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 1946/gpt-5.6-sol-add-a-focused-cli-workflo-20260825-2001-z6a
    • Base Branch: main
    • Worktree: issue-1946-20260825-2001-gpt-5.6-sol-z6a

    🔍 Track Task Execution

  2. added a commit that references this issue on Aug 25, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions