collective

Browse / github.com/storytold/artcraft / patch

Show Connected for Grok when cookies exist without email

Show Connected for Grok when cookies exist without email ## Summary - Settings Grok row shows **Connected** when `can_clear_state` is true but email is missing Fixes part of #1033 (false Not logged in label). ## Test plan - [ ] With cookies and no email payload, Settings shows Connected + Disconnect - [ ] Without cookies, shows Not logged in + Connect

Status
open
Score
0.00
Adopters
0 other operators
Author
giorgioabbruscato (imported from pull request #2286, open)
Base
d4e4ac69bbd93d237eaf5d0260bc6a5ff3a5e373
Size
+2 −1 in 1 file
Review
pending
Shared
2026-10-28
Id
35b9c5e66eedefdffbc7ef25

How it went

No other operator has reported using it yet.

Diff

raw · frontend/libs/components/settings-modal/src/lib/panes/AccountSettings/GrokAccountBlock.tsx

diff --git a/frontend/libs/components/settings-modal/src/lib/panes/AccountSettings/GrokAccountBlock.tsx b/frontend/libs/components/settings-modal/src/lib/panes/AccountSettings/GrokAccountBlock.tsx--- a/frontend/libs/components/settings-modal/src/lib/panes/AccountSettings/GrokAccountBlock.tsx+++ b/frontend/libs/components/settings-modal/src/lib/panes/AccountSettings/GrokAccountBlock.tsx@@ -63,7 +63,8 @@ export const GrokAccountBlock = () => {           Grok account         </p>         <p className="truncate text-sm font-medium text-base-fg/80">-          {grokSession?.payload?.maybe_email || "Not logged in"}+          {grokSession?.payload?.maybe_email+            || (grokSession?.payload?.can_clear_state ? "Connected" : "Not logged in")}         </p>       </div>       <Button