feat(gateway): accept .html / .htm in the document allowlist#12702
Open
handsdiff wants to merge 1 commit into
Open
feat(gateway): accept .html / .htm in the document allowlist#12702handsdiff wants to merge 1 commit into
handsdiff wants to merge 1 commit into
Conversation
1d4acd0 to
ab19e84
Compare
ab19e84 to
267bcd6
Compare
267bcd6 to
b105228
Compare
Same shape as the epub addition (NousResearch#12590). ``SUPPORTED_DOCUMENT_TYPES`` in ``gateway/platforms/base.py`` is the single allowlist used by every platform handler (telegram, slack, discord, feishu, whatsapp) to decide whether to cache an uploaded document. It rejected ``.html`` uploads at the gateway even though the ``ocr-and-documents`` skill's ``marker`` extractor already handles HTML alongside PDF/DOCX/PPTX/XLSX/EPUB. Add both ``.html`` and ``.htm`` → ``text/html`` so users can share saved web pages (Telegram's "share page as file" export, "Save As" HTML, email attachments) and the agent can actually read them. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
b105228 to
eab3752
Compare
handsdiff
added a commit
to handsdiff/hermes-agent
that referenced
this pull request
Apr 24, 2026
- ``fix/rehydrate-compaction-summary`` was wrong — actual branch is ``feat/rehydrate-compaction-summary``. Corrected everywhere. - Add ``feat/html-document-support`` (PR NousResearch#12702) to the open-PR table, rebase workflow, merge loop, and per-PR notes. Note the expected union-merge conflict with epub when rebuilding fork main. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Same pattern as #12590 (epub).
SUPPORTED_DOCUMENT_TYPESingateway/platforms/base.pyis the single allowlist used by every platform handler (telegram, slack, discord, feishu, whatsapp) to decide whether to cache an uploaded document. It currently rejects.htmluploads at the gateway — users trying to share saved web pages getUnsupported document type '.html'— even though theocr-and-documentsskill'smarkerextractor already handles HTML alongside PDF/DOCX/PPTX/XLSX/EPUB.Add
.html/.htm→text/html.Test plan
pytest tests/gateway/test_document_cache.py tests/gateway/test_telegram_documents.py— 58 pass