Skip to content

fix(import): word content-conversion errors accurately, not "PDF service" (#503) - #508

Merged
shadowbrush merged 1 commit into
mainfrom
fix/503-content-conversion-error-wording
Jul 6, 2026
Merged

shadowbrush merged 1 commit into
mainfrom
fix/503-content-conversion-error-wording

Conversation

@shadowbrush

Copy link
Copy Markdown
Member

Closes #503 (client-facing wording half; the prod unblock was a hadrontool-pdf redeploy — see below).

Problem

importNode converts inline content at the write seam via the hadrontool-pdf service:

Both surfaced any non-2xx as PDF service error (N). So a web-page clip that failed showed the user a "PDF service" error for a web page — confusing (#503).

Change

Reword the two import/conversion paths (convertHtmlToMarkdown, convertPdfToMarkdown) to "Content conversion service …" (error / unreachable / timed out / bad-response). renderMarkdownToPdf — the actual markdown→PDF export — keeps "PDF service …" wording, since that one really is PDF export. The module docstring now notes the client serves both directions.

extensions.code values are left unchanged (PDF_SERVICE_ERROR, PDF_SERVICE_UNREACHABLE, PDF_SERVICE_BAD_RESPONSE, PDF_SERVICE_NOT_CONFIGURED) so the Chrome extension's programmatic error handling is unaffected — only the human-facing message string changes.

Scope / context

This is the cosmetic half of #503. The actual P1 was operational: the deployed hadrontool-pdf image (0.0.1) predated the /convert/html-to-markdown route, so web-page clips 404'd. That's been fixed out-of-band on alpha — the tool was rebuilt/redeployed (0.0.2), and the two Komodo config gaps that stopped the auto-deploy (missing GitHub build webhook + redeploy_on_build: false) were corrected. A CI gate was also added to hadrontool-pdf (hadron-memory/hadrontool-pdf#2).

Test

  • tsc --noEmit clean.
  • resolvers.importNode + resolvers.createUpdateNode suites: 40 passed. No test asserted the old message strings.

🤖 Generated with Claude Code

…ice" (#503)

importNode converts inline content at the write seam via hadrontool-pdf:
text/html → /convert/html-to-markdown (#476), application/pdf →
/convert/pdf-to-markdown (#488). Both surfaced failures as "PDF service
error (N)", so a web-page clip that 404s (deployed tool predates the
convert route, or PDF_SERVICE_URL misconfig) showed users a confusing
"PDF service" message for a web page.

Reword the two import/conversion paths to "Content conversion service …"
while leaving renderMarkdownToPdf (actual markdown→PDF export) as "PDF
service …". extensions.code values are kept stable (PDF_SERVICE_ERROR,
PDF_SERVICE_UNREACHABLE, PDF_SERVICE_BAD_RESPONSE) so the Chrome
extension's error handling is unaffected.

Note: the P1 404 root cause is operational (redeploy/reconfigure
hadrontool-pdf so the convert routes exist at PDF_SERVICE_URL) — this
only clarifies the surfaced message.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the error messages in src/lib/pdfClient.ts to refer to the 'Content conversion service' instead of the 'PDF service' when performing HTML-to-markdown or PDF-to-markdown conversions. This prevents confusing users during web-page clipping or PDF imports. The module documentation and internal comments have also been updated to reflect this distinction. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@shadowbrush
shadowbrush merged commit 352870a into main Jul 6, 2026
4 checks passed
@shadowbrush
shadowbrush deleted the fix/503-content-conversion-error-wording branch July 6, 2026 01:49
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.

importNode web-page clip fails: PDF service error (404) on /convert/html-to-markdown

1 participant