Skip to content

perf(permission): defer the grok responses import off reactor boot - #1516

Merged
TheGreatAxios merged 3 commits into
mainfrom
cl-10829-stop-the-openai-responses-import-from-constructing-the
Oct 18, 2026
Merged

TheGreatAxios merged 3 commits into
mainfrom
cl-10829-stop-the-openai-responses-import-from-constructing-the

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Loading the permission reactor no longer evaluates the InferenceEvent union through the grok and OpenAI responses import chain.
  • The grok and OpenAI path still loads when a call actually needs it.

Verification

  • src/session/runtime-core-import.test.ts probes reactor-authorize with @intx/types/inference-events mocked to throw and expects exit 0.

Fixes CL-10829

@linear-code

linear-code Bot commented Oct 18, 2026

Copy link
Copy Markdown

CL-10829

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Review · Comment

Importing the permission reactor no longer evaluates the InferenceEvent union. Name checks for xai/ and codex/ stay local so those provider barrels are not loaded at boot.

Findings

No findings.

The createRequire loads of package constants.js and oauth.js are gone. The net diff is three files: the runtime-core import, the inlined prefix checks, and the boot probe.

@TheGreatAxios
TheGreatAxios marked this pull request as ready for review October 18, 2026 03:30
@corbits-triage

corbits-triage Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

@TheGreatAxios
TheGreatAxios merged commit ade536c into main Oct 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant