Skip to content

scripts: a lane that starts between two ticks of the live runner has spent nothing yet - #411

Merged
shreeve merged 1 commit into
mainfrom
scripts/live-negative-time
Sep 23, 2026
Merged

shreeve merged 1 commit into
mainfrom
scripts/live-negative-time

Conversation

@shreeve

@shreeve shreeve commented Sep 23, 2026

Copy link
Copy Markdown
Owner

bun run test:tui stopped on its first real run with rip/tui: color: "#14cf116" is not a color.

The board reads its time once a clock tick, and a lane stamps its start as it arrives, so a lane that starts between two ticks had spent a negative time for one frame. Its fill went below zero, the cyan-to-green gradient extrapolated past the end of the range (a channel of 278), and the run's share went negative too — the terminal's progress indicator would have refused -0.1 next.

A lane's time spent is at least zero, in its row and in the run's share, and the gradient clamps its position to 0–1. A pin in packages/tui/test/live.rip starts a lane after the board's last tick and holds that the frame draws, with no color of seven digits; it fails without the fix.

…spent nothing yet, so its bar, its color and the run's share stay in range
@shreeve
shreeve merged commit 698e54f into main Sep 23, 2026
2 checks passed
@shreeve
shreeve deleted the scripts/live-negative-time branch September 23, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant