Rebrand auth guidance strings: grok login/logout -> kigi login/logout

The headless not-signed-in message still pointed at `grok login` and
XAI_API_KEY; error copy across the shell (re-auth prompts, managed-config
rejection, mcp doctor, trace classifier) and kigi-bin did too. All now
reference `kigi login` / `kigi logout`, and the headless fallback points
at the Moonshot open-platform key (KIGI_MOONSHOT_API_KEY).
This commit is contained in:
ZacharyZhang-NY committed 2026-07-17 19:33:06 -04:00
1 parent dab3fa71c9
commit 78cd94a751
14 files changed
+30 -34

No files matched your search

@@ -78,7 +78,7 @@ pub fn map_sampling_err_to_acp(err: SamplingError) -> acp::Error {
format!(
"{message}\n\nYou have an API key set (XAI_API_KEY). \
Your cached OAuth session is being used instead. \
To use your API key, run `grok logout` or type /logout in the TUI."
To use your API key, run `kigi logout` or type /logout in the TUI."
)
} else {
message
@@ -485,8 +485,8 @@ mod tests {
let data = acp_err.data.unwrap();
let msg = data.as_str().unwrap();
assert!(
msg.contains("grok logout"),
"should suggest grok logout when API key is available: {msg}"
msg.contains("kigi logout"),
"should suggest kigi logout when API key is available: {msg}"
);
assert!(
msg.contains("/logout"),
@@ -509,7 +509,7 @@ mod tests {
let data = acp_err.data.unwrap();
let msg = data.as_str().unwrap();
assert!(
!msg.contains("grok logout"),
!msg.contains("kigi logout"),
"should NOT suggest logout when no API key is available: {msg}"
);
});
@@ -529,7 +529,7 @@ mod tests {
let data = acp_err.data.unwrap();
let msg = data.as_str().unwrap();
assert!(
!msg.contains("grok logout"),
!msg.contains("kigi logout"),
"should NOT suggest logout for non-subscription 403: {msg}"
);
});