Skip to content

Commit e0fc63d

Browse files
committed
docs: clarify App.tsx boundaries to keep orchestration lean
1 parent 47d4caa commit e0fc63d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

AGENTS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ CodexMonitor is a macOS Tauri app that orchestrates Codex agents across local wo
3838
- **Styles**: one CSS file per UI area in `src/styles/` (no global refactors in components).
3939
- **Backend IPC**: add new commands in `src-tauri/src/lib.rs` and mirror them in the service.
4040
- **App-server protocol**: do not send any requests before `initialize/initialized`.
41+
- **Keep `src/App.tsx` lean**:
42+
- Keep it to wiring: hook composition, top-level layout, and route/section assembly.
43+
- Move stateful logic/effects into hooks under `src/features/app/hooks/`.
44+
- Keep Tauri IPC, menu listeners, and subscriptions out of `src/App.tsx` (use hooks/services).
45+
- If a block grows beyond ~60 lines or needs its own state/effects, extract it.
4146

4247
## App-Server Flow
4348

0 commit comments

Comments
 (0)