add auto formatting and experimental hooks feature

This commit is contained in:
Dax Raad
2025-06-26 22:12:23 -04:00
parent a4f32d602b
commit f8b78f08b4
8 changed files with 269 additions and 3 deletions

View File

@@ -853,6 +853,17 @@ export namespace Session {
[Symbol.dispose]() {
log.info("unlocking", { sessionID })
state().pending.delete(sessionID)
Config.get().then((cfg) => {
if (cfg.experimental?.hook?.session_completed) {
for (const item of cfg.experimental.hook.session_completed) {
Bun.spawn({
cmd: item.command,
cwd: App.info().path.cwd,
env: item.environment,
})
}
}
})
},
}
}