Repository navigation
fix(chips): leave an image to the reader's browser when its server errors - #387
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Latest result Pull request merged. Final answersSession 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. |
There was a problem hiding this comment.
ℹ️ 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
5xxresponses 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
4xxresponses still retain their status-driven missing-avatar and rate-limit behavior. - Regression coverage — a GitHub avatar returning
504is 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.gpt-5.6-sol | 𝕏
There was a problem hiding this comment.
✅ 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
404remain reportable. - Clarified package validation guidance — distinguished transient server errors from missing-avatar client errors on the chips documentation page.
gpt-5.6-sol | 𝕏
comark-annotate
comark-badge
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |

github.com/<login>.pnghas been answering HTTP 504 for some logins since yesterday (danielroeevery time today,antfusome of the time). comark-chips reads any error status as "this image doesn't exist", so@danielroegets "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, socheck / buildfails on every PR right now (#386, #383).download()insrc/images.tsthrowsMissingfor every non-OK response, andinline()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.tsfails on main and passes here.