Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

fix: merge wallet persistence PR, fix safety issues, update docs - #19

Merged
whoabuddy merged 6 commits into
mainfrom
quest/repo-cleanup
Feb 17, 2026
Merged

fix: merge wallet persistence PR, fix safety issues, update docs#19
whoabuddy merged 6 commits into
mainfrom
quest/repo-cleanup

Conversation

@whoabuddy

@whoabuddy whoabuddy commented Feb 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • Verify shellcheck passes on all shell scripts (entrypoint.sh, local-setup.sh, vps-setup.sh)
  • Verify hadolint passes on Dockerfile
  • Verify markdownlint passes on README.md
  • Verify setup sync tests pass (Dockerfile sync, autonomy presets, SKILL.md sync)
  • Review entrypoint.sh migration safety (error handling before rm)
  • Review README "Updating" section for accuracy

🤖 Generated with Claude Code

whoabuddy and others added 5 commits February 16, 2026 16:43
Clean up old planning directories from previous quest system.
Phase 1 of repo-cleanup quest.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Prevents data loss if cp fails during wallet/moltbook migration.
Previously, cp failure (|| true) would be followed by rm, deleting
the source before we knew the copy succeeded.

Now checks cp exit code and only removes source if copy succeeded.
If copy fails, preserves original directory and logs warning.

Addresses safety concern in PR #18.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Pin @aibtc/mcp-server@1.22.2 (was @latest, previously @1.14.2)
- Pin OpenClaw base image to v2026.2.2 (was :latest)
- Sync vps-setup.sh inline Dockerfile with repo Dockerfile
- Add entrypoint.sh creation to vps-setup.sh
- Add entrypoint.sh to CI shellcheck

Closes #17

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ty procedures

Add comprehensive documentation covering:
- Symlink persistence model explanation (entrypoint.sh → volume mount)
- Pre-update backup procedures with mnemonic/seed phrase reminder
- Enhanced update procedures (full rebuild vs quick restart)
- Post-update health checks and verification steps
- Data safety warnings and best practices

This addresses the documentation gap for the new wallet persistence model
introduced in PR #18, ensuring users understand how their data persists
across Docker rebuilds and how to safely manage updates.

Relates to issue #16 (update docs).

Co-Authored-By: Claude <noreply@anthropic.com>
…ipts

- Move hadolint ignore comment to line immediately before RUN instruction
- Add SHELL directive, comments, and formatting to vps-setup.sh inline Dockerfile
- Add SHELL directive, comments, and formatting to local-setup.sh inline Dockerfile
- Ensures all three Dockerfiles have consistent structure and pass hadolint

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the container/runtime setup to persist wallet and Moltbook credentials across Docker rebuilds, improves migration safety in the entrypoint, bumps the MCP server version, expands update documentation, and cleans up stale planning artifacts.

Changes:

  • Add/standardize an entrypoint.sh persistence/migration mechanism (symlink into ~/.openclaw volume) and include it in CI ShellCheck.
  • Pin the base image to ghcr.io/openclaw/openclaw:v2026.2.2 and bump @aibtc/mcp-server to 1.22.2 in the canonical Dockerfile (and VPS setup).
  • Expand README “Updating” docs and remove tracked .planning/ files.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
vps-setup.sh Adds generation of entrypoint.sh, updates inline Dockerfile to pinned base + MCP version, and uses ENTRYPOINT to enable persistence.
local-setup.sh Updates inline Dockerfile (but currently not kept in sync with the repo Dockerfile’s pinned base/version).
entrypoint.sh Adds safer migration behavior (only rm -rf after successful copy) and symlink-based persistence.
README.md Documents persistence model, backup/update procedure, and post-update health checks.
Dockerfile Pins base image and MCP server version; installs gh CLI dependencies; wires in entrypoint.
.github/workflows/ci.yml Adds entrypoint.sh to ShellCheck in CI.
.planning/... Removes stale planning docs from the repo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread vps-setup.sh
Comment thread local-setup.sh Outdated
Comment thread README.md Outdated
Comment thread entrypoint.sh
Comment thread entrypoint.sh
Comment thread vps-setup.sh
Comment thread Dockerfile Outdated
Comment thread vps-setup.sh Outdated
Comment thread local-setup.sh Outdated
- Pin mcporter to v0.7.3 instead of @latest (supply chain safety)
- Add guards for existing non-directory paths before symlink creation
- Fix local-setup.sh: pin base image to v2026.2.2, pin package versions
- Sync local-setup.sh entrypoint with error-checked migration pattern
- Fix README: clarify workspace persists via volume mount, not symlink

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@whoabuddy
whoabuddy merged commit 783b7a6 into main Feb 17, 2026
8 checks passed
@whoabuddy
whoabuddy deleted the quest/repo-cleanup branch February 17, 2026 02:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

2 participants