Repository navigation
fix: promote a servable logo when pages have no header wordmark - #1
Open
replynodes-ai wants to merge 1 commit into
Open
replynodes-ai wants to merge 1 commit into
replynodes-ai wants to merge 1 commit into
Conversation
find_logo only accepted a header or nav image whose class, id, or alt contained "logo", so apple-touch icons, sized favicons, and empty challenge pages came back with logo_url unset. Prefer an explicit wordmark, then a raster Organization logo, then the best raster icon, then a public favicon for the page host. Co-authored-by: replynodes <dnanh2011@gmail.com>
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.
Why
extract_brandsetlogo_urlonly from a header or nav<img>whose class, id, or alt contains "logo". Homepages that publish the mark as an apple-touch icon or a sized favicon (Stripe, Notion, Linear, GitHub, Figma, Vercel, and others) came back withlogo_url: null. A challenge page or empty shell (what OpenAI, Apple, Amazon, NVIDIA, and Atlassian returned to the fetcher on 16 Nov 2026) had no icon URL at all, so both the JSON route andimg.replynodes.comfell through to a placeholder.What changed
crates/webclaw-core/src/brand.rsnow chooseslogo_urlin this order:https://www.google.com/s2/favicons?domain={host}&sz=128when the page has a host and nothing above exists.favicon_urlprefers a raster icon over the first<link rel="icon">when that first icon is SVG. A page with no base URL still leaveslogo_urlempty.Sample (16 Nov 2026, keyless, 22 domains)
Before, on production, which still runs the pinned webclaw binary:
GET /v1/brand/logologo_urlset: 5/22 (slack.com, microsoft.com, dropbox.com, discord.com, shopify.com)img.replynodes.comnon-placeholder: 15/22After, on fixtures of that same markup in
cargo test -p webclaw-core --lib(331 passed): every icon-only and empty fixture gets alogo_url(22/22). This is not a production deploy.Other repo
replynodes/replynodes-fetcherownsapi.replynodes.com/v1/brand/logoandimg.replynodes.com. It runs this crate as a pinned, unmodified binary (services/webcontext-fetcher/provider-runtime). Shipping this commit does not change production until that pin moves. The gateway PR mirrors this selection so the live routes can improve before the pin bump.This repository (
replynodes/replynodes-brand-logo-fetch) is the retired skill and does not serve either route.