mirror of
https://github.com/ranxianglei/billion-context.git
synced 2026-11-25 21:03:15 +08:00
#7674 — the corruption producer, per the source comparison with opencode-stable (13 concurrent writers, 9.55 GB db, zero damage): opencode never asks SQLite to shrink the WAL; the old 8 MiB default made the engine truncate index.db-wal internally after EVERY completed checkpoint — an implicit floor-reclaim that no JS-side guard covers, pulling the WAL out from under live peer connections sharing the sessions dir (#2671 five-daemon topology, kill-9 handovers). Damage shape = #7156 (pages double-allocated in the tail, index pages corrupt first); three field events 2026-11-19/21/23 plus the #7156 incident. - storage.walJournalSizeLimitBytes default 8388608 -> 0: 0 = the engine does not truncate (file sits at its bounded historical high-water mark; field ~55 MiB steady); a POSITIVE value keeps the legacy truncate-to-N behavior for anyone who wants it. - open/close reclaim: TRUNCATE -> PASSIVE (frames still converge at lane boot / daemon stop; the WAL file is never truncated behind live peers). The #7156 activeForeignWriter guard around those two call sites is dead code now and is removed; the #4175 lock file itself stays (the integrity-cache invalidation still consumes it). - gc/vacuum operator-requested reclaim: TRUNCATE kept there (explicit, infrequent, logged). - docs en/zh/ja + website config reference + config.ts comment.
website — billion-context site
Static landing page + docs. No build step, no dependencies — plain HTML/CSS/JS.
Deployed to GitHub Pages by
.github/workflows/pages.yml — manual workflow_dispatch only for now: the repo
has no GitHub Pages site yet, so auto-deploy on push is suspended (#4598).
Local preview
cd website
python3 -m http.server 8090
# → http://127.0.0.1:8090/
All asset references are relative so the pages work under any mount path
(https://<user>.github.io/<repo>/, subfolder, nginx root, custom domain).
Files
| file | purpose |
|---|---|
index.html |
landing page; EN strings are the default |
styles.css |
design system, light/dark via prefers-color-scheme |
main.js |
EN/中文 toggle (persisted in localStorage), copy buttons, scroll reveal |
docs/index.html |
bilingual /docs/ page |
TODO before launch
- Add
og.png(1200×630 social card); already referenced from both pages. - Custom domain: once confirmed, add a
CNAMEfile here (e.g.billion-context.com), enable HTTPS in GitHub Pages settings, and update thecanonical/og:urlplaceholders inindex.html+docs/index.html. Relative links keep working — nothing else changes.