Skip to content

!list command producing incorrect output format #69

@timothyfroehlich

Description

@timothyfroehlich

Problem

The !list command is producing incorrect output that doesn't match expected formats, causing test failures and potentially confusing users.

Root Cause Analysis

From AGENT_TASKS.md analysis:

  • The list command in src/cogs/command_handler.py is producing incorrect output
  • Output format doesn't match what tests expect for target information
  • Empty state handling may also be incorrect

Failed Test Evidence

Multiple test failures confirm this issue:

  • test_list_targets_e2e
  • test_list_command_empty
  • test_list_command_with_targets

Impact

  • Users see incorrect or confusing status information
  • Cannot properly view their configured monitoring targets
  • Affects user ability to manage their monitoring setup

Files Involved

  • src/cogs/command_handler.py - Main list command logic
  • Message formatting for list output
  • Database queries for retrieving target information

Expected Behavior

The !list command should:

  1. Show a clear, formatted list of all monitoring targets for the channel
  2. Display target index, name/description, and status information
  3. Handle empty state gracefully with helpful message
  4. Use consistent formatting with other commands

Acceptance Criteria

  • !list command produces correct output format
  • Empty state shows helpful message
  • Target information is displayed clearly and accurately
  • Output matches test expectations
  • All related tests pass

Priority

HIGH - This affects user ability to view and manage their monitoring configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions