[kimi] refactor: extract presence state serializer from workshop heartbeat (#668) #697
Reference in New Issue
Block a user
Delete Branch "kimi/issue-668"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #668
Summary
_build_world_state()logic fromsrc/dashboard/routes/world.pyinto a standaloneserialize_presence()function insrc/infrastructure/presence.pyworld.pyto delegate toserialize_presence()— no behavior changetests/unit/test_presence.pywith round-trip, defaults, partial input, and edge-case testsTest plan
tox -e unitpasses (2407 passed)tox -e lintpassestox -e pre-pushpasses (full CI mirror)