- Errors without a code are grouped by their first app stack frame (or the
logging module), so unrelated TypeErrors no longer share one issue.
- "visitor" is a signed-in user with no role on the repository; it is no
longer shown as "not signed in". Anonymous viewers are counted apart.
- The issue page no longer offers "Open user" next to "Open repository":
users and repositories are counted from different records.
- With a service, repository or user filter, failed external calls are looked
up by the faults' request IDs instead of the newest 2000 calls overall.
- The page says when the 2000-failure cap was reached.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The preview rendered only after repo details, the full branch list and the
README loaded one after another. The early README fetch was usually
discarded and fetched again, the README endpoint listed every branch from
GitHub first, and preview calls were slowed down after 50 API requests.
Render as soon as the README and details are in, keep a default-branch
README once that branch is selected, skip identical preview requests,
fetch the README by branch name on a cache miss, and drop the slowdown on
the CPU-only preview endpoint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- An issue is now one error code (or exception type) per service: one cause,
such as a rate-limit burst, hits many routes. Rows show the most frequent
route and "+N routes"; the issue page lists them with a count and a bar.
- The request header shows the viewer as a role ("Viewer: owner", "Viewer not
signed in") beside the owner chip, with a user link only for another user.
- List meta parts no longer leave a lone separator when they wrap.
- The issue page shows the 10 latest occurrences and a "Show all" button
instead of clipping the list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The admin Errors page now shows one list of issues: records grouped by error
code (or exception type), service and route, each with a plain-language title,
a likely cause, its impact (failures, repositories, users), a trend and when it
was last seen. Expected 4xx answers sit in a collapsed group; slow and
interrupted requests are left out and counted, with a link to Performance.
- GET /api/admin/errors/issues groups server-side (admin-error-issues.ts). It
reads central logs when they answer and the Redis history otherwise, accepts
validated repoId/userId/service/window filters and resolves repository
owners and user names when the database is connected.
- The cause is derived from external_request records of the same requests
(#990 field names), fast 429s, storage and network codes, and the first
application stack frame; otherwise it says nothing is known.
- Issue page (?issue=) with cause, affected repositories and owners, who hit
it, failures over time and occurrences. Request view (&occurrence=) with a
waterfall from the existing correlation lookup and Request, Exception and
All fields tabs; missing data shows as "not recorded".
- Repositories (search = one repoId) and user admin pages list their issues,
with a "failing now" banner.
- The source switch, export, clear history, telemetry and 24-hour counters
move to a collapsed "Settings and diagnostics" section.
- Synthetic fixtures shared by dev-mock and preview-errors; old errors-page
CSS removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Requests carry userId on warn and error records only. The app calls
/api/user on every page load, so a userId on routine info records sat
next to the repoId a signed-in reviewer opened, and timestamps linked
them. Jobs keep it at every level. Logger, collector and the admin
projection apply the same rule.
- Admin user routes take an _id only as id:<_id>; a 24-hex GitHub login
can no longer match another account's _id for ban or promote.
- The download-job expectation includes the owner id the PR adds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A request we destroy ourselves is ABORT_ERR, not ECONNRESET, and a
fetch abort is ABORT_ERR rather than upstream_error.
- undici and DNS codes the schema lacks (UND_ERR_SOCKET, EAI_AGAIN, ...)
fold into the closest kept code, so a failure always has one.
- node:http records are written when the body ends: a stream cut after
its headers logs ECONNRESET with its status instead of a plain 200.
- Successful storage reads log at debug to keep info volume down.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Handlers that resolve an anonymized repository, pull request or gist now
put its public ID on the log context, so request, job and error records
carry repoId, pullRequestId or gistId. The signed-in user's internal _id
(userId) is recorded on account routes. On routes that serve anonymized
content, userId is kept only when the user owns, co-authors or
administers the project; otherwise the record carries viewer "visitor"
or "anonymous" and no userId. The collector, the Redis mirror and the
admin log APIs apply the same rule. Jobs carry repoId and the owner's
userId stamped at enqueue time.
The admin Errors page links repoId to the admin repository search and
userId to the admin user page, which now accepts a user _id.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 'none', 'NA' and '-' are empty only in number and date columns; in
text columns they are categories.
- The table viewer is keyed per file, so a search or filter in one CSV
doesn't carry over to the next.
- A scatter chart with more than 500 text x values is refused instead of
measuring every label (and spreading 100k values into Math.max).
- Gist CSV rows are cached per file object instead of a 1 MB string key
built on every render.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Commit messages lose sign-off and co-author trailers, e-mail addresses
and the fork owner in merge headlines; without the origin option merge
headlines lose branch names too.
- Branch names are shown only with the origin option.
- Gists keep only images (hidden unless images are displayed); other
binaries are never stored or served. Images share an 8 MB budget so the
gist document stays under MongoDB's limit, and an unreadable image no
longer fails the whole gist.
- Review threads match the diff side, and outdated comments go to the end
of their file instead of an unrelated line.
- The diff parser no longer reads a removed '-- ' line as a file header.
- Each diff file renders as its own component from escaped HTML, so large
diffs don't re-render on scroll or collapse.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One info record per HTTP request to an external host (fetch and node:http),
with method, host, a fixed endpoint label, status or error code, duration and
the caller's requestId. Internal hops are skipped. Labels keep only literal
segments, so no owner, repository, path or identifier is logged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A failed picker write no longer skips blocking a deleted or suspended
installation: the list update now runs after it.
- Lists older than 12 hours resync in the background, covering new org
installs, OAuth lists and missed or reordered deliveries.
- Revoking a grant clears the stored list first, and a revoked App
authorization webhook clears it too.
- The name index includes repositoryId to match the picker sort.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The caption's Files button was the only way to open the file tree on
narrow screens when the preview shows no file (no README, loading, error).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An uncoded 4xx comes from something in front of the streamer (body-size
limit, ingress, wrong entrypoint), so it is now streamer_unexpected_response
(502, error) rather than an info-level file_not_found. The streamer's
catch-all route gets its own code so a misrouted call logs at warn.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The table's scroll box is now its rounded frame (border, 8px radius,
clipping): the sticky header and the summary row are clipped to the
same corners top and bottom, and the box ends at the summary row, so
no row shows below it. In gists the frame keeps its border.
- The summary row is back to its earlier content: Σ in the row-number
column, a small "Avg ▾" select before each numeric value, "N distinct"
under text columns, in muted labels with semibold right-aligned
values. The single row-wide select is gone.
- Identifier columns (seed, run...) stay empty, with "Treat as number"
in the column menu.
- Markdown and notebook tables use the same cells: Σ in a first text
column, "Avg ▾" per numeric column, distinct counts muted.
- "Show more" sits under the frame instead of inside the scroll box.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CSV summary row read as a floating card: rounded, a repeated "Avg"
label in every cell, distinct counts under text columns and an average
of the seed column.
- The footer follows the column grid: square edges, a 2px top rule and
the header's solid fill. It stays at the bottom of the scroll area,
which no longer has vertical padding, so no rows show past it; a
short table ends on it.
- One "Average" select in the first column (or the row-number column)
sets the aggregate for every numeric column. Cells show only the
value, right-aligned, semibold. A column can override it from its
menu, marked by a small label in its cell.
- Text, date and identifier columns are empty in the footer; their
distinct counts stay in the column menu.
- Identifiers (seed, id, run, fold, index, year by name, or small
consecutive whole numbers that repeat) are left out of the summary,
group averages and default charts. "Treat as number" in the column
menu brings one back (#table:num=seed).
- Markdown and notebook tables get the same footer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CSV/TSV viewer (explorer, gists, the author's preview) becomes an
analysis view that runs on the anonymized text already in the page:
click-to-sort headers (numbers, dates, natural text; stable, empty cells
last), a search box and per-column range or value filters, a summary row
(Average by default; Sum, Median, Min, Max, Count, Std dev) over the
filtered rows, group by with an aggregate, column stats with a histogram,
copy as CSV or Markdown and download of the current view, and a Chart
view (bar, line, scatter) drawn in inline SVG. The view lives in the URL
fragment (#table:group=model, #table-2:... for a gist file) so a link
can carry it; links without it open as before.
Markdown and notebook tables (pandas DataFrames) get sortable headers,
an optional summary row and "Open as table" for the full view.
Redaction slots keep rendering; sorting uses the XXXX-n text.
The 1 MB limit holds: rows render 200 at a time as one escaped HTML
string while aggregates, filters and charts use every row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A streamer error such as repo_not_found produced three warnings: the
streamer's handleError, the API's streamer_fetch_failed and the API's
handleError. Expected client outcomes (repo_not_found, repository_expired,
file_not_found, github_app_access_required, ...) were all logged at warn,
which filled the admin Errors page.
- handleError picks the level with errorLogLevel: codes in
EXPECTED_CLIENT_ERRORS with a 4xx status log at info; other 4xx (rate
limits, token_expired, validation) stay warn and 5xx stay error.
- The streamer passes { internal: true }: expected outcomes drop to debug
there because the API logs the request's end state. Faults keep their
level and the streamer-side stack. Its direct 400 replies now go through
handleError so they are logged too.
- The API no longer logs streamer_fetch_failed or streamer_zip_fetch_failed.
The relayed error carries upstreamStatus, and when the streamer's coded
reply shows it already logged the failure, the API logs it at info.
Every record keeps requestId, so the chain can still be found by request.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The logger keeps errorCode only for allowlisted codes, and so does the
collector (sanitize.vrl). Both lists are maintained by hand, so codes
added since then were dropped and logged as a bare 400. Among them:
invalid_billing_expiration (billingError), invalid_auth_state
(appError), streamer_unreachable, github_unavailable, user_banned and
most billing and GitHub App codes, 41 in all.
scripts/generate-log-diagnostics.js now collects the codes passed to
AnonymousError, billingError and appError, plus codes assigned to an
errCode/code variable. It writes them to LOG_THROWN_ERROR_CODES, which
the logger accepts, and appends them to the collector's errorCode
allowlist. A test fails when a thrown code is missing from either list.
Regenerating also refreshes source function names that had gone stale
(jsDelivrFileUrl, ownerGitHubAccessRequired, ...), whose stack frames
the collector was dropping.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review threads: one container in the code column with comments divided by
rules; replies keep the first comment's indent (no nested cards). The
Conversation tab uses the same thread.
A fully redacted author renders as its slot alone, centred with the avatar
and date. Slots outside rendered Markdown use the explorer's .redact-slot
at the running-text alignment (.04em). PR and gist tabs drop the 2px
transparent border so the shared #949 line spans the label and count and
sits on the bar's rule.
Gists: each file renders with the explorer's viewers (Markdown, code,
notebook, CSV/TSV table, image, SVG, PDF, video, audio, binary and
too-large states), with a Preview/Source toggle where they differ and
Raw, copy and download. Binary gist files are now stored as base64 and
passed through unchanged; images follow the "Display images" option.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dated option now reads "Expire on Apr 29, 2027" with a muted line
below ("In 5 months · Maximum on your plan", or the conference, Extended
expiration or saved-date reason). "Change date" sits beside the option
and reveals the bounded date input inline; an invalid date reveals and
focuses it, also on submit (forms.js dispatches a "reveal" event to a
hidden invalid field). The date and "After expiry" rows share one label
column, and "Never expire" keeps the same text edge. Without a plan
limit the option reads "Expire on a date" with the input shown.
A saved date on the same day as an Extended expiration limit keeps the
add-on as the reason.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shared cache sends blobs with pipeline(stream, res). When the client
goes away, pipeline rejects with ERR_STREAM_PREMATURE_CLOSE. The
response is destroyed but req.aborted is false (the POST body was read),
so isResponseCancellation did not match and handleError logged a
code-less Error with httpStatus 500.
Watch the response and the source before piping. If the response closed
unfinished before the source failed, rethrow as response_cancelled, which
handleError already skips. A source that errors or closes without ending
still surfaces as a fault.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a session cookie, express-session's res.end writes all but the last
body byte and sends that byte after the Redis touch. In between,
headersSent is true and writableEnded is false, so the res.destroy()
that followed handleError cut the API's own 404 reply. Nginx then saw
no response header and returned 502 to logged-in visitors of repos
whose source is gone.
Decide whether to cut the response from headersSent before handleError
replies, as the zip proxy already does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>