Skip to content

feat: relay Grok approval notices and explicit one-time responses - #80

Merged
ScriptedAlchemy merged 2 commits into
mainfrom
feat/grok-approval-response
Sep 17, 2026
Merged

ScriptedAlchemy merged 2 commits into
mainfrom
feat/grok-approval-response

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Grok auto-review and local-tool approval cards have no text body, so the relay currently pauses on them as empty messages. Forward new pending cards as approval notices without returning Codex's chat answer as authorization.

Add gbot approvals list/respond and MCP gbot_grok_approvals/gbot_grok_respond. Responses re-read the latest 200 entries and require exact current bot/card/request IDs. Accept grants once, decline denies, and truncated action details require the owning UI for acceptance. Notices include the actual local target and machine. Existing Codex-origin interaction handling is unchanged.

Validation: independent review PASS; 33 focused relay/approval tests and 15 MCP route tests; source/artifact validation, build and typecheck. Native API methods/resolutions checked against the Grok host contract. Live Grok approval round-trip is not yet proven. Older cards and unsupported cookie/payment requests require the owning Grok UI.

Host-aware tool inventory is a separate follow-up; this PR does not claim to implement it.

@changeset-bot

changeset-bot Bot commented Sep 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2512e55

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 Minor

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 16, 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-16T23:29:34.973058Z 5a1ae78 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 force-pushed the feat/grok-approval-response branch from 5a1ae78 to eaf0074 Compare September 16, 2026 23:28

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5a1ae78816

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/core/relay/intake.js
const incoming = page.slice(index + 1);
for (const entry of incoming) {
if (entry.kind !== "send-message" || own.has(entry.requestId)) continue;
const approvalNotice = grokApprovalNotice(entry, targetId);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Classify approval cards before suppressing return echoes

When Grok raises an approval while processing an automatically returned Codex answer, the card's outer requestId matches a grok-return ID in own, so the preceding guard skips the entry before grokApprovalNotice runs. The poll then advances its cursor, permanently hiding that pending approval from Codex. Approval cards need to be classified before applying the normal own-response suppression.

Useful? React with 👍 / 👎.

@ScriptedAlchemy
ScriptedAlchemy merged commit 8dd8d3d into main Sep 17, 2026
0 of 2 checks passed
cursor Bot pushed a commit that referenced this pull request Sep 17, 2026
windows-latest jobs sat queued with zero runners after #81, #75, and #80.

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
ScriptedAlchemy added a commit that referenced this pull request Sep 17, 2026
windows-latest jobs sat queued with zero runners after #81, #75, and #80.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
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