Skip to content

fix(chips): leave an image to the reader's browser when its server errors - #387

Merged
onmax merged 2 commits into
mainfrom
fix/chips-server-error
Nov 9, 2026
Merged

onmax merged 2 commits into
mainfrom
fix/chips-server-error

Conversation

@onmax

@onmax onmax commented Nov 9, 2026

Copy link
Copy Markdown
Owner

github.com/<login>.png has been answering HTTP 504 for some logins since yesterday (danielroe every time today, antfu some of the time). comark-chips reads any error status as "this image doesn't exist", so @danielroe gets "there's no avatar at https://github.com/danielroe.png?size=64 (HTTP 504). Check the GitHub login" and no image. The docs build stops on that issue, so check / build fails on every PR right now (#386, #383).

download() in src/images.ts throws Missing for every non-OK response, and inline() turns that into a status the plugin reports. A 5xx says nothing about whether the account exists, so it now fails like a dropped connection: a cached copy if there is one, otherwise the URL for the reader's browser, and no issue. A 404 still reports a missing avatar, and a 429 still reports the rate limit.

The new test in chips.test.ts fails on main and passes here.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T06:00:02.696252Z
We couldn’t complete this review. Comment @codex review to try again.
9cab84e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vite-hub

vite-hub Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Cancelled Not started —

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

Session

Waiting for review checks before the next pass.

@pullfrog pullfrog 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.

ℹ️ No P0 or P1 findings remain — one small documentation gap is worth fixing.

Reviewed changes in 9cab84e cover the image-download failure classification and its public parse-and-render regression test.

  • Transient server errors — HTTP 5xx responses now use the existing network-failure path, preserving a stale cached image when available or leaving the URL for the reader's browser.
  • Client errors preserved — HTTP 4xx responses still retain their status-driven missing-avatar and rate-limit behavior.
  • Regression coverage — a GitHub avatar returning 504 is verified to render its remote URL without adding an issue.

ℹ️ The documented HTTP-error contract is now too broad

P2 — Class: public docs still classify every avatar HTTP error as reportable. For an avatar URL returning 504, the implementation now deliberately renders the URL with no issue, while both the package page and README still tell users that an HTTP error is reported.

Technical details
# Narrow the documented avatar-error behavior

## Affected sites
- `packages/chips/docs/index.md:187` — says an avatar answering with any HTTP error is added to `meta.issues`.
- `packages/chips/README.md:29` — makes the same package-level promise.

## Required outcome
- Document that definitive client errors, such as a missing account, are reported while server errors are left for the reader's browser without an issue.

Pullfrog  | Fix it ➔ | View workflow run | Using gpt-5.6-sol | 𝕏

@pullfrog pullfrog 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.

✅ No new issues found. No P0 or P1 findings remain.

Reviewed changes since the prior Pullfrog review covered the documentation correction in ffc967d.

  • Narrowed the README contract — documented that server failures leave image loading to the reader while client failures such as 404 remain reportable.
  • Clarified package validation guidance — distinguished transient server errors from missing-avatar client errors on the chips documentation page.

Pullfrog  | View workflow run | Using gpt-5.6-sol | 𝕏

@pkg-pr-new

pkg-pr-new Bot commented Nov 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@387

comark-badge

pnpm add https://pkg.pr.new/comark-badge@387

comark-cards

pnpm add https://pkg.pr.new/comark-cards@387

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@387

comark-cast

pnpm add https://pkg.pr.new/comark-cast@387

comark-charts

pnpm add https://pkg.pr.new/comark-charts@387

comark-chat

pnpm add https://pkg.pr.new/comark-chat@387

comark-chips

pnpm add https://pkg.pr.new/comark-chips@387

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@387

comark-code

pnpm add https://pkg.pr.new/comark-code@387

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@387

comark-colors

pnpm add https://pkg.pr.new/comark-colors@387

comark-comments

pnpm add https://pkg.pr.new/comark-comments@387

comark-critic

pnpm add https://pkg.pr.new/comark-critic@387

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@387

comark-details

pnpm add https://pkg.pr.new/comark-details@387

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@387

comark-diff

pnpm add https://pkg.pr.new/comark-diff@387

comark-embed

pnpm add https://pkg.pr.new/comark-embed@387

comark-fields

pnpm add https://pkg.pr.new/comark-fields@387

comark-figure

pnpm add https://pkg.pr.new/comark-figure@387

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@387

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@387

comark-github

pnpm add https://pkg.pr.new/comark-github@387

comark-icon

pnpm add https://pkg.pr.new/comark-icon@387

comark-include

pnpm add https://pkg.pr.new/comark-include@387

comark-keys

pnpm add https://pkg.pr.new/comark-keys@387

comark-links

pnpm add https://pkg.pr.new/comark-links@387

comark-linter

pnpm add https://pkg.pr.new/comark-linter@387

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@387

comark-mark

pnpm add https://pkg.pr.new/comark-mark@387

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@387

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@387

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@387

comark-media

pnpm add https://pkg.pr.new/comark-media@387

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@387

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@387

comark-outline

pnpm add https://pkg.pr.new/comark-outline@387

comark-properties

pnpm add https://pkg.pr.new/comark-properties@387

comark-qr

pnpm add https://pkg.pr.new/comark-qr@387

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@387

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@387

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@387

comark-sources

pnpm add https://pkg.pr.new/comark-sources@387

comark-steps

pnpm add https://pkg.pr.new/comark-steps@387

comark-table

pnpm add https://pkg.pr.new/comark-table@387

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@387

comark-tests

pnpm add https://pkg.pr.new/comark-tests@387

comark-time

pnpm add https://pkg.pr.new/comark-time@387

comark-ui

pnpm add https://pkg.pr.new/comark-ui@387

comark-xref

pnpm add https://pkg.pr.new/comark-xref@387

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@387

commit: ffc967d

@onmax
onmax merged commit b156c45 into main Nov 9, 2026
6 checks passed
@onmax
onmax deleted the fix/chips-server-error branch November 9, 2026 06:17
@github-actions github-actions Bot mentioned this pull request Nov 9, 2026
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