GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — refactor: replace Bun.serve with Node http.createServer in OAuth handlers by thdxr · Pull Request #18327 · anomalyco/opencode Conversation
Member
Summary
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
…lers Use Node's createServer for MCP OAuth callback and Codex plugin OAuth servers instead of Bun.serve, making them work under Node.js.
thdxr
added a commit
that referenced
this pull request
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
324
to
331
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
By contrast, await new Promise<void>((resolve) => server!.close(() => resolve())) server = undefined
function stopOAuthServer() { if (oauthServer) { const closing = oauthServer oauthServer = undefined closing.close(() => { log.info("codex oauth server stopped") }) } } Note: even the snippet above doesn't fully close the port before returning. If true synchronous-style safety is needed, the function should be made
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Change the top-level import to: import { createServer, type IncomingMessage, type ServerResponse } from "http" Then the function signature becomes: function handleRequest(req: IncomingMessage, res: ServerResponse) { Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
opencode-agent Bot
added a commit
that referenced
this pull request
…ver in OAuth handlers
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
|
This PR cannot be merged into the beta branch due to: Merge failed Please resolve this issue to include this PR in the next beta release. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.