feat: add real tmux session manager

This commit is contained in:
chungyeong
2026-05-13 21:44:58 +09:00
parent aa3033771a
commit ef4c56e6b0
14 changed files with 3499 additions and 76 deletions

View File

@@ -112,9 +112,12 @@ export async function startM4Api(options: StartM4ApiOptions = {}): Promise<Start
sessionRecovery,
sessionManager,
async stop() {
await sessionManager.shutdown();
if (ownedClient) {
await dbClient.close();
try {
await sessionManager.shutdown();
} finally {
if (ownedClient) {
await dbClient.close();
}
}
},
};