fix: reasoning default to medium, show workdir when supplied (#931)
This commit is contained in:
@@ -308,7 +308,7 @@ config = {
|
|||||||
model: model ?? config.model,
|
model: model ?? config.model,
|
||||||
notify: Boolean(cli.flags.notify),
|
notify: Boolean(cli.flags.notify),
|
||||||
reasoningEffort:
|
reasoningEffort:
|
||||||
(cli.flags.reasoning as ReasoningEffort | undefined) ?? "high",
|
(cli.flags.reasoning as ReasoningEffort | undefined) ?? "medium",
|
||||||
flexMode: cli.flags.flexMode || (config.flexMode ?? false),
|
flexMode: cli.flags.flexMode || (config.flexMode ?? false),
|
||||||
provider,
|
provider,
|
||||||
disableResponseStorage,
|
disableResponseStorage,
|
||||||
|
|||||||
@@ -173,6 +173,11 @@ function TerminalChatResponseToolCall({
|
|||||||
<Box flexDirection="column" gap={1}>
|
<Box flexDirection="column" gap={1}>
|
||||||
<Text color="magentaBright" bold>
|
<Text color="magentaBright" bold>
|
||||||
command
|
command
|
||||||
|
{details?.workdir ? (
|
||||||
|
<Text dimColor>{` (${details?.workdir})`}</Text>
|
||||||
|
) : (
|
||||||
|
""
|
||||||
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
<Text>
|
<Text>
|
||||||
<Text dimColor>$</Text> {details?.cmdReadableText}
|
<Text dimColor>$</Text> {details?.cmdReadableText}
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export function parseToolCallOutput(toolCallOutput: string): {
|
|||||||
export type CommandReviewDetails = {
|
export type CommandReviewDetails = {
|
||||||
cmd: Array<string>;
|
cmd: Array<string>;
|
||||||
cmdReadableText: string;
|
cmdReadableText: string;
|
||||||
|
workdir: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -51,12 +52,13 @@ export function parseToolCall(
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { cmd } = toolCallArgs;
|
const { cmd, workdir } = toolCallArgs;
|
||||||
const cmdReadableText = formatCommandForDisplay(cmd);
|
const cmdReadableText = formatCommandForDisplay(cmd);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
cmd,
|
cmd,
|
||||||
cmdReadableText,
|
cmdReadableText,
|
||||||
|
workdir,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user