I am consistently seeing aider crash when I /exit out of it. The easiest way for me to reproduce this is to start aider and then /exit immediately. I give the following error:
Analytics have been permanently disabled.
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Cost estimates may be inaccurate when using streaming and caching.
Aider v0.88.14
Main model: gpt-5 with agent edit format, reasoning medium
Weak model: gpt-5-nano
Git repo: ../macro/.git/worktrees/macro-PMSAX-72.ds with 680 files
Repo-map: using 4096 tokens, files refresh
MCP servers configured: dagster-docs-mcp, local_tools
Multiline mode: Enabled. Enter inserts newline, Alt-Enter submits text
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Readonly: .continue/rules/01-project.md .continue/rules/02-mcp.md
agent multi> /exit
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Readonly: .continue/rules/01-project.md .continue/rules/02-mcp.md
agent multi>
ERROR:asyncio:an error occurred during closing of asynchronous generator <async_generator object stdio_client at 0xffff9857c190>
asyncgen: <async_generator object stdio_client at 0xffff9857c190>
+ Exception Group Traceback (most recent call last):
| File "/home/avneesh.saxena/.local/share/uv/tools/aider-ce/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 781, in __aexit__
| raise BaseExceptionGroup(
| BaseExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "/home/avneesh.saxena/.local/share/uv/tools/aider-ce/lib/python3.12/site-packages/mcp/client/stdio/__init__.py", line 189, in stdio_client
| yield read_stream, write_stream
| GeneratorExit
+------------------------------------
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/avneesh.saxena/.local/share/uv/tools/aider-ce/lib/python3.12/site-packages/mcp/client/stdio/__init__.py", line 183, in stdio_client
anyio.create_task_group() as tg,
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/avneesh.saxena/.local/share/uv/tools/aider-ce/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 787, in __aexit__
if self.cancel_scope.__exit__(type(exc), exc, exc.__traceback__):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/avneesh.saxena/.local/share/uv/tools/aider-ce/lib/python3.12/site-packages/anyio/_backends/_asyncio.py", line 459, in __exit__
raise RuntimeError(
RuntimeError: Attempted to exit cancel scope in a different task than it was entered in
Issue
I am consistently seeing aider crash when I /exit out of it. The easiest way for me to reproduce this is to start aider and then /exit immediately. I give the following error:
Version and model info
Aider v0.88.14