← 教程列表
coding

OpenCode

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 8 阅读

- **Bootstrap content cached at module level** — `getBootstrapContent()` was calling `fs.existsSync` + `fs.readFileSync` + frontmatter regex on every agent step (the `experimental.chat.messages.transform` hook fires on every step in OpenCode's agent loop). Now read once, cached for the session lifetime, with a null sentinel for the missing-file case. 15 regression tests cover cache behavior, fs call counts, the injection guard, the missing-file sentinel, and cache reset. (Fixes #1202) - **Integration tests modernized**. - **Install caveats clarified** in the README.

← 返回教程列表 AI8899 · 内容仅供学习参考