---
name: "Ambient on/off command not intercepted by bot after refactors"
---

# Bug 352: Ambient on/off command not intercepted by bot after refactors

## Description

The ambient on/off bot command stopped being intercepted by the bot after the recent refactors (328 split commands.rs into modules, 330 consolidated chat transports into chat/ module). Messages like "timmy ambient off", "ambient off", and "ambient on" are being forwarded to the LLM instead of being handled at the bot level. The ambient toggle was previously handled in bot.rs before the command registry dispatch — it may not have been properly wired up after the code was moved to the chat/ module structure.

## How to Reproduce

1. Type "timmy ambient off" in a Matrix room where ambient mode is on
2. Observe that the message is forwarded to Claude instead of being intercepted
3. Same for "timmy ambient on", "ambient off", "ambient on"

## Actual Result

Ambient toggle commands are forwarded to the LLM as regular messages.

## Expected Result

Ambient toggle commands should be intercepted at the bot level and toggle ambient mode without invoking the LLM, with a confirmation message sent directly.

## Acceptance Criteria

- [ ] 'timmy ambient on' toggles ambient mode on and sends confirmation without LLM invocation
- [ ] 'timmy ambient off' toggles ambient mode off and sends confirmation without LLM invocation
- [ ] Ambient toggle works after refactors 328 and 330
- [ ] Ambient state persists in bot.toml as before
