fix: wire Pip familiar into Workshop state pipeline #412
Reference in New Issue
Block a user
Delete Branch "kimi/issue-222"
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?
Summary
Pip's backend behavioral AI (state machine, mood mirroring, event reactions) existed but was never connected to the Workshop world state API. The frontend Pip wandered randomly with no connection to the backend.
Changes
workshop_state.py: Add_pip_snapshot()helper that ticks Pip and feeds Timmy's mood/confidence into Pip's behavioral AI each heartbeat cycle. Include familiar snapshot inget_state_dict().world.py: Includefamiliarfield in_build_world_state()API response. Triggerpip_familiar.on_event("visitor_spoke")when visitors chat.What this enables
Fixes #222
Pip's backend behavioral AI (state machine, mood mirroring, event reactions) was never connected to the world state API. The frontend Pip wandered randomly with no connection to the backend. - Add _pip_snapshot() to workshop_state.py — ticks Pip and feeds Timmy's mood/confidence into Pip's behavioral AI each heartbeat - Include familiar snapshot in presence state dict (get_state_dict) - Include familiar in _build_world_state() API response - Trigger pip_familiar.on_event("visitor_spoke") when visitors chat Fixes #222 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>