diff --git a/modules/_ai-tools/extensions/review.ts b/modules/_ai-tools/extensions/review.ts index d0f23f1..3edfcbd 100644 --- a/modules/_ai-tools/extensions/review.ts +++ b/modules/_ai-tools/extensions/review.ts @@ -377,9 +377,10 @@ const BASE_BOOKMARK_PROMPT_FALLBACK = "Review the code changes against the base bookmark '{bookmark}'. Start by finding the merge-base revision between the working copy and {bookmark}, then run `jj diff --from --to @` to see what changes would land on the {bookmark} bookmark. Provide prioritized, actionable findings."; const CHANGE_PROMPT_WITH_TITLE = - 'Review the code changes introduced by change {changeId} ("{title}"). Provide prioritized, actionable findings.'; + 'Review the code changes introduced by change {changeId} ("{title}"). Run `jj diff --from {changeId}- --to {changeId}` to inspect the changes introduced by this change. Provide prioritized, actionable findings.'; -const CHANGE_PROMPT = "Review the code changes introduced by change {changeId}. Provide prioritized, actionable findings."; +const CHANGE_PROMPT = + "Review the code changes introduced by change {changeId}. Run `jj diff --from {changeId}- --to {changeId}` to inspect the changes introduced by this change. Provide prioritized, actionable findings."; const PULL_REQUEST_PROMPT = 'Review pull request #{prNumber} ("{title}") against the base bookmark \'{baseBookmark}\'. The merge-base revision for this comparison is {mergeBaseSha}. Run `jj diff --from {mergeBaseSha} --to @` to inspect the changes that would be merged. Provide prioritized, actionable findings.'; @@ -979,9 +980,9 @@ async function buildReviewPrompt( case "change": if (target.title) { - return CHANGE_PROMPT_WITH_TITLE.replace("{changeId}", target.changeId).replace("{title}", target.title); + return CHANGE_PROMPT_WITH_TITLE.replace(/{changeId}/g, target.changeId).replace("{title}", target.title); } - return CHANGE_PROMPT.replace("{changeId}", target.changeId); + return CHANGE_PROMPT.replace(/{changeId}/g, target.changeId); case "pullRequest": { const baseBookmarkLabel = bookmarkRefToLabel({ name: target.baseBookmark, remote: target.baseRemote }); diff --git a/modules/darwin.nix b/modules/darwin.nix index 7083962..36dea5a 100644 --- a/modules/darwin.nix +++ b/modules/darwin.nix @@ -41,7 +41,7 @@ autohide = true; show-recents = false; launchanim = true; - orientation = "bottom"; + orientation = "left"; tilesize = 60; minimize-to-application = true; mru-spaces = false;