Skip to content

stories list shows wrong fields: complexity and assigned_agent always display as '-' #660

@nikrich

Description

@nikrich

Bug

hive stories list always shows - for the Complexity and Assigned columns, even when stories have values for these fields.

Root Cause

Field name mismatch between the API response and the display code in dist/cli/commands/stories.js:

const complexity = story.complexity?.toString() || '-';
const assigned = story.assigned_agent || '-';

But the API returns:

  • complexity_score (not complexity)
  • assigned_agent_id (not assigned_agent)

So the display code reads undefined fields and always falls back to -.

Example

ID              Title                                    Status          Complexity   Assigned
15e12d8f...     Add health check endpoint                in_progress     -            -

But hive stories list --json shows the story has complexity_score: 1 and assigned_agent_id: "junior-1ff868fd".

Fix

Change the field references to match the API response:

const complexity = story.complexity_score?.toString() || '-';
const assigned = story.assigned_agent_id || '-';

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