Skip to content

Orchestrator not centered over station when there is a single subagent #236

Description

@williamthorsen

Problem

The orchestrator actor should be positioned over the center of a station. When a station has a single subagent, the orchestrator should be positioned directly above that agent. Currently the positioning appears misaligned.

Investigation

The layout math in catwalk-layout.ts appears correct — orchestratorPosition() and agentPosition() both use stationX() for centering. Possible causes:

  • Sprite anchor point differences between OrchestratorActor and StationAgentActor
  • GraphicsGroup offset in StationAgentActor (sprite + accent bar) shifting the visual center
  • Layout recomputation timing when agent counts change

Key files

  • packages/factory/src/client/visualizations/catwalk/layout/catwalk-layout.tsorchestratorPosition(), agentPosition(), stationX()
  • packages/factory/src/client/visualizations/catwalk/scene/CatwalkScene.tsaddOrchestrator(), addAgents()
  • packages/factory/src/client/visualizations/catwalk/actors/OrchestratorActor.ts
  • packages/factory/src/client/visualizations/catwalk/actors/StationAgentActor.ts

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions