fix: reasoning default to medium, show workdir when supplied (#931)

This commit is contained in:
Fouad Matin
2025-05-14 08:38:41 -07:00
committed by GitHub
parent 77347d268d
commit 73259351ff
3 changed files with 9 additions and 2 deletions

View File

@@ -308,7 +308,7 @@ config = {
model: model ?? config.model,
notify: Boolean(cli.flags.notify),
reasoningEffort:
(cli.flags.reasoning as ReasoningEffort | undefined) ?? "high",
(cli.flags.reasoning as ReasoningEffort | undefined) ?? "medium",
flexMode: cli.flags.flexMode || (config.flexMode ?? false),
provider,
disableResponseStorage,

View File

@@ -173,6 +173,11 @@ function TerminalChatResponseToolCall({
<Box flexDirection="column" gap={1}>
<Text color="magentaBright" bold>
command
{details?.workdir ? (
<Text dimColor>{` (${details?.workdir})`}</Text>
) : (
""
)}
</Text>
<Text>
<Text dimColor>$</Text> {details?.cmdReadableText}

View File

@@ -35,6 +35,7 @@ export function parseToolCallOutput(toolCallOutput: string): {
export type CommandReviewDetails = {
cmd: Array<string>;
cmdReadableText: string;
workdir: string | undefined;
};
/**
@@ -51,12 +52,13 @@ export function parseToolCall(
return undefined;
}
const { cmd } = toolCallArgs;
const { cmd, workdir } = toolCallArgs;
const cmdReadableText = formatCommandForDisplay(cmd);
return {
cmd,
cmdReadableText,
workdir,
};
}