Skip to main content

Module mail_watch

Module mail_watch 

Source
Expand description

Idle notices for every harness, from session activity.

Knowing that a session finished does not need control of it: supercode’s normalized activity (crate::session_activity) reports busy/idle for a native Claude session, a running Codex, and any runtime supercode hosts. A sender that asked for --notify-when-idle gets one notice when the receiver is seen working after the message and then idle, one when the receiver ends, or one saying the subscription expired after IDLE_SUBSCRIPTION_LIFETIME. The notice is delivered through the one router (crate::mail_route), so each subscriber gets it by its own door.

Structs§

IdleWatcher
Polls the activity of every session someone subscribed to.

Constants§

IDLE_SUBSCRIPTION_LIFETIME
How long a subscription waits for the receiver to work and go idle.

Functions§

deliver_waiting_user_turns
Type the user’s waiting turns into their sessions’ panes, each once its composer is empty. A turn waits when the person has a draft; the mailbox is where it waits.