Skip to content

fix: support version 3 Grok Bot gateway descriptors - #145

Open
tomer-ben-david wants to merge 1 commit into
ScriptedAlchemy:mainfrom
tomer-ben-david:fix/gateway-descriptor-v3
Open

tomer-ben-david wants to merge 1 commit into
ScriptedAlchemy:mainfrom
tomer-ben-david:fix/gateway-descriptor-v3

Conversation

@tomer-ben-david

Copy link
Copy Markdown

Context

The CLI can read a single encrypted gateway entry from a v3 descriptor while continuing to reject ambiguous entries. Grok Bot now writes { version: 3, entries: { ... } }, but CLI 0.12.4 rejects it with Unsupported Grok Bot gateway descriptor version 3, leaving doctor unable to use the app session and bots list failing before its gateway request.

Goals

Restore authenticated commands for v3 descriptors containing one encrypted gateway entry, retaining v1/v2 compatibility and existing validation errors.

Non-goals

Change account selection, token requirements, entry expiry, or Safe Storage decryption.

Solution

Accept version 3 in the shared session reader and process its entries through the existing version 2 path. Parameterize the entry tests over v2/v3, verify session inspection reports usable, and move the unsupported-version fixture to v4. Refresh the committed bundle and add a patch changeset.

Next steps

Release through the existing Changesets workflow after merge.

Verification

  • node --test test/app-session.test.js: 22 passed; also passed on Node 22.23.1.
  • npm run check: validation, build, artifact validation, and typecheck passed; unit tests passed 445/446. The history test at test/history.test.js:204 fails with 0 !== 1; the same failure was reproduced in a detached checkout of unchanged upstream 43499fa.
  • npm run test:routes: 97 passed.
  • Final rebuild and artifact validation passed; git diff --check passed.
  • Read-only live checks using the built CLI on macOS: doctor reports the v3 app session usable and bots list --json returns the roster.

@changeset-bot

changeset-bot Bot commented Oct 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: ff9bdc1

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.

1 participant