Skip to content

fix(bot): fix _handle_tasks_command signature positional argument - #286

Merged
astrovm merged 1 commit into
mainfrom
fix/tasks-command-signature
Aug 5, 2026
Merged

fix(bot): fix _handle_tasks_command signature positional argument#286
astrovm merged 1 commit into
mainfrom
fix/tasks-command-signature

Conversation

@astrovm

@astrovm astrovm commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes a TypeError when executing /tasks or /tareas:
_handle_tasks_command() takes 0 positional arguments but 1 positional argument (and 7 keyword-only arguments) were given

Cause

_handle_non_ai_command dispatches special handlers by calling special_handler(deps, command=command, ...) with deps as a positional argument. _handle_tasks_command had * at the start of its parameter list instead of after deps, causing it to accept zero positional arguments.

Solution

  • Moved deps: Any = None to the first positional argument of _handle_tasks_command.
  • Added unit test in tests/test_message_routing.py covering non-AI command dispatching for /tasks and /tareas.

@astrovm
astrovm merged commit 1fb1923 into main Aug 5, 2026
5 checks passed
@astrovm
astrovm deleted the fix/tasks-command-signature branch August 5, 2026 22:04
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