Merge pull request #1 from busla/fix-session-resume-error

fix(session): fix missing promise for db session
This commit is contained in:
Jón Levy authored and GitHub committed 2025-08-04 23:50:33 +00:00
commit 982dc3bb80
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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`));
+1 -1
View File
@@ -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`));
+2 -2
View File
@@ -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`);