What problem does it solve?
This Skill prevents UI freezes and crashes by auditing whether the app updates customtkinter widgets only from the main thread and whether worker results are correctly marshaled back using the expected .after() pattern.
Core Features & Use Cases
- Main-thread UI safety checks: Detects direct widget updates (configure/insert/delete/pack/grid) performed from worker threads.
- Worker-to-UI communication verification: Flags missing or incorrect use of .after() (including Queue-based patterns) when returning from background work.
- Blocking-call detection in UI callbacks: Finds heavyweight operations (e.g., indexing, HTTP requests, time.sleep) triggered directly from event handlers that would freeze the interface.
Use case: When the app loads sessions or processes “orphaned PDFs” using background workers, use this Skill to ensure the UI stays responsive and avoids undefined behavior on Windows.
Quick Start
Ask the AI to run the audit-concurrency Skill to check gestor_contable/gui for UI updates from workers and any blocking operations on the main thread.