Repository navigation
Agent Flow: replay builds new floors in their step (#413) - #440
Merged
Merged
Conversation
…eir step The codexr-city component copied the whole city API onto itself, tick included, so A-Frame called city.tick(time, delta) every frame: the clock went in as dt and every height, fade and floor tween finished on the next frame. Replaying a step that writes a new function therefore showed the floor already built. The component now leaves A-Frame's lifecycle names alone; the view still drives the city's tick. The harness samples the new floor every frame during its step and asserts it grows over several frames, and waits for tweens to settle on software GL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adrián · project thread
Follow-up to story #413 (epic #319), from Adrián's manual test: a new floor was only seen being built live; replaying the timeline showed the floor already standing.
Cause
The
codexr-cityA-Frame component copied the whole city API onto itself,tickincluded. A-Frame calls a component'stick(time, delta)every frame, socity.tick(dt, time)received the clock asdtand every tween (building heights, see-through fades, floor growth) finished on the next frame. The view's own clamped tick never got to animate anything.Change
cityScene.js:registerCityComponentno longer copies A-Frame lifecycle names (init,update,remove,tick,tock,play,pause) onto the component. The view keeps driving the city's tick.fanInOutRowsfloor every frame during its replayed step and asserts it grows over several frames; waits for tweens to settle (software GL runs a few frames a second, each advancing at most 64 ms).The timeline already rebuilds the city as it was at each point of the chat (floors by
bornStep, heights, created and deleted files); with the tweens working, playing forward now shows each change being built.Tests
npm test: green.node test/runners/run-agent-flow-harness.cjs: OK, including the new growth assertion.Generated by Claude Code