Skip to content

Fix stars pill 404 for logged-out visitors#121

Closed
devswha wants to merge 1 commit into
code-yeongyu:mainfrom
devswha:fix/star-pill-404-for-logged-out
Closed

Fix stars pill 404 for logged-out visitors#121
devswha wants to merge 1 commit into
code-yeongyu:mainfrom
devswha:fix/star-pill-404-for-logged-out

Conversation

@devswha

@devswha devswha commented Jul 10, 2026

Copy link
Copy Markdown

Problem

The GitHub stars pill on lazycodex.ai links to https://github.com/code-yeongyu/lazycodex/stargazers. GitHub now returns 404 on /stargazers for logged-out visitors — reproducible even on facebook/react/stargazers — so the most prominent CTA on the landing page dead-ends for anonymous visitors. Easy to miss while logged in, since the page works fine for authenticated users.

Verified in a headless browser (logged out):

URL Status
github.com/code-yeongyu/lazycodex/stargazers 404
github.com/facebook/react/stargazers 404 (GitHub-wide policy, not repo-specific)
github.com/code-yeongyu/lazycodex 200

Fix

  • packages/web/lib/site-config.ts — point githubStarsUrl at the repo page, where the star button lives anyway.
  • packages/web/e2e/landing.spec.ts — update the test name to match (assertion logic unchanged; it reads SITE_CONFIG.githubStarsUrl).
  • README.md — the stars badge had the same /stargazers link.

Verification

Ran locally in packages/web:

  • pnpm run type-check — pass
  • pnpm run lint — pass
  • pnpm run test:e2e59 passed (3.1m), including the stars pill link + live API tests and both Lighthouse 100/100/100/100 presets

Note on the PR routing workflow

I'm aware pr-source-guidance.yml auto-closes PRs here and points to oh-my-openagent/packages/omo-codex — but packages/web (the lazycodex.ai source) only exists in this repository, and the sync script in oh-my-openagent copies only the marketplace/plugin and the workflow file. Website fixes currently have no valid upstream PR path, so opening here; happy to re-file wherever you prefer.


Summary by cubic

Point the landing page stars pill to the repo page instead of /stargazers to avoid GitHub’s 404 for logged-out visitors. Also updates the README badge and the e2e test to match.

  • Bug Fixes
    • packages/web/lib/site-config.ts: set githubStarsUrl to https://github.com/code-yeongyu/lazycodex
    • packages/web/e2e/landing.spec.ts: rename test to reflect new target; assertions unchanged
    • README.md: update stars badge link to the repo page

Written for commit b7bb6d1. Summary will update on new commits.

Review in cubic

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.
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for the PR! Changes to LazyCodex land through oh-my-openagent — could you open this against omo-codex over there instead? PRs in this repository can't be merged.

If you're working with a coding agent, prompt it like this:

I opened #121 ("Fix stars pill 404 for logged-out visitors") against code-yeongyu/lazycodex, but changes there land through code-yeongyu/oh-my-openagent, where the Codex implementation lives under packages/omo-codex. Read my original PR, then open an equivalent PR against code-yeongyu/oh-my-openagent. In the new PR body, link the original PR (#121), explain that it was first opened against lazycodex, and describe in detail what that PR changed and why.

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.

1 participant