mirror of
https://github.com/THU-MAIC/OpenMAIC.git
synced 2026-10-17 05:29:46 +08:00
* fix: persist agent configs in server-generated classrooms (#316) Server-generated classrooms via /api/generate-classroom silently skip all discussion actions because agent configurations are never embedded in the persisted Stage object. Changes: - Add optional generatedAgentConfigs field to Stage interface - Inject agent configs (with avatar/color/priority) into Stage during server-side generation - Hydrate agents into IndexedDB/registry when loading from server storage on client Closes #316 * fix: extract shared agent constants and fix avatar paths - Extract AGENT_COLOR_PALETTE and AGENT_DEFAULT_AVATARS into lib/constants/agent-defaults.ts to eliminate duplication - Fix invalid avatar paths (student.png -> assist.png, etc.) to match actual files in public/avatars/ - Remove duplicated inline constants from classroom-generation.ts and agent-profiles/route.ts Addresses reviewer feedback on #336 ---------