-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
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
listcommand insrc/cogs/command_handler.pyis 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_e2etest_list_command_emptytest_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:
- Show a clear, formatted list of all monitoring targets for the channel
- Display target index, name/description, and status information
- Handle empty state gracefully with helpful message
- Use consistent formatting with other commands
Acceptance Criteria
-
!listcommand 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.
Reactions are currently unavailable