Skip to content

Commit 2f4307b

Browse files
committed
fix: use localhost for codex oauth callback
1 parent 89b1950 commit 2f4307b

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/internal/buildinfo/buildinfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "strings"
44

55
// Set at link time via -ldflags (see .goreleaser.yaml).
66
var (
7-
Version = "dev0.1.98"
7+
Version = "dev0.1.99"
88
Commit = "none"
99
Date = "unknown"
1010
)

core/internal/subscriptionauth/oauth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func buildClaudeAuthorizeURL(pkce pkcePair, redirectURI string) string {
230230
}
231231

232232
func codexRedirectURI() string {
233-
return fmt.Sprintf("http://127.0.0.1:%d%s", codexCallbackPort, codexCallbackPath)
233+
return fmt.Sprintf("http://localhost:%d%s", codexCallbackPort, codexCallbackPath)
234234
}
235235
func buildCodexAuthorizeURL(pkce pkcePair, state, redirectURI string) string {
236236
q := url.Values{}

core/internal/subscriptionauth/oauth_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ func TestBuildClaudeAuthorizeURLUsesClaudeCodeClientID(t *testing.T) {
4040
}
4141
}
4242

43-
func TestCodexRedirectURIUsesLoopbackIP(t *testing.T) {
43+
func TestCodexRedirectURIUsesLocalhost(t *testing.T) {
4444
redirectURI := codexRedirectURI()
45-
if redirectURI != "http://127.0.0.1:1455/auth/callback" {
45+
if redirectURI != "http://localhost:1455/auth/callback" {
4646
t.Fatalf("redirect URI = %q", redirectURI)
4747
}
4848

electron/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function windowTitle() {
5454

5555
function buildBrowserWindowOptions() {
5656
const options = {
57-
width: 960,
57+
width: 720,
5858
height: 760,
5959
minWidth: 640,
6060
minHeight: 560,

0 commit comments

Comments
 (0)