Commit Graph
1150 Commits
Author SHA1 Message Date
Thomas DurieuxandClaude Opus 5.5 3f8812c99e fix(logging): give raw GitHub failures an error code, log missing branches as warnings
Overnight, GitHub refusals reached the logs as bare HTTPError/UnknownError
with no code: a ZIP whose archive request was refused became a cut
connection and a 502 zip_not_available, a 401 while checking a file
became an uncoded 401, and an Octokit 403 on /options answered
internal_error.

- codeUpstreamError maps got/Octokit replies to repo_not_accessible,
  github_rate_limit_exceeded, github_unavailable or upstream_error;
  handleError applies it, the streamer file route uses the file-level
  mapping, and programming errors pass through unchanged.
- A ZIP that fails before any byte answers with the code, so the API
  relays it; 4xx archive refusals log at warn.
- branch_not_found (owner deleted the branch) logs at warn.
- Octokit's HttpError is an allowlisted error type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 07:52:23 +00:00
Thomas Durieux 351ed12b28 Merge pull request #992 from tdurieux/feat/admin-errors-ux
feat(admin): errors page built around issues, linked to repositories and users
2026-11-29 08:46:53 -08:00
Thomas DurieuxandClaude Opus 5.5 dff9f580ee Merge origin/main (#993) into feat/admin-errors-ux; rebuild bundles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 16:35:53 +00:00
Thomas DurieuxandClaude Opus 5.5 fdd8f58944 fix(admin): split uncoded errors by crash site, label signed-in visitors, scope external calls
- 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>
2026-11-29 16:35:34 +00:00
Thomas Durieux 16f79edbbf Merge pull request #993 from tdurieux/perf/readme-preview
perf(anonymize): show the README preview without waiting on the branch list
2026-11-29 08:33:31 -08:00
Thomas DurieuxandClaude Opus 5.5 d161d89cee perf(anonymize): show the README preview without waiting on the branch list
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>
2026-11-29 14:31:37 +00:00
Thomas DurieuxandClaude Opus 5.5 d3860f29ad fix(admin): group errors by code and service, list the routes that failed
- 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>
2026-11-29 13:55:02 +00:00
Thomas DurieuxandClaude Opus 5.5 c91e662034 Merge origin/main (#990, #991) into feat/admin-errors-ux; link users as id:<_id>, rebuild bundles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:39:52 +00:00
Thomas DurieuxandClaude Opus 5.5 588a0e6461 style(admin): space the errors toolbar from the list and its states
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 13:33:20 +00:00
Thomas DurieuxandClaude Opus 5.5 2abd6beaa9 feat(admin): errors page built around issues, linked to repositories and users
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>
2026-11-29 13:27:48 +00:00
Thomas Durieux 31a4eb015f Merge pull request #991 from tdurieux/feat/log-repo-user-context
feat(logging): record repository, user and viewer on log records
2026-11-29 05:18:41 -08:00
Thomas Durieux 540f9f86fe Merge pull request #990 from tdurieux/feat/external-request-logs
feat(logging): log each GitHub and external call with its status
2026-11-29 05:11:51 -08:00
Thomas Durieux cc5e06022f Merge remote-tracking branch 'origin/feat/external-request-logs' into HEAD
# Conflicts:
#	deploy/logging/sanitize.vrl
#	public/asset-manifest.json
#	public/script/vendor.min.js
#	src/core/log-record.ts
2026-11-29 13:11:41 +00:00
Thomas DurieuxandClaude Opus 5.5 d8a777cd35 fix(logging): keep reviewers unlinkable, look admin users up by explicit id
- 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>
2026-11-29 13:08:19 +00:00
Thomas DurieuxandClaude Opus 5.5 c9342e4b7d fix(logging): tell our cancellations from upstream resets, keep codes, catch cut bodies
- 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>
2026-11-29 13:05:23 +00:00
Thomas Durieux 7c9e803fbd Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	deploy/logging/sanitize.vrl
2026-11-29 13:03:03 +00:00
Thomas Durieux 7699759ab4 Merge pull request #989 from tdurieux/feat/table-analysis
feat(viewer): sort, filter, summarize, group and chart tables
2026-11-29 04:47:50 -08:00
Thomas Durieux de283d936a Merge pull request #984 from tdurieux/feat/viewer-toc-pr-layout
feat(viewer): outlines for gists and Markdown, rebuilt pull request page
2026-11-29 04:47:32 -08:00
Thomas DurieuxandClaude Opus 5.5 c281841f91 Merge origin/main into feat/log-repo-user-context; rebuild bundles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 12:38:00 +00:00
Thomas Durieux e821a127d4 Merge branch 'feat/viewer-toc-pr-layout' into HEAD
# Conflicts:
#	public/asset-manifest.json
#	public/css/all.min.css
#	public/css/style.css
#	public/partials/gist.htm
#	public/script/components.js
#	public/script/vendor.min.js
#	test/vue-ui.test.js
2026-11-29 12:36:33 +00:00
Thomas DurieuxandClaude Opus 5.5 86a35d62f1 feat(logging): record repository, user and viewer on log records
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>
2026-11-29 12:36:09 +00:00
Thomas DurieuxandClaude Opus 5.5 68239afbbb fix(tables): keep text placeholders as values, reset per file, bound scatter labels
- '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>
2026-11-29 12:35:46 +00:00
Thomas Durieux 85422b897a Merge remote-tracking branch 'origin/main' into feat/viewer-toc-pr-layout
# Conflicts:
#	public/asset-manifest.json
#	public/css/all.min.css
#	public/css/style.css
#	public/script/vendor.min.js
#	test/vue-ui.test.js
2026-11-29 12:34:42 +00:00
Thomas DurieuxandClaude Opus 5.5 023e3f9a51 fix(viewers): keep authors out of PR commits, branches and gist binaries
- 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>
2026-11-29 12:33:11 +00:00
Thomas Durieux ec30a05886 Merge pull request #983 from tdurieux/fix/workspace-polish
fix(ui): steady loading tabs, tidy picker footer, clearer preview caption and capped expiry
2026-11-29 04:20:11 -08:00
Thomas Durieux 4e622adea3 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	public/asset-manifest.json
#	public/script/vendor.min.js
2026-11-29 12:12:42 +00:00
Thomas Durieux 2f38fc6a51 Merge pull request #987 from tdurieux/fix/expected-errors-info
fix(logging): one record per failed file request, expected outcomes at info
2026-11-29 04:11:54 -08:00
Thomas Durieux 50657b58a8 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	public/asset-manifest.json
#	public/css/all.min.css
#	public/css/style.css
#	public/script/vendor.min.js
#	scripts/dev-mock.js
2026-11-29 12:05:37 +00:00
Thomas Durieux 0233d1ad0b Merge remote-tracking branch 'origin/main' into fix/expected-errors-info
# Conflicts:
#	deploy/logging/sanitize.vrl
#	public/asset-manifest.json
#	public/script/vendor.min.js
#	src/core/log-diagnostic-schema.ts
2026-11-29 12:03:42 +00:00
Thomas Durieux 088b91e69e Merge pull request #982 from tdurieux/feat/repo-list-sync
feat: store the repository picker list and update it by webhook
2026-11-29 04:01:52 -08:00
Thomas DurieuxandClaude Opus 5.5 e571268e56 feat(logging): record each outbound call to GitHub and other external services
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>
2026-11-29 11:57:28 +00:00
Thomas DurieuxandClaude Opus 5.5 364642afa8 fix(ui): show the caption Files button only when the window has none
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 11:56:55 +00:00
Thomas DurieuxandClaude Opus 5.5 ef2a1b8ecc fix(i18n): translate the new streamer error codes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 11:55:44 +00:00
Thomas DurieuxandClaude Opus 5.5 8524903a5b test(repo-list): cover the stale resync and blocking before picker writes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 11:55:04 +00:00
Thomas Durieux 07bdae9252 Merge remote-tracking branch 'origin/main' into feat/repo-list-sync
# Conflicts:
#	deploy/logging/sanitize.vrl
#	public/asset-manifest.json
#	public/script/vendor.min.js
2026-11-29 11:52:53 +00:00
Thomas DurieuxandClaude Opus 5.5 f12cde1400 fix(repo-list): block installations before picker writes, resync stale lists, clear on revoke
- 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>
2026-11-29 11:50:37 +00:00
Thomas DurieuxandClaude Opus 5.5 27802177b6 Merge origin/main into fix/workspace-polish; keep the Files button below 992px
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>
2026-11-29 11:50:00 +00:00
Thomas DurieuxandClaude Opus 5.5 0a0b579c13 fix(logging): keep uncoded streamer 4xx replies on the Errors page
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>
2026-11-29 11:47:06 +00:00
Thomas Durieux 5509b30b1b Merge remote-tracking branch 'origin/main' into fix/expected-errors-info 2026-11-29 11:44:26 +00:00
Thomas Durieux 2317544c5a Merge pull request #988 from tdurieux/fix/missing-error-codes
fix(logging): keep every thrown error code instead of a bare 400
2026-11-29 03:44:20 -08:00
Thomas Durieux 522bf9428e Merge pull request #986 from tdurieux/fix/client-abort-logging
fix: stop logging cancelled downloads as streamer 500s
2026-11-29 03:44:16 -08:00
Thomas Durieux 0405bbff21 Merge pull request #985 from tdurieux/fix/session-error-response
fix: return 404, not 502, to signed-in visitors of repos whose source is gone
2026-11-29 03:44:12 -08:00
Thomas DurieuxandClaude Opus 5.5 37a01257b3 fix(viewers): rounded table frame, per-column summary cells restored
- 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>
2026-11-29 10:36:59 +00:00
Thomas DurieuxandClaude Opus 5.5 4fc3a8b2df fix(viewers): summary row as the table's last row, identifiers left out
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>
2026-11-29 10:22:05 +00:00
Thomas DurieuxandClaude Opus 5.5 43e92bef53 feat(viewers): sort, filter, summarize, group and chart tables
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>
2026-11-29 10:04:19 +00:00
Thomas DurieuxandClaude Opus 5.5 c761fc6c17 fix: log each failed file request once, expected outcomes at info
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>
2026-11-29 09:29:14 +00:00
Thomas DurieuxandClaude Opus 5.5 63343c871c fix: keep every thrown error code in the logs
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>
2026-11-29 09:16:35 +00:00
Thomas DurieuxandClaude Opus 5.5 98bf382fa8 fix(viewers): GitHub-style threads, one-unit authors, shared slots and tabs, gist formats
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>
2026-11-29 09:13:08 +00:00
Thomas DurieuxandClaude Opus 5.5 0e3055fa9c fix(ui): name the expiry date in its option and reveal the input on Change date
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>
2026-11-29 09:08:03 +00:00
Thomas DurieuxandClaude Opus 5.5 1b20ffc2f0 fix: do not log a visitor who stops a cached download as a 500
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>
2026-11-29 09:05:51 +00:00