From 662c420f4471e08897ab3dc0f5394ddb59cc84f1 Mon Sep 17 00:00:00 2001 From: Cascade Bot Date: Mon, 23 Mar 2026 12:42:56 +0000 Subject: [PATCH 1/2] fix(prompts): consolidate duplicate staging safety and forbidden commands sections --- src/agents/prompts/templates/partials/commit-and-push.eta | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/agents/prompts/templates/partials/commit-and-push.eta b/src/agents/prompts/templates/partials/commit-and-push.eta index 8de037cd..eb408bd5 100644 --- a/src/agents/prompts/templates/partials/commit-and-push.eta +++ b/src/agents/prompts/templates/partials/commit-and-push.eta @@ -2,9 +2,7 @@ 1. **Run tests and linting** to verify your changes don't break anything 2. **Commit and push** your changes: - - Stage ONLY the files you modified: `git add ...` - - **NEVER use `git add -A` or `git add .`** — these capture build artifacts, generated files, and unintended changes - - Before committing, run `git diff --cached --stat` to verify you're only committing intended files + - Stage ONLY the files you modified (see Git section above for staging safety rules) - `git commit -m "fix: address feedback"` - `git push` - **Verify push succeeded** before proceeding From b2fc6f7a82025d27efc299565746e2a98830cb8a Mon Sep 17 00:00:00 2001 From: Cascade Bot Date: Mon, 23 Mar 2026 12:50:44 +0000 Subject: [PATCH 2/2] fix(prompts): correct directional reference in commit-and-push partial The cross-reference said "above" but in all three consumer templates (respond-to-review.eta, respond-to-ci.eta, respond-to-pr-comment.eta) the Git partial is rendered after commit-and-push.eta, so the reference should say "below". Co-Authored-By: Claude Opus 4.6 --- src/agents/prompts/templates/partials/commit-and-push.eta | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/prompts/templates/partials/commit-and-push.eta b/src/agents/prompts/templates/partials/commit-and-push.eta index eb408bd5..c41c6e1b 100644 --- a/src/agents/prompts/templates/partials/commit-and-push.eta +++ b/src/agents/prompts/templates/partials/commit-and-push.eta @@ -2,7 +2,7 @@ 1. **Run tests and linting** to verify your changes don't break anything 2. **Commit and push** your changes: - - Stage ONLY the files you modified (see Git section above for staging safety rules) + - Stage ONLY the files you modified (see Git section below for staging safety rules) - `git commit -m "fix: address feedback"` - `git push` - **Verify push succeeded** before proceeding