Skip to content

[ImgBot] Optimize images#1

Open
imgbot[bot] wants to merge 1 commit intomainfrom
imgbot
Open

[ImgBot] Optimize images#1
imgbot[bot] wants to merge 1 commit intomainfrom
imgbot

Conversation

@imgbot
Copy link

@imgbot imgbot bot commented Jan 25, 2026

Beep boop. Your images are optimized!

Your image file size has been reduced by 6% 🎉

Details
File Before After Percent reduction
/docs/articles/Architecture Diagram (github readme) (2).jpg 252.58kb 236.21kb 6.48%
/docs/assets/aden-architecture-diagram.jpg 252.58kb 236.21kb 6.48%
Total : 505.16kb 472.41kb 6.48%

📝 docs | :octocat: repo | 🙋🏾 issues | 🏪 marketplace

~Imgbot - Part of Optimole family

*Total -- 505.16kb -> 472.41kb (6.48%)

/docs/articles/Architecture Diagram (github readme) (2).jpg -- 252.58kb -> 236.21kb (6.48%)
/docs/assets/aden-architecture-diagram.jpg -- 252.58kb -> 236.21kb (6.48%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
ap-dev-github pushed a commit that referenced this pull request Feb 2, 2026
Changes based on Copilot AI review (3 issues):

1. Increased thread join timeout (Issue #1):
   - Changed from 2 to 5 seconds
   - Made proportional to cleanup timeout
   - Defined as class constant _THREAD_JOIN_TIMEOUT

2. Handle asyncio.CancelledError explicitly (Issue adenhq#2):
   - Added separate except clause for CancelledError
   - Logs specific warning for cancelled cleanup
   - Re-raises CancelledError as per asyncio best practices
   - Added for both session and stdio_context cleanup

3. Increased cleanup timeout to match connection timeout (Issue adenhq#3):
   - Changed from 5 to 10 seconds (matches _connect_stdio timeout)
   - Defined as class constant _CLEANUP_TIMEOUT
   - Prevents incomplete cleanup with slow MCP servers
ap-dev-github pushed a commit that referenced this pull request Feb 2, 2026
Changes based on Copilot AI review (2 issues):

1. Thread join timeout was shorter than cleanup timeout (Issue #1):
   - Changed _THREAD_JOIN_TIMEOUT from 5 to 12 seconds
   - Must be >= cleanup timeout (10s) plus buffer for loop.stop()
   - Prevents thread abandonment during active cleanup

2. Added detailed comment for redundant None assignments (Issue adenhq#2):
   - Explained why we set _session/_stdio_context to None even if
     _cleanup_stdio_async() already did it
   - Documents the safety cases: timeout, failure, skip, cancellation
   - Makes code intent clear for future maintainers
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