Skip to content

fix: keep looping animations moving between scenes - #60

Merged
karngyan merged 1 commit into
mainfrom
fix/scene-time-through-gap
Oct 10, 2026
Merged

karngyan merged 1 commit into
mainfrom
fix/scene-time-through-gap

Conversation

@karngyan

Copy link
Copy Markdown
Collaborator

What was wrong

Between two scenes there is a short silence gap. During that gap, the scene clock stopped at the end of the narration. So every animation froze, including looping ones like data moving from one box to another. The scene looked stuck until the next scene started.

The cause is localTime: it stopped scene time at audioDuration, not at the scene's end.

What this PR changes

  • Change localTime to stop at scene.end - scene.start, so the clock keeps running through the gap.
  • Update the test: inside the gap, time now goes past audioDuration, and it still stops at the scene's end.
  • Update the README and the comment in protocol.ts, which said the scene holds still during the gap.
  • Add a changeset (minor).

Cue progress (p, after, between) already stops at its end value. So anything driven by cues looks the same as before. Only animations that loop on the raw time keep moving.

One thing changes for scenes: a scene that reads the raw time and does not limit it to duration now sees values past duration during the gap.

How I tested it

  • pnpm test: 267 tests pass.
  • pnpm typecheck and pnpm lint pass.

After release, I will bump kino in chiron and check the scene changes in a chiron guide in the browser.

🤖 Generated with Claude Code

The scene clock stopped at the end of the narration. In the silence gap
after it, every scene froze, so data moving between two boxes stopped
until the next scene began. The clock now runs up to the scene's end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
kino 8f2ea0a Commit Preview URL

Branch Preview URL
Oct 10 2026, 10:44 AM

@karngyan
karngyan merged commit 39fd631 into main Oct 10, 2026
5 checks passed
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