Skip to content

feat: add GitHub Copilot CLI integration#67

Closed
matz-d wants to merge 2 commits intoviperrcrypto:mainfrom
matz-d:feat/copilot-cli-integration
Closed

feat: add GitHub Copilot CLI integration#67
matz-d wants to merge 2 commits intoviperrcrypto:mainfrom
matz-d:feat/copilot-cli-integration

Conversation

@matz-d
Copy link
Copy Markdown

@matz-d matz-d commented Apr 3, 2026

Summary

  • add GitHub Copilot CLI as an OpenAI-backed auth path alongside Codex
  • add settings for preferred OpenAI CLI path and show which model each CLI currently uses
  • fix Codex CLI stdin handling so the Codex path does not block waiting for piped input
  • update OpenAI CLI fallback/test flows and related UI/runtime wiring

Validation

  • npm run lint
  • npx tsc --noEmit
  • npm run build

matz-d and others added 2 commits April 3, 2026 10:00
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… blocking

Codex CLI reads from stdin when it detects a pipe, even when a prompt
argument is provided. execFileAsync creates a pipe for stdin that is
never closed, causing codex to hang indefinitely waiting for input
until the timeout kills the process.

Switch from execFileAsync to spawn with stdin.end() so the pipe is
closed immediately and codex proceeds without waiting.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@viperrcrypto
Copy link
Copy Markdown
Owner

Closing - the config path (~/.copilot/config.json) doesn't match actual GitHub Copilot CLI installations, the 'copilot' binary name collides with AWS Copilot, and execFileAsync may cause stdin hangs. The feature won't work for real users in its current state. The Codex CLI improvements in this PR were solid though.

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