chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-06 01:35:13 +00:00
parent 8555de8189
commit 6e7c9eb820
4 changed files with 74 additions and 54 deletions

View File

@@ -60,9 +60,9 @@ export const SessionDeleteCommand = effectCmd({
handler: Effect.fn("Cli.session.delete")(function* (args) {
const svc = yield* Session.Service
const sessionID = SessionID.make(args.sessionID)
yield* svc.remove(sessionID).pipe(
Effect.catchIf(NotFoundError.isInstance, () => fail(`Session not found: ${args.sessionID}`)),
)
yield* svc
.remove(sessionID)
.pipe(Effect.catchIf(NotFoundError.isInstance, () => fail(`Session not found: ${args.sessionID}`)))
UI.println(UI.Style.TEXT_SUCCESS_BOLD + `Session ${args.sessionID} deleted` + UI.Style.TEXT_NORMAL)
}),
})