Skip to content

Commit b35c673

Browse files
basiclinesCopilot
andcommitted
fix: move sessionMode declaration before first use
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cc51de0 commit b35c673

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/compile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ async function cmdBuild(
715715
writeFileSync(promptPath, prompt);
716716

717717
// 5. Print header
718+
const sessionMode = autopilot ? "autopilot" : "interactive";
718719
printBuildHeader(target, config, sessionMode);
719720
log(` ${chalk.dim(`${dirty.length} dirty specs to compile`)}\n`);
720721

@@ -732,7 +733,6 @@ async function cmdBuild(
732733
};
733734

734735
// 7. Create session
735-
const sessionMode = autopilot ? "autopilot" : "interactive";
736736
const sessionConfig: Record<string, unknown> = {
737737
model: config.model,
738738
onPermissionRequest: approveAll,

0 commit comments

Comments
 (0)