save changes after review completes

This commit is contained in:
Chris Wanstrath 2026-02-20 18:41:36 -08:00
parent 71830c6bd5
commit e88de1aed3

View File

@ -1,6 +1,6 @@
import * as vm from "../vm.ts" import * as vm from "../vm.ts"
import { spinner } from "../spinner.ts" import { spinner } from "../spinner.ts"
import { requireSession } from "./helpers.ts" import { requireSession, saveChanges } from "./helpers.ts"
export async function action(branch: string, opts: { print?: boolean }) { export async function action(branch: string, opts: { print?: boolean }) {
const { session } = await requireSession(branch) const { session } = await requireSession(branch)
@ -19,4 +19,6 @@ export async function action(branch: string, opts: { print?: boolean }) {
spin.succeed("Session ready") spin.succeed("Session ready")
await vm.claude(session.worktree, { prompt }) await vm.claude(session.worktree, { prompt })
} }
await saveChanges(session.worktree, session.branch)
} }