on main help sign in
chore: update ui/agents.md (#2122)
874c1caCarlos Alexandro Becker
internal/ui/AGENTS.md+1−1
@@ -4,7 +4,7 @@
4- Never use commands to send messages when you can directly mutate children or state.
4- Never use commands to send messages when you can directly mutate children or state.
5- Keep things simple; do not overcomplicate.
5- Keep things simple; do not overcomplicate.
6- Create files if needed to separate logic; do not nest models.
6- 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`.
8- Never change the model state inside of a command use messages and than update the state in the main loop
8- Never change the model state inside of a command use messages and than update the state in the main loop
9
9
10## Architecture
10## Architecture