Skip to content

Commit 5cfe147

Browse files
committed
docs: add SIGUSR2 monolithic restart fix to changelog and evolution
- CHANGELOG.md: add Fix entry under v1.0.4 for the SIGUSR2 restart fix when UPDATER.ACTIVE is false (4057e37) - docs/EVOLUTION.md: update v1.0.3→v1.0.4 entry from 1 to 2 commits with SIGUSR2 fix description; bump total commits 1660→1661
1 parent 4057e37 commit 5cfe147

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
99
- **Fix**: prevent daemon-downtime-after-update — `detectMonolithicRuntime()` relied solely on the PID file; when the daemon shut down during git/npm operations the PID file was cleaned up, so detection returned null and no restart was attempted, leaving the user with no running bots. Added pre-update state snapshot (`monolithicWasRunning`, `hadMonolithicFiles`) captured before any git operations. Fallback auto-start via `node unlock` (TTY-gated) when daemon was alive before update but gone after build (`scripts/update.ts`).
1010
- **Fix**: stash leak and broken working tree — `git stash push` now only runs when the working tree actually has local changes; replaces `git stash pop` with `git stash apply` + unconditional `git stash drop` to eliminate orphaned stash entries; auto-resolves conflicts via `git checkout --theirs` (stash = user's local changes should win); regenerates conflicted `package-lock.json` via `npm install` (`scripts/update.ts`).
1111
- **Chore**: version bumped to 1.0.4 across all manifests (`package.json`, `package-lock.json`, `claw/package.json`, `analysis/ama_fitting/package.json`, `claw/runtimes/openclaw-plugin/package.json`, `claw/runtimes/openclaw-plugin/openclaw.plugin.json`).
12+
- **Fix**: preserve SIGUSR2 monolithic restart when `UPDATER.ACTIVE` is false — monolithic wrapper's SIGUSR2 handler depended on `updater.pendingRestart` to signal bot restart after shutdown; with `UPDATER.ACTIVE` defaulting to `false`, the flag was never set, causing the exit handler to skip restart. Added a local `pendingRestart` boolean in `unlock.ts` independent of the updater (`4057e37c`).
1213

1314
## [1.0.3] - 2026-07-01 - Two-Step Candle Gap Repair
1415

docs/EVOLUTION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ Auto-update disabled by default, update script hardened, DAEMON_ERRORS retry-pat
167167
### v1.0.2 → v1.0.3 (5 commits)
168168
Two-step candle gap repair in market adapter (auto-fill ≤24h, then Kibana), market adapter log deduplication, doc version/commit reference refresh.
169169

170-
### v1.0.3 → v1.0.4 (1 commit)
171-
Update script hardening: daemon-downtime-after-update fix (pre-update state snapshot, TTY-gated auto-restart fallback), stash leak elimination (conditional push, apply+drop, auto-resolve with `--theirs`, conflicted `package-lock.json` regeneration).
170+
### v1.0.3 → v1.0.4 (2 commits)
171+
Update script hardening: daemon-downtime-after-update fix (pre-update state snapshot, TTY-gated auto-restart fallback), stash leak elimination (conditional push, apply+drop, auto-resolve with `--theirs`, conflicted `package-lock.json` regeneration). SIGUSR2 monolithic restart fix when `UPDATER.ACTIVE` is false — added local `pendingRestart` flag in `unlock.ts` independent of the updater.
172172

173173
---
174174

@@ -219,6 +219,6 @@ DEXBot2 has matured from a basic grid bot into a signal-intelligent, production-
219219

220220
**Report Originally Generated**: February 19, 2026
221221
**Last Updated**: July 1, 2026 (v1.0.4)
222-
**Total Commits**: 1660
222+
**Total Commits**: 1661
223223
**Date Range**: December 2, 2025 - July 1, 2026 (ongoing)
224224
**Repository**: DEXBot2 (BitShares DEX Trading Bot)

0 commit comments

Comments
 (0)