Skip to content

RecursionError: maximum recursion depth exceeded #186

@l2dy

Description

@l2dy

Observed after the bot sent its reply to a simple message in private chat:

INFO     | loop.step step=3 tape=<redacted> model=<redacted>
INFO     | tool.call.start name=bash { cmd="cat << 'EOF' | uv run /home/bub/bub/src/skills/telegram/scripts/telegram_send.py
--chat-id ..." }
INFO     | tool.call.success name=bash elapsed_time=610.81ms
INFO     | loop.step step=4 tape=<redacted> model=<redacted>
INFO     | tool.call.start name=quit
Exception in callback <_asyncio.TaskStepMethWrapper object at 0x706b62365c30>()
handle: <Handle <_asyncio.TaskStepMethWrapper object at 0x706b62365c30>()>
Traceback (most recent call last):
  File "/usr/lib/python3.14/asyncio/events.py", line 94, in _run
    self._context.run(self._callback, *self._args)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/asyncio/tasks.py", line 758, in cancel
    if child.cancel(msg=msg):
       ~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.14/asyncio/tasks.py", line 758, in cancel
    if child.cancel(msg=msg):
       ~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.14/asyncio/tasks.py", line 758, in cancel
    if child.cancel(msg=msg):
       ~~~~~~~~~~~~^^^^^^^^^
  [Previous line repeated 981 more times]
RecursionError: maximum recursion depth exceeded

Bub commit: f86c3d7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions