Skip to content

Tasks: CLI shows snapshot for paused task logs #1255

Closed
coder/coder
#21787

Description

@mafredri

Repo: coder/coder

Scope: Update coder tasks logs to handle paused state gracefully.

Changes:

  • Detect when response includes snapshot: true
  • Print warning: "Warning: Task is paused. Showing N last messages."
  • If no snapshot: "Warning: Task is paused. No logs available (snapshot may have failed during pause, resume your task to view logs)."
  • Format snapshot messages same as live logs

Files:

  • cli/task.go

Acceptance criteria:

  • Warning printed when showing snapshot
  • Logs display correctly from snapshot data
  • Graceful message when no snapshot exists
  • Output format matches live logs output

Dependencies:

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions