Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Text-to-image rendering suppresses asyncio task cancellation

Open Beginner friendly
#10,389 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@kilisamemarisaaa is already working on this.

Since Oct 5, 2026.

  • #10394 by @kilisamemarisaaa — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
80/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Read astrbot/core/utils/t2i/renderer.py and locate the BaseException handlers around awaited renderer work and the result-decoration text-to-image call. Check how cancellation and ordinary rendering errors are handled; done means cancellation propagates promptly while ordinary rendering errors still trigger fallback behavior.

Written by the indexing model from the issue text.

Description

The rendering path catches BaseException around awaited renderer work in astrbot/core/utils/t2i/renderer.py and falls back to local rendering. The result-decoration path also catches BaseException around the awaited text-to-image call. Because asyncio.CancelledError derives from BaseException, cancelling a request during remote rendering can be converted into fallback work or a normal response instead of stopping promptly.

Please propagate cancellation while retaining fallback behavior for ordinary rendering errors.

Dominant language
Python
Stars
41.4k
Forks
3k
Avg merge
1d 5h
Merged PRs (30d)
140

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AstrBotDevs/AstrBot

All issues in AstrBotDevs/AstrBot

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.