Skip to content

fix: isolate relay workers by desktop keyring session - #75

Merged
ScriptedAlchemy merged 4 commits into
mainfrom
fix/relay-headless-owner
Sep 17, 2026
Merged

ScriptedAlchemy merged 4 commits into
mainfrom
fix/relay-headless-owner

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Automatic replies reused a headless MCP worker whose environment could not unlock the desktop keyring, while ordinary CLI sends worked. Include the D-Bus session address and DISPLAY in the worker profile so those callers cannot share incompatible credential environments.

Validation: reproduced identical profiles before the fix; regression passes afterward. 31 focused worker, app-session, and auth-recovery tests pass. Includes patch changeset. This fixes worker reuse; direct headless MCP credential access remains a separate host configuration requirement.

@changeset-bot

changeset-bot Bot commented Sep 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8f6f7e6

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 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-16T22:21:05.979537Z c900c4f 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.

@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: c900c4f89a

ℹ️ 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/profile.js
Comment on lines +34 to +35
"DBUS_SESSION_BUS_ADDRESS",
"DISPLAY",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Migrate persisted relays before changing the profile digest

Adding these entries changes the serialized profile input even when both variables are unset, so every existing 0.6.0 relay receives a new profile after upgrading. With the default location, commands start against an empty directory while the old detached worker and its routes, checkpoints, and pending records remain active but inaccessible; with GROK_BOT_RELAY_DIR, startup instead permanently rejects the existing ledger with Relay profile mismatch. Preserve or migrate the previous profile/state so upgrades continue existing durable routes rather than stranding them.

Useful? React with 👍 / 👎.

Comment thread src/core/relay/profile.js
Comment on lines +34 to +35
"DBUS_SESSION_BUS_ADDRESS",
"DISPLAY",

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 Restrict Secret Service profile fields to Linux

These variables are hashed on macOS too, although readKeychainPassword() uses /usr/bin/security there rather than Secret Service. Consequently, otherwise compatible macOS callers that differ only because one runs under XQuartz, SSH forwarding, or a Homebrew D-Bus session get separate state directories and workers, making existing routes disappear from status and permitting duplicate bindings. Include these fields only for the Linux keyring path.

Useful? React with 👍 / 👎.

cursoragent and others added 3 commits September 16, 2026 23:21
Bring in lockfile integrity refresh (#78), windows-latest CI (#76/#77),
and Release workflow_dispatch (#79) while keeping the relay keyring session isolation.

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
The windows-latest runs were cancelled while still queued and never executed.
This token cannot rerun Actions, so push a no-op commit to start new checks.

Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
@ScriptedAlchemy
ScriptedAlchemy merged commit 1e68988 into main Sep 17, 2026
0 of 2 checks passed
ScriptedAlchemy added a commit that referenced this pull request Sep 17, 2026
Forward Grok auto-review and local-tool approval cards as approval notices; add gbot approvals list/respond and MCP gbot_grok_approvals/gbot_grok_respond.

Squash-merged under force-delivery after #81+#75: ACCEPT; windows CI starved; branch updated with main; branch unprotected.
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.

2 participants