fix(server): avoid deadlock during command payload recovery

This commit is contained in:
cabbage committed 2026-10-29 08:34:39 +00:00
1 parent 8d28925e44
commit ef6e65e6f1
4 files changed
+186 -23

No files matched your search

+6
View File
@@ -133,6 +133,12 @@ exact ignored `dist/` directory after preserving any evidence.
protection. Inspect command retention and free space, allow terminal-age or
quota rotation to reclaim eligible data, or enlarge the owned filesystem.
Never manually remove live SQLite/WAL/segment files.
- **Startup remains unready and control requests time out:** a corrected server
release is required if payload recovery is waiting for SQLite's sole
connection while holding a command cursor. Recovery now joins script
descriptors and payloads in one query and decompresses stored execution
descriptions before validation. Preserve the existing data directory during
upgrade; deleting command history is unnecessary.
- **Repeated `signal command ...: command is not running`:** early v1 clients
closed their session instead of returning a negative signal result when an
old queued/replayed signal reached an already-exited process. Upgrade the