Skip to content

get_next_task ignores tasks with satisfied dependencies #35

@JanJetze

Description

@JanJetze

Bug

get_next_task (MCP) and ohno next (CLI) return "No tasks available" even when an unblocked todo task exists.

Reproduction

  1. Have todo tasks with dependencies set via add_dependency
  2. One task's only dependency is on a done task → is_blocked: false
  3. Its parent epic is in_progress, its story is in_progress
  4. Call get_next_task or ohno next

Expected: Returns the unblocked task
Actual: { "message": "No tasks available" }

Evidence

get_task_dependencies confirms the task is not blocked:

{
  "dependencies": [
    {
      "task_id": "task-40ed14e8",
      "depends_on_task_id": "task-3c81b59a",
      "dependency_type": "requires",
      "depends_on_status": "done"
    }
  ],
  "blocking": [],
  "is_blocked": false
}

Ruled out

  • Epic/story status: Set both to in_progress — still not found
  • Version: Reproduced on both v0.11.4 and v0.19.0

Likely cause

The next-task query filters out tasks that have any dependency records, rather than only filtering tasks whose dependencies are unsatisfied.

Environment

  • ohno-cli v0.19.0
  • macOS Darwin 25.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions