fix: remove OpenClaw chat-first BOOTSTRAP.md on startup#917
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b71fa09a55
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| logger.warn(`ClawX context merge: ${skipped} file(s) still missing after ${MAX_RETRIES} retries`); | ||
| await removeChatFirstBootstrapFiles(); |
There was a problem hiding this comment.
Avoid deleting BOOTSTRAP.md before seeding completes
ensureClawXContext now removes BOOTSTRAP.md even in the fallback path where skipped > 0 after all retries. In this function, skipped means required workspace templates (like AGENTS.md / TOOLS.md) are still missing, so this branch represents incomplete gateway seeding; deleting BOOTSTRAP.md here can leave a workspace with neither the chat-first bootstrap nor merged ClawX context (for example during slow startup or when seeding is delayed). Restrict bootstrap removal to the successful skipped === 0 path, or gate it on explicit verification that regular workspace files exist.
Useful? React with 👍 / 👎.
No description provided.