ductor icon indicating copy to clipboard operation
ductor copied to clipboard

Agent stop doesn't actually stop agent

Open mjivani opened this issue 9 months ago • 2 comments

Telegram bot continues to show Typing even after agent has stopped.

mjivani avatar Feb 25 '26 08:02 mjivani

Exception ignored in: <function _ProactorBasePipeTransport.del at 0x0000021EEA16F100> Traceback (most recent call last): File "C:\Python313\Lib\asyncio\proactor_events.py", line 116, in del _warn(f"unclosed transport {self!r}", ResourceWarning, source=self) File "C:\Python313\Lib\asyncio\proactor_events.py", line 80, in repr info.append(f'fd={self._sock.fileno()}') File "C:\Python313\Lib\asyncio\windows_utils.py", line 102, in fileno raise ValueError("I/O operation on closed pipe") ValueError: I/O operation on closed pipe Exception ignored in: <function _ProactorBasePipeTransport.del at 0x0000021EEA16F100> Traceback (most recent call last): File "C:\Python313\Lib\asyncio\proactor_events.py", line 116, in del _warn(f"unclosed transport {self!r}", ResourceWarning, source=self) File "C:\Python313\Lib\asyncio\proactor_events.py", line 80, in repr info.append(f'fd={self._sock.fileno()}') File "C:\Python313\Lib\asyncio\windows_utils.py", line 102, in fileno raise ValueError("I/O operation on closed pipe") ValueError: I/O operation on closed pipe

this is after closing ductor

mjivani avatar Feb 25 '26 08:02 mjivani

Thanks for reporting this. The error trace you shared is a known Python 3.13 + Windows ProactorEventLoop issue — unclosed pipe transports logging warnings during shutdown.

v0.6.0 includes fixes for this:

  • Shutdown now kills active CLI processes before cleanup (prevents dangling pipes).
  • Async stdin feed fixes for Windows ProactorEventLoop edge cases.
  • CancelledError propagation fix in TypingContext (was causing the "still typing" ghost).

Please upgrade and test:

ductor upgrade

If the typing indicator still persists after /stop on v0.6.0, please open a new issue with the /diagnose output and we'll dig deeper.

PleasePrompto avatar Feb 26 '26 04:02 PleasePrompto