From b7bb6d19d3efa8c810eaa8749f927b7f957d074a Mon Sep 17 00:00:00 2001 From: devswha Date: Fri, 10 Jul 2026 16:38:29 +0900 Subject: [PATCH] Fix stars pill 404 for logged-out visitors GitHub now returns 404 on /stargazers for anonymous visitors (reproducible even on facebook/react/stargazers), so the landing page stars pill and the README badge dead-end for logged-out users. Point both at the repo page, where the star button lives. --- README.md | 2 +- packages/web/e2e/landing.spec.ts | 2 +- packages/web/lib/site-config.ts | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2747f7a..2f0637d 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Project memory, planning, execution, and verified completion inside Codex.

- + Stars

diff --git a/packages/web/e2e/landing.spec.ts b/packages/web/e2e/landing.spec.ts index 3e1db25..e434841 100644 --- a/packages/web/e2e/landing.spec.ts +++ b/packages/web/e2e/landing.spec.ts @@ -84,7 +84,7 @@ test.describe("landing page — install + commands", () => { }) test.describe("landing page — links + footer", () => { - test("github stars pill links to the stargazers url with a count", async ({ page }) => { + test("github stars pill links to the github repo with a count", async ({ page }) => { await page.goto("/") const stars = page.locator(`a[href="${SITE_CONFIG.githubStarsUrl}"]`).first() await expect(stars).toBeVisible() diff --git a/packages/web/lib/site-config.ts b/packages/web/lib/site-config.ts index 5b851de..a0d643c 100644 --- a/packages/web/lib/site-config.ts +++ b/packages/web/lib/site-config.ts @@ -3,7 +3,9 @@ export const SITE_CONFIG = { installCommandAutonomous: "npx lazycodex-ai install --no-tui --codex-autonomous", installEquivalent: "npx --yes --package oh-my-openagent omo install --platform=codex", githubUrl: "https://github.com/code-yeongyu/lazycodex", - githubStarsUrl: "https://github.com/code-yeongyu/lazycodex/stargazers", + // GitHub returns 404 on /stargazers for logged-out visitors, so the stars + // pill links to the repo page — where the star button lives anyway. + githubStarsUrl: "https://github.com/code-yeongyu/lazycodex", omoUrl: "https://github.com/code-yeongyu/oh-my-openagent", siteUrl: "https://lazycodex.ai", docsPath: "/docs",