Skip to content

fix(docs): read the Content overview with a few GitHub requests - #412

Merged
onmax merged 1 commit into
mainfrom
feat/content-github-app
Nov 12, 2026
Merged

onmax merged 1 commit into
mainfrom
feat/content-github-app

Conversation

@onmax

@onmax onmax commented Nov 12, 2026

Copy link
Copy Markdown
Owner

The Content dashboard in the ViteHub Console never loads for comark-ui. A cold documents.action overview sent 1,244 GitHub requests: on production it ended in 403 Rate limited by the forge on the shared token, or in Cloudflare 1102 (Worker over its resource limits).

This pins every ViteHub package to vite-hub/vitehub#4138 (bc43707, stacked on #4137), where the GitHub store reads the overview with a few requests and keeps the answers that never change in KV. It also turns on vitehub.kv, so the store gets the comark-ui-kv namespace that the last deploy created and a new isolate reads its cache from there. docs/CMS.md now says how the store signs in: as the Personal Project CMS App when VITEHUB_GITHUB_APP_ID and VITEHUB_GITHUB_PRIVATE_KEY are set, else with VITEHUB_GITHUB_TOKEN. The Bitwarden item has the App ID and the OAuth client, but no private key, so production keeps the token for now.

Signed overview calls against wrangler dev of the production build, with the real repository:

Overview GitHub requests (rate limit used) Time
New server, empty KV 18 9.9 s
Same server, second call 0 (all 304) 1.6 s
New server, KV filled 3 1.3 s

All three return the same JSON: Pages 341 published and 1 draft (badges), Package pages 73 published, and one save in the activity list.

Also ran the CI steps: frozen install, pnpm build, pnpm docs:generate, pnpm docs:links, the compat flag check, wrangler deploy --dry-run with the worker budget (6.97 MiB gzip), pnpm check, pnpm test, pnpm run doctor and pnpm test:e2e. One remark-to-comark CLI test hung because this machine has a stray /tmp/.git; it passes with another TMPDIR.

Move the pin back to a main build once #4137 and #4138 merge.

Prepared with Claude Opus 5.5 in T3 Code.

Pin ViteHub to vite-hub/vitehub#4138 (bc43707): the Content GitHub store
reads the Console overview with 3 requests when KV holds its cache, and can
sign in as a GitHub App installation. Turn on KV so a new Worker isolate
shares that cache.
@pullfrog

pullfrog Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

The workflow's Verify CLIProxy completion step failed, so Pullfrog never ran. That step runs before Pullfrog in this repo's workflow, so the fix is in the workflow or that step's own setup.

GitHub's error
Process completed with exit code 22.

View the step's logs →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-12T11:04:47.651873Z
We couldn’t complete this review. Comment @codex review to try again.
171902b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vite-hub

vite-hub Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Session

Waiting for running checks before the next pass.

Session

Waiting for running checks before the next pass.

@pkg-pr-new

pkg-pr-new Bot commented Nov 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@412

comark-badge

pnpm add https://pkg.pr.new/comark-badge@412

comark-cards

pnpm add https://pkg.pr.new/comark-cards@412

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@412

comark-cast

pnpm add https://pkg.pr.new/comark-cast@412

comark-charts

pnpm add https://pkg.pr.new/comark-charts@412

comark-chat

pnpm add https://pkg.pr.new/comark-chat@412

comark-chips

pnpm add https://pkg.pr.new/comark-chips@412

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@412

comark-code

pnpm add https://pkg.pr.new/comark-code@412

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@412

comark-colors

pnpm add https://pkg.pr.new/comark-colors@412

comark-comments

pnpm add https://pkg.pr.new/comark-comments@412

comark-critic

pnpm add https://pkg.pr.new/comark-critic@412

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@412

comark-details

pnpm add https://pkg.pr.new/comark-details@412

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@412

comark-diff

pnpm add https://pkg.pr.new/comark-diff@412

comark-embed

pnpm add https://pkg.pr.new/comark-embed@412

comark-fields

pnpm add https://pkg.pr.new/comark-fields@412

comark-figure

pnpm add https://pkg.pr.new/comark-figure@412

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@412

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@412

comark-github

pnpm add https://pkg.pr.new/comark-github@412

comark-icon

pnpm add https://pkg.pr.new/comark-icon@412

comark-include

pnpm add https://pkg.pr.new/comark-include@412

comark-keys

pnpm add https://pkg.pr.new/comark-keys@412

comark-links

pnpm add https://pkg.pr.new/comark-links@412

comark-linter

pnpm add https://pkg.pr.new/comark-linter@412

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@412

comark-mark

pnpm add https://pkg.pr.new/comark-mark@412

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@412

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@412

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@412

comark-media

pnpm add https://pkg.pr.new/comark-media@412

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@412

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@412

comark-outline

pnpm add https://pkg.pr.new/comark-outline@412

comark-properties

pnpm add https://pkg.pr.new/comark-properties@412

comark-qr

pnpm add https://pkg.pr.new/comark-qr@412

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@412

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@412

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@412

comark-sources

pnpm add https://pkg.pr.new/comark-sources@412

comark-steps

pnpm add https://pkg.pr.new/comark-steps@412

comark-table

pnpm add https://pkg.pr.new/comark-table@412

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@412

comark-tests

pnpm add https://pkg.pr.new/comark-tests@412

comark-time

pnpm add https://pkg.pr.new/comark-time@412

comark-ui

pnpm add https://pkg.pr.new/comark-ui@412

comark-xref

pnpm add https://pkg.pr.new/comark-xref@412

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@412

commit: 171902b

@onmax
onmax merged commit 7e6eecc into main Nov 12, 2026
5 of 6 checks passed
@onmax
onmax deleted the feat/content-github-app branch November 12, 2026 11:14
This was referenced Nov 12, 2026
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