mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
Merge pull request #1 from busla/fix-session-resume-error
fix(session): fix missing promise for db session
This commit is contained in:
commit
982dc3bb80
4 files changed
+5
-5
No files matched your search
@@ -20,7 +20,7 @@ export const pauseCommand = new Command('pause')
|
||||
if (options.session) {
|
||||
// Pause specific session
|
||||
const sessionId = options.session;
|
||||
const session = sessionManager.getSession(sessionId);
|
||||
const session = await sessionManager.getSession(sessionId);
|
||||
|
||||
if (!session) {
|
||||
console.log(chalk.red(`Session ${sessionId} not found`));
|
||||
|
||||
@@ -54,7 +54,7 @@ export const stopCommand = new Command('stop')
|
||||
} else if (options.session) {
|
||||
// Stop specific session
|
||||
const sessionId = options.session;
|
||||
const session = sessionManager.getSession(sessionId);
|
||||
const session = await sessionManager.getSession(sessionId);
|
||||
|
||||
if (!session) {
|
||||
console.log(chalk.red(`Session ${sessionId} not found`));
|
||||
|
||||
@@ -2536,7 +2536,7 @@ async function resumeSession(args, flags) {
|
||||
const sessionManager = new HiveMindSessionManager();
|
||||
|
||||
// Get session details
|
||||
const session = sessionManager.getSession(sessionId);
|
||||
const session = await sessionManager.getSession(sessionId);
|
||||
|
||||
if (!session) {
|
||||
spinner.fail(`Session ${sessionId} not found`);
|
||||
@@ -2640,7 +2640,7 @@ async function stopSession(args, flags) {
|
||||
const sessionManager = new HiveMindSessionManager();
|
||||
|
||||
// Get session details
|
||||
const session = sessionManager.getSession(sessionId);
|
||||
const session = await sessionManager.getSession(sessionId);
|
||||
|
||||
if (!session) {
|
||||
spinner.fail(`Session ${sessionId} not found`);
|
||||
|
||||
@@ -500,7 +500,7 @@ To enable persistence, see: https://github.com/ruvnet/claude-code-flow/docs/wind
|
||||
* Resume any previous session (paused, stopped, or inactive)
|
||||
*/
|
||||
async resumeSession(sessionId) {
|
||||
const session = this.getSession(sessionId);
|
||||
const session = await this.getSession(sessionId);
|
||||
|
||||
if (!session) {
|
||||
throw new Error(`Session ${sessionId} not found`);
|
||||
|
||||
Reference in new issue
Block a user