Skip to content

fix: remove OpenClaw chat-first BOOTSTRAP.md on startup#917

Merged
su8su merged 1 commit intomainfrom
fix_bootstrap
Apr 25, 2026
Merged

fix: remove OpenClaw chat-first BOOTSTRAP.md on startup#917
su8su merged 1 commit intomainfrom
fix_bootstrap

Conversation

@su8su
Copy link
Copy Markdown
Contributor

@su8su su8su commented Apr 25, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment on lines 306 to +307
logger.warn(`ClawX context merge: ${skipped} file(s) still missing after ${MAX_RETRIES} retries`);
await removeChatFirstBootstrapFiles();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@su8su su8su merged commit 04e234b into main Apr 25, 2026
5 checks passed
@su8su su8su deleted the fix_bootstrap branch April 25, 2026 07:43
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