mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
Fix: Session resume null property error (#577)
- Fixed async/await issues in session-manager.js where getSession was called without await - Added proper database initialization checks before accessing db.prepare - Implemented in-memory fallback support for all session operations - Added initialization promise to ensure database is ready before use - Fixed multiple async methods that were missing await calls This resolves the 'Cannot read properties of null (reading prepare)' error when resuming sessions on macOS, Debian, and other platforms.
This commit is contained in:
1 parent
067a772513
commit
8936bb2faf
5 files changed
+42
-4
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"startTime": 1754356618077,
|
||||
"startTime": 1754356706346,
|
||||
"totalTasks": 1,
|
||||
"successfulTasks": 1,
|
||||
"failedTasks": 0,
|
||||
|
||||
@@ -34,5 +34,41 @@
|
||||
"cpuLoad": 0.08375,
|
||||
"platform": "linux",
|
||||
"uptime": 74931.75
|
||||
},
|
||||
{
|
||||
"timestamp": 1754356645983,
|
||||
"memoryTotal": 67427545088,
|
||||
"memoryUsed": 10217861120,
|
||||
"memoryFree": 57209683968,
|
||||
"memoryUsagePercent": 15.153838252103977,
|
||||
"memoryEfficiency": 84.84616174789602,
|
||||
"cpuCount": 16,
|
||||
"cpuLoad": 0.050625,
|
||||
"platform": "linux",
|
||||
"uptime": 74961.77
|
||||
},
|
||||
{
|
||||
"timestamp": 1754356676014,
|
||||
"memoryTotal": 67427545088,
|
||||
"memoryUsed": 10423971840,
|
||||
"memoryFree": 57003573248,
|
||||
"memoryUsagePercent": 15.459515582831356,
|
||||
"memoryEfficiency": 84.54048441716864,
|
||||
"cpuCount": 16,
|
||||
"cpuLoad": 0.09125,
|
||||
"platform": "linux",
|
||||
"uptime": 74991.8
|
||||
},
|
||||
{
|
||||
"timestamp": 1754356706022,
|
||||
"memoryTotal": 67427545088,
|
||||
"memoryUsed": 10579759104,
|
||||
"memoryFree": 56847785984,
|
||||
"memoryUsagePercent": 15.69055953348488,
|
||||
"memoryEfficiency": 84.30944046651513,
|
||||
"cpuCount": 16,
|
||||
"cpuLoad": 0.141875,
|
||||
"platform": "linux",
|
||||
"uptime": 75021.81
|
||||
}
|
||||
]
|
||||
@@ -1,10 +1,10 @@
|
||||
[
|
||||
{
|
||||
"id": "cmd-hooks-1754356618176",
|
||||
"id": "cmd-hooks-1754356706448",
|
||||
"type": "hooks",
|
||||
"success": true,
|
||||
"duration": 8.012372,
|
||||
"timestamp": 1754356618185,
|
||||
"duration": 7.342281999999955,
|
||||
"timestamp": 1754356706455,
|
||||
"metadata": {}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
{"branch": "checkpoint/pre-edit-20250805-011758", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/hive-mind/session-manager.js", "timestamp": "2025-08-05T01:17:58Z", "type": "pre-edit", "original_branch": "alpha-85"}
|
||||
@@ -0,0 +1 @@
|
||||
{"tag": "checkpoint-20250805-011800", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/hive-mind/session-manager.js", "timestamp": "2025-08-05T01:18:00Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 24 ++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/1754356668.json | 1 + .claude/checkpoints/1754356669.json | 1 + claude-flow-wiki | 0 .../simple-commands/hive-mind/session-manager.js | 7 +++++++ 7 files changed, 37 insertions(+), 4 deletions(-) "}
|
||||
Reference in new issue
Block a user