chore: update ui/agents.md (#2122)
* 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>
commit874c1ca0e8bf89533ce1fafcbe7c1dd37187e30b
authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com>
dateWed 4 Feb 2026, 15:12 (8 months ago)
parent142c854
internal/ui/AGENTS.md+1−1
@@ -4,7 +4,7 @@
44- Never use commands to send messages when you can directly mutate children or state.
55- Keep things simple; do not overcomplicate.
66- Create files if needed to separate logic; do not nest models.
7−- Always do IO in commands
7+- Never do IO or expensive work in `Update`; always use a `tea.Cmd`.
88- Never change the model state inside of a command use messages and than update the state in the main loop
99
1010## Architecture