drop the sqlite event log nothing reads, and the comments naming routes that are gone
This commit is contained in:
parent
6289b8d64b
commit
cbda9c162f
1 changed files with 71 additions and 305 deletions
|
|
@ -11,7 +11,7 @@ use super::LoginStateCell;
|
|||
/// the credential files (via [`crate::login::clear_session`]) and flip
|
||||
/// `LoginState::NeedsLogin`; `by` heads the Note. Returns what was wiped, for the response.
|
||||
pub(crate) async fn force_logout(login: &LoginStateCell, bus: &Bus, by: &str) -> String {
|
||||
// Step 1: SIGINT claude (best-effort, matches `post_cancel_turn`).
|
||||
// Step 1: SIGINT claude (best-effort, as a cancel does).
|
||||
let _ = super::sigint_claude();
|
||||
// Step 2: delete OAuth credential files only — login::clear_session owns
|
||||
// the file set and preserves session-history files alongside them.
|
||||
|
|
@ -35,7 +35,7 @@ pub(crate) async fn force_logout(login: &LoginStateCell, bus: &Bus, by: &str) ->
|
|||
}
|
||||
|
||||
/// Human-readable summary of a [`crate::login::ClearedSession`] outcome for
|
||||
/// the `/api/logout` response + note. Deliberately distinguishes "nothing to
|
||||
/// the login watch's note. Deliberately distinguishes "nothing to
|
||||
/// delete" from "something's there but we couldn't delete it" — both leave
|
||||
/// `wiped` empty, but only the former is actually "already logged out";
|
||||
/// conflating them would report a stuck undeletable `.credentials.json` as
|
||||
|
|
|
|||
Loading…
Reference in a new issue