Skip to content

fix: Register AgentTreeCommand to fix test failures in PR #602#606

Open
szmania wants to merge 5 commits into
cecli-dev:mainfrom
szmania:cli-602-fix-agent-tree-command
Open

fix: Register AgentTreeCommand to fix test failures in PR #602#606
szmania wants to merge 5 commits into
cecli-dev:mainfrom
szmania:cli-602-fix-agent-tree-command

Conversation

@szmania

@szmania szmania commented Jul 14, 2026

Copy link
Copy Markdown

Summary

Fixes the test errors in PR #602 by properly registering the new /agent-tree command.

Changes

  • Modified: cecli/commands/__init__.py
    • Added import for AgentTreeCommand from .agent_tree
    • Added CommandRegistry.register(AgentTreeCommand) to register the command
    • Added AgentTreeCommand to the __all__ export list

Root Cause

The original PR #602 added the cecli/commands/agent_tree.py file with the new command implementation, but failed to register it in the commands package's __init__.py. This caused the command to not be discovered during testing, leading to test failures.

Testing

  • The command should now be properly loaded and available as /agent-tree
  • All existing tests should pass
  • Manual testing via /agent-tree command in agent mode should work

This fix addresses the test failures on Python 3.14 and other versions.

Your Name and others added 5 commits July 13, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant