Repository navigation
fix(platform): show a failed website scan as a red alert with its reason - #4064
Conversation
The website details dialog showed a failed scan as a muted caption with the stored reason only on `title`, where nobody found it. It is now a destructive Alert with the reason beneath: the embedding provider's own sentence inline, any other dump under "Technical details". The crawl action records the embedding failure's class in the reason (`[credential]`, `[credit]`, `[unresolved]`, `[dimension]`, `[upstream]`) so the dialog can say whom to ask.
|
Observed live on the local dev stack running this branch (2026-10-02 12:18 CST), after a
|
…ll lane A lane that never settles held the Backend integration job until CI's 30-minute wall, which names no lane. Each lane now runs under a 10-minute deadline and the probes between lanes under 2 minutes; a breach truncates the run under the lane's own name. The step trace in checkBellHintWire is temporary, to pin the hung await in CI.
Backend integration: the two 30-minute wallsBoth runs on 21455bf (02:36 and 03:40 UTC) went silent 4 s after What was tried:
So this is a CI-only race between the end of What stays in this PR: |
A website whose scan failed showed its reason as a muted caption ("The embedding model couldn't process the pages.") with the stored reason only on
title, so a reader had to hover one small grey line to learn what actually went wrong. Nobody found it.What changed
Alert(red tint, icon), as a failed automation run is shown: the one-line reason as its title, what to do beneath it, and the stored reason itself. The embedding provider's own sentence (401 User not found.) reads inline; any other dump (sandbox JSON, DNS syscalls) is folded under Technical details. Nothing sits ontitleany more. Applies to both the hollow scan (nothing indexed) and a site that already has pages.The embedding model could not embed the pages [credential]: 401 User not found.(credential,credit,unresolved,dimension,upstream). The dialog reads it back to say whom to ask: a rejected credential sends an admin to Settings → AI providers, a billing refusal to the provider's account, an outage to Scan now later, a vector-width mismatch to Settings → Data residency. A reason stored before the class was recorded keeps the model's setting as the hint.websites.viewDialog.scanDetail.*andwebsites.viewDialog.technicalDetailsin en/de/fr;scanEmpty.embeddingretired (the plain "Nothing was indexed." plus the class hint replaces it).[<class>]token inmetadata.lastSyncError.KNOW-F18describes the Alert, the hint and the fold;reference/automation.mdrow updated.Proof
backend/core/knowledge/crawl_action.vectors.test.tsexpects the class token per failure (15 pass); backend crawl + websites suites 168 pass.app/features/websitesUI tests 92 pass, including: the hollow runtime dump is under a closed<details>and not ontitle; the embedding sentence is visible; the[credential]token picks the AI-providers hint and never renders.error-message-description,single-failure-toast), locale parity (lib/i18n/messages.test.ts),check-guideon the knowledge suite,lint:manual,oxlint --type-aware,tsc --noEmit,format:check: all green.