fix(web): stop the worktree setup card from flashing and shifting (#12015)

Co-authored-by: Claude Fable 5 <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Fable 5 authored and GitHub committed 2026-09-15 22:19:27 -07:00
1 parent fe896e6a90
commit 0f5a1513e0
14 files changed
+629 -385

No files matched your search

@@ -258,7 +258,13 @@ export const make = Effect.gen(function* () {
}
if (event.type === "output") {
lineBuffer += event.data;
const lines = lineBuffer.split(/\r?\n/);
// A bare carriage return is how installers redraw a progress line in
// place; each redraw becomes a short line of its own instead of
// being glued into one long one. The wrapper echo is filtered per
// segment too, which is why `echoedWrapperLines` is split on the
// same `\r`: a line editor repainting the typed command yields the
// same segments.
const lines = lineBuffer.split(/\r\n|\r|\n/);
lineBuffer = lines.pop() ?? "";
// A script that never prints a newline must not grow this forever.
// The sentinel is always on its own line, so keeping the tail is safe.