---
name: "Ambient mode state lost on server restart"
---

# Bug 288: Ambient mode state lost on server restart

## Description

Story 282 implemented ambient mode toggle but only in-memory. The acceptance criterion requiring persistence in bot.toml was not implemented. Every server restart (including rebuild_and_restart) clears ambient mode for all rooms.

## How to Reproduce

1. Type "timmy ambient on" — get confirmation
2. Restart server (or rebuild_and_restart)
3. Send unaddressed message — bot ignores it, ambient mode is gone

## Actual Result

Ambient mode state is lost on server restart.

## Expected Result

Ambient mode per-room state is persisted in bot.toml and restored on startup.

## Acceptance Criteria

- [ ] Ambient mode per-room state is saved to bot.toml when toggled
- [ ] Ambient mode state is restored from bot.toml on server startup
- [ ] bot.toml.example includes the ambient_rooms setting with a comment
