Skip to content

Agent Flow: no 1 m box for unbuilt files, one UFO on a delegate (#319) - #450

Merged
aMonteSl merged 2 commits into
idefrom
claude/project-thread-xi9f21-ide
Dec 3, 2026
Merged

aMonteSl merged 2 commits into
idefrom
claude/project-thread-xi9f21-ide

Conversation

@aMonteSl

@aMonteSl aMonteSl commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adrián spotted a big grey-violet block in the middle of the Agent Flow city in the demo video. It is templates/components/livepanel/charts.js, the file the sample session deletes with git rm.

  • An InstancedMesh starts every instance at the identity matrix (a 1 m box at the city's origin).
  • setBuildingHeight returns early when the height does not change, so a file whose height is 0 at the step the session opens on (deleted by then, or not created yet) was never written and stood there for the whole session.
  • buildBuildings now starts every building at the zero matrix, as the roofs, ghosts and floors already did.

Any real session that deletes, moves or creates files was affected, not only the sample.

Tests

  • run-agent-flow-harness.cjs asserts that every file with no height at the end of the sample session is hidden (instance scale < 0.001). Full harness run: OK (179 buildings, 36 steps).
  • agentFlowRuntime.test.cjs: pass.

Second fix: one UFO on a delegate

Adrián, watching the same video: on a delegate the main UFO and both subagents' UFOs sat in a pile, with overlapping name tags. workersAt made a subagent present from the delegate that spawned it, parked 3 cm beside the main worker until its first step. A subagent is now present from its own first step: during the delegates only the main UFO flies (delegate outfit), and each subagent pops out of it with the beam when it starts working.

  • agentFlowRuntime.test.cjs: absent before its first step; each subagent appears on its own first step. Pass.
  • Full Agent Flow harness (incl. the seek/play/back invariant over every step): OK.
  • docs/agent-flow/test-guide.md row updated.

Refs #451, #452 (left open until Adrián's manual check).


Generated by Claude Code

… as a 1 m box (#319)

Adrián saw a big grey-violet block in the middle of the city in the demo
video. It is templates/components/livepanel/charts.js, the file the sample
session deletes with git rm. An InstancedMesh starts every instance at the
identity matrix, and setBuildingHeight returns early when the height does
not change, so a file whose height is 0 at the step the session opens on
(deleted by then, or not created yet) was never written: it stood as a
unit box at the city's origin for the whole session. buildBuildings now
starts every building at the zero matrix, like the roofs, ghosts and
floors already did.

The harness asserts that every file with no height at the end of the
sample session is hidden.
@aMonteSl aMonteSl self-assigned this Dec 3, 2026
…e delegate (#319)

Adrián, watching the demo video: on a delegate, the main UFO and both
subagents' UFOs sat in a pile at the same spot, their name tags on top of
each other. workersAt made a subagent present from the delegate step that
spawned it, and until its first step startSpot parked it 3 cm beside the
main worker. A subagent is now present from its own first step: during the
delegates only the main UFO flies (in its delegate outfit), and each
subagent pops out of it, with the beam, when it starts working.

Unit test updated (absent before its first step, each subagent appearing on
its own first step). Test guide row updated.
@aMonteSl aMonteSl changed the title Agent Flow: a file with no height at the opened step no longer stands as a 1 m box (#319) Agent Flow: no 1 m box for unbuilt files, one UFO on a delegate (#319) Dec 3, 2026
@aMonteSl
aMonteSl merged commit e20b753 into ide Dec 3, 2026
25 of 26 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.

2 participants