Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,7 @@ export class CliHelpError extends Error {
}

/** Printed for `corbits --version` / `-V`. Matches `package.json` version. */
export const CLI_VERSION_TEXT = `${COMMAND_NAME} v${
typeof pkg.version === "string" ? pkg.version : "0.0.0"
}`;
export const CLI_VERSION_TEXT = `${COMMAND_NAME} v${pkg.version}`;

/**
* Thrown when the operator asked for the CLI version. Entry points must print
Expand Down
2 changes: 1 addition & 1 deletion src/config/profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export async function resolveProfile(
merged.summarizerTimeoutMs = projectProfile.summarizerTimeoutMs;
}

const resolvedName = profileName ?? projectProfile?.profile;
const resolvedName = namedProfileName;
if (resolvedName !== undefined) merged.profile = resolvedName;

return merged;
Expand Down
7 changes: 4 additions & 3 deletions src/exec/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,10 @@ export async function runExec(config: Config): Promise<ExecResult> {
});
},
});
const sessionMode: SessionMode =
resolveSessionMode(config.settings, localSettingsForMode) ??
"orchestrator";
const sessionMode: SessionMode = resolveSessionMode(
config.settings,
localSettingsForMode,
);

const interactive = resolveExecInteractive({
stdinTTY: input.isTTY,
Expand Down
Loading