mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-05 08:10:39 +00:00
Extends the Run Files handler with the patch-only fallback branch. When the sandbox is unreachable (reconnect failed, provider not compiled in, or the base revision has been garbage-collected), the response now: - Reads RunProjection.final_patch (captured at run end by Unit 2 for both Success/PartialSuccess and now Failed runs) - Caps the patch at 5 MiB on a UTF-8 char boundary - Filters denylisted file sections out via a regex-level `diff --git` header scan (no full patch parser; the placeholder line kept so clients still render the surrounding context) - Picks the right degraded_reason: provider_unsupported for Docker- provider runs this build can't reconnect to, sandbox_gone for terminal runs, sandbox_unreachable for still-running ones - Populates meta.to_sha from conclusion.final_git_commit_sha and meta.total_changed from a `diff --git` header count When final_patch is absent (old Failed runs, projection write failures), returns the empty envelope that the UI maps to R4(c). Refs plan docs/plans/2026-04-19-002-feat-run-files-changed-tab-plan.md Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| crates | ||
| packages/fabro-api-client | ||