# Todo 24 ChatAgent Prompt List Plan **Status:** done ## Goal Put all ChatAgent prompts into one ordered list so configuration is not split between a standalone ChatAgent system prompt, generated event instructions, and prompt-config system prompts. ## Why ChatAgent depends on the event-instruction prompt to know when and how to emit event names. Keeping that prompt outside the editable prompt sequence makes ordering unclear and makes debugging prompt effects harder. ## Scope - Replace the standalone ChatAgent System Prompt field and Available Events Prompt preview with one prompt list. - Include the generated EventAgent event-rule prompt as a fixed item in that list. - Allow custom prompt items to be added, deleted, and reordered by dragging. - Serialize `system_prompts` from the ordered list and stop sending a separate `chat_agent.system_prompt`. - Preserve existing prompt-set save/load behavior for user-created prompts. ## Verification - Static tests failed before implementation and pass after implementation. - `uv run pytest` passed: 51 tests, 1 existing Starlette deprecation warning. - Browser check confirmed the ChatAgent config shows one prompt list, supports add/delete/reorder controls, includes the generated event-rule prompt in the list, and no longer shows separate ChatAgent prompt/event-preview fields.