Skip to content

fix: use the Grok Bot app session on Linux - #22

Merged
ScriptedAlchemy merged 1 commit into
mainfrom
fix/linux-app-session
Sep 11, 2026
Merged

fix: use the Grok Bot app session on Linux#22
ScriptedAlchemy merged 1 commit into
mainfrom
fix/linux-app-session

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

On Linux, gbot never found the signed-in Grok Bot app session: it only looked for the macOS descriptor path, decrypted with the macOS Keychain, and used 1003 PBKDF2 rounds. Chromium's Linux OSCrypt uses one round, stores the key in the Secret Service (v11 prefix) or falls back to the fixed basic-text key (v10), and Electron keeps the descriptor under ~/.config/Grok Bot/.

Changes

  • app-session.js: platform-aware descriptor path ($XDG_CONFIG_HOME/~/.config on Linux), secret-tool lookup of the Grok Bot libsecret item for v11, peanuts for Linux v10 without touching the keyring, one PBKDF2 round on Linux. macOS behaviour and the decryptSafeStorageString(encrypted, password) signature are unchanged.
  • Tests: Linux v10/v11 round-trips, XDG override, wrong-keyring-password reported as unusable, unsupported platform still returns null; doctor test now runs on Linux too.
  • README: Linux supported; libsecret-tools note.

Verified live on Ubuntu with Grok Bot 0.44.0 signed in: gbot doctor reports Grok Bot app session: usable, gbot bots list/send/thread work with no env vars. 28/28 tests pass.

@changeset-bot

changeset-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5c77167

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
grok-bot-cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T06:55:22.161845Z 5c77167 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ScriptedAlchemy
ScriptedAlchemy merged commit 5519136 into main Sep 11, 2026
1 check passed
@ScriptedAlchemy
ScriptedAlchemy deleted the fix/linux-app-session branch September 11, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant