fix review
This commit is contained in:
@@ -32,6 +32,7 @@ type ReviewTarget =
|
|||||||
type ReviewSelectorValue = ReviewTarget["type"] | "toggleCustomInstructions"
|
type ReviewSelectorValue = ReviewTarget["type"] | "toggleCustomInstructions"
|
||||||
|
|
||||||
const CUSTOM_INSTRUCTIONS_KEY = "review.customInstructions"
|
const CUSTOM_INSTRUCTIONS_KEY = "review.customInstructions"
|
||||||
|
const MIN_CHANGE_REVIEW_OPTIONS = 10
|
||||||
|
|
||||||
const WORKING_COPY_PROMPT =
|
const WORKING_COPY_PROMPT =
|
||||||
"Review the current working-copy changes (including new files) and provide prioritized findings."
|
"Review the current working-copy changes (including new files) and provide prioritized findings."
|
||||||
@@ -308,10 +309,13 @@ const plugin: TuiPlugin = async (api) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getRecentChanges(limit = 20): Promise<Change[]> {
|
async function getRecentChanges(limit = 20): Promise<Change[]> {
|
||||||
|
const effectiveLimit = Math.max(limit, MIN_CHANGE_REVIEW_OPTIONS)
|
||||||
const r = await jj(
|
const r = await jj(
|
||||||
"log",
|
"log",
|
||||||
|
"-r",
|
||||||
|
"all()",
|
||||||
"-n",
|
"-n",
|
||||||
String(limit),
|
String(effectiveLimit),
|
||||||
"--no-graph",
|
"--no-graph",
|
||||||
"-T",
|
"-T",
|
||||||
'change_id.shortest(8) ++ "\\t" ++ description.first_line() ++ "\\n"',
|
'change_id.shortest(8) ++ "\\t" ++ description.first_line() ++ "\\n"',
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ in {
|
|||||||
package = inputs'.llm-agents.packages.opencode;
|
package = inputs'.llm-agents.packages.opencode;
|
||||||
settings = {
|
settings = {
|
||||||
model = "openai/gpt-5.4";
|
model = "openai/gpt-5.4";
|
||||||
small_model = "openai/gpt-5.1-mini";
|
small_model = "openai/gpt-5.1-codex-mini";
|
||||||
theme = "rosepine";
|
theme = "rosepine";
|
||||||
plugin = [
|
plugin = [
|
||||||
"opencode-claude-auth"
|
"opencode-claude-auth"
|
||||||
@@ -125,7 +125,7 @@ in {
|
|||||||
disable = true;
|
disable = true;
|
||||||
};
|
};
|
||||||
explore = {
|
explore = {
|
||||||
model = "openai/gpt-5.1-mini";
|
model = "openai/gpt-5.1-codex-mini";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
instructions = [
|
instructions = [
|
||||||
|
|||||||
Reference in New Issue
Block a user