#10520·agno

[Bug]

Author: KrisWuli006Created Sep 24, 2026Updated Sep 30, 2026
Labelsbug

Description

WebsiteReader.async_read() calls synchronous chunking, so a custom chunking strategy that only implements achunk() fails instead of returning documents. Async-only strategies currently cannot be used with website ingestion at all — ingestion raises at the synchronous chunk() call.

The other reader paths are not affected: TextReader / MarkdownReader were already fixed in #9976. This is the separate WebsiteReader path.

Steps to Reproduce

Define a chunking strategy that implements achunk() but not chunk(). Pass it to WebsiteReader and call async_read(). Ingestion fails at the synchronous chunk() call instead of returning documents.

Agent Configuration (if applicable)

No response

Expected Behavior

async_read() should await the existing Reader.achunk_document() hook, so async-only strategies work during website ingestion.

Actual Behavior

The synchronous chunk() path is called, so any strategy that only implements achunk() raises instead of returning documents.

Screenshots or Logs (if applicable)

No response

Environment

markdown
- OS: macOS (Python 3.13.13)
- Agno Version: <必须填真实版本号>
- External Dependency Versions: pytest
- Additional Environment Details: 测试路径 libs/agno/tests                                                         grep -rn "version" /path/to/agno/pyproject.toml | head -3

Possible Solutions (optional)

Await Reader.achunk_document() in WebsiteReader.async_read().

A PR with this fix and regression tests is already open: #10136

Additional Context

Validation on macOS with Python 3.13.13 — all 44 tests passed after the fix:

bash
pytest libs/agno/tests/unit/reader/test_website_reader.py \
  libs/agno/tests/unit/knowledge/chunking/test_fixed_size_chunking.py \
  libs/agno/tests/unit/knowledge/test_reader_embedder_state.py -q

./scripts/format.sh and ./scripts/validate.sh both passed (Ruff, mypy, cookbook pattern check).