index.md 1.1 KB

Files

  • Application state and event handling - How the App struct in src/app.rs owns the application state and routes every AppEvent (keys, WhatsApp events, AI replies, image descriptions, audio transcriptions, reply timers, web panel commands, configuration reloads, relink outcomes), including the image and audio bookkeeping maps and sets, function-key handling, the reply orchestration order and the background tasks.
  • Runtime and event loop - Process startup in src/main.rs (including the --version flag and the build version embedded by build.rs), the tokio runtime, the two event channels, the input thread, the WhatsApp forwarder, the optional web panel thread, the configuration watcher task, the draw/recv TUI loop and how the screen is repainted and wiped on exit.
  • Terminal UI rendering - How src/ui.rs draws the connecting, QR pairing and main screens with ratatui, including the F8/F10 key help on the connecting and pairing screens, the filtered list with global autoreply marker, message formatting, wrapping, the input box and the footer with key help and build version.