* chore: update ui/agents.md
it should always do io inside a tea.cmd
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* Apply suggestion from @caarlos0
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@@ -4,7 +4,7 @@
- Never use commands to send messages when you can directly mutate children or state.
- Keep things simple; do not overcomplicate.
- Create files if needed to separate logic; do not nest models.
-- Always do IO in commands
+- Never do IO or expensive work in `Update`; always use a `tea.Cmd`.
- Never change the model state inside of a command use messages and than update the state in the main loop
## Architecture