@startuml lagrange-session-state !include _lagrange.iuml ' One Claude Code session row's lifecycle: cc-tab's icon, what the panel groups by it. [*] --> idle : SessionStart (๐Ÿ’ค) idle --> working : UserPromptSubmit (โณ) working --> working : PreToolUse -- step pulse working --> waiting : Notification (๐Ÿ””) working --> done : Stop, no agents running (โœ…) working --> working : Stop/Notify while an\nagent runs -- icon stays โณ waiting --> working : user answered done --> working : session resumed idle : panel group "idle" working : tab title " ยท " waiting : macOS notification, buttons done : panel group "done" idle --> [*] : SessionEnd working --> [*] : SessionEnd waiting --> [*] : SessionEnd done --> [*] : SessionEnd @enduml