Skip to content

fix: read version 3 gateway descriptors (Grok Bot 0.77) - #162

Merged
ScriptedAlchemy merged 1 commit into
ScriptedAlchemy:mainfrom
valkyriweb:fix/descriptor-v3
Nov 4, 2026
Merged

ScriptedAlchemy merged 1 commit into
ScriptedAlchemy:mainfrom
valkyriweb:fix/descriptor-v3

Conversation

@valkyriweb

Copy link
Copy Markdown
Contributor

Fixes #160.

Grok Bot 0.77.0 on macOS writes gateway-descriptor.json with version: 3. gbot 0.12.4 rejects it with Unsupported Grok Bot gateway descriptor version 3, so no command can use the app session.

The version 3 file keeps the version 2 layout: entries.<id>.encrypted (a v10 Safe Storage string) plus savedAtMs. I checked this against a live 0.77.0 install by reading field names and types only, not values. So version 3 now takes the version 2 path. The empty and ambiguous entry checks still apply.

Changes:

  • src/core/app-session.js: accept versions 1, 2 and 3; read entries for 2 and 3.
  • test/app-session.test.js: add a version 3 load test; the unsupported-version test now uses 4.
  • Changeset (patch) and rebuilt artifact/.

Verification:

  • npm run check passes (443 tests).
  • With the built artifact/bin/gbot.mjs against Grok Bot 0.77.0 on macOS: gbot bots list returns the roster and gbot send delivers. Both fail on 0.12.4.

@changeset-bot

changeset-bot Bot commented Oct 31, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d344c45

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

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.

gbot doctor: "Unsupported Grok Bot gateway descriptor version 3" on macOS (app 0.77.0)

2 participants