Skip to main content

Module sign_in_watch

Module sign_in_watch 

Source
Expand description

A sign-in value the CLI has just refreshed is hidden from transcripts within moments of the write, not at the next account tick.

The values in an account’s sign-in file are withheld where srv reads the file (oauth_probe), which the spawn check and the 15 s account tick do. A CLI renews its tokens in between, so start watches each account’s sign-in file (Claude’s .credentials.json, Codex’s and Grok’s auth.json, Muse’s muse/auth.json) through the shared FsWatchPool and reads the file again when it changes, whether the CLI writes it in place or replaces it (a temp file renamed over it). The accounts followed are read again every [RECONCILE], so an account that is added or deleted is followed or let go. It only reads: it never writes a sign-in file or logs a value.

Functions§

start
Starts following the sign-in files of the accounts in accounts. Needs a running tokio runtime.