Skip to content

The one and only agent harness for complex codebases. Project memory, planning, execution, and verified completion inside Codex.

fix(web): the github stars pill 404'd — GitHub locked /stargazers pages

YeonGyu-Kim9b9f8e8f620e
diff --git a/packages/web/components/site/github-stars-pill.tsx b/packages/web/components/site/github-stars-pill.tsx
index bb576b8e..8c727089 100644
--- a/packages/web/components/site/github-stars-pill.tsx
+++ b/packages/web/components/site/github-stars-pill.tsx
@@ -55,7 +55,9 @@ export function GithubStarsPill(): JSX.Element {
return (
<a
- href={SITE_CONFIG.githubStarsUrl}
+ // GitHub restricted /stargazers pages to repo admins (July 2026), so a
+ // deep link there 404s for visitors — send them to the repo instead.
+ href={SITE_CONFIG.githubUrl}
target="_blank"
rel="noopener noreferrer"
className="group flex h-8 items-center gap-1.5 rounded-full border border-[color:var(--accent-primary-border)] bg-[color:var(--accent-primary-soft)] px-3 text-sm font-medium text-[color:var(--accent-primary)] transition-colors hover:border-[color:var(--accent-primary)] hover:bg-[color:var(--accent-primary-soft)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--accent-primary)]"
diff --git a/packages/web/e2e/landing.spec.ts b/packages/web/e2e/landing.spec.ts
index 3e1db252..1521f29b 100644
--- a/packages/web/e2e/landing.spec.ts
+++ b/packages/web/e2e/landing.spec.ts
@@ -84,19 +84,23 @@ 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 repository with a count", async ({ page }) => {
await page.goto("/")
- const stars = page.locator(`a[href="${SITE_CONFIG.githubStarsUrl}"]`).first()
+ const stars = page.locator(`a[href="${SITE_CONFIG.githubUrl}"]`).first()
await expect(stars).toBeVisible()
await expect(stars).toContainText(/stars/i)
await expect(stars).toContainText(/\d/)
await expect(stars).not.toContainText(/^0\sstars$/)
+ // GitHub restricted /stargazers pages to repo admins (July 2026) — deep
+ // links there now 404 for visitors, so the pill must never point at one.
+ const stargazersLinks = page.locator('a[href*="/stargazers"]')
+ await expect(stargazersLinks).toHaveCount(0)
})
test("updates the github stars pill from the live API", async ({ page }) => {
await page.goto("/")
- const stars = page.locator(`a[href="${SITE_CONFIG.githubStarsUrl}"]`).first()
+ const stars = page.locator(`a[href="${SITE_CONFIG.githubUrl}"]`).first()
await expect(stars).toContainText(/^\d+(?:\.\d+[kM])?\sstars$/)
await expect(stars).toHaveAttribute("aria-label", /\d+(?:\.\d+[kM])?\sstars on GitHub/)
})
diff --git a/packages/web/lib/site-config.ts b/packages/web/lib/site-config.ts
index 5b851de2..bcbc8397 100644
--- a/packages/web/lib/site-config.ts
+++ b/packages/web/lib/site-config.ts
@@ -3,7 +3,6 @@ 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",
omoUrl: "https://github.com/code-yeongyu/oh-my-openagent",
siteUrl: "https://lazycodex.ai",
docsPath: "/docs",