fix: reasoning default to medium, show workdir when supplied (#931)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user