claude-dev-env 8.105.0 → 8.105.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -115,6 +115,17 @@ def test_should_block_the_stop_with_the_finding_when_the_turn_leaves_a_bug(
|
|
|
115
115
|
assert "app" in str(stop_output["reason"])
|
|
116
116
|
|
|
117
117
|
|
|
118
|
+
def test_should_tell_the_agent_to_fix_a_finding_unless_the_user_asked_for_it(
|
|
119
|
+
project: Path, gate_environment: dict[str, str]
|
|
120
|
+
) -> None:
|
|
121
|
+
run_hook(gate_environment, "UserPromptSubmit")
|
|
122
|
+
drop_retry(project)
|
|
123
|
+
block_reason = str(run_hook(gate_environment, "Stop")["reason"])
|
|
124
|
+
assert "Fix each one before you end the turn." in block_reason
|
|
125
|
+
assert "is not a request for the problem it causes" in block_reason
|
|
126
|
+
assert "quote those words in your reply" in block_reason
|
|
127
|
+
|
|
128
|
+
|
|
118
129
|
def test_should_review_only_the_edits_made_after_the_prompt(
|
|
119
130
|
project: Path, gate_environment: dict[str, str]
|
|
120
131
|
) -> None:
|
|
@@ -149,7 +149,10 @@ FINDING_LINE_SEPARATOR = "\n"
|
|
|
149
149
|
REPOSITORY_FINDINGS_SEPARATOR = "\n\n"
|
|
150
150
|
BLOCK_REASON_TEMPLATE = (
|
|
151
151
|
"A fresh-context review of this turn's changes found these problems. "
|
|
152
|
-
"Fix each one
|
|
152
|
+
"Fix each one before you end the turn. Code the user pasted or described is not a "
|
|
153
|
+
"request for the problem it causes. Keep a finding's behavior only when the user's own "
|
|
154
|
+
"words ask for that behavior, and quote those words in your reply. When a finding is "
|
|
155
|
+
"wrong, say in your reply why:\n\n"
|
|
153
156
|
"{all_findings}"
|
|
154
157
|
)
|
|
155
158
|
TOO_MANY_FILES_DIAGNOSTIC_TEMPLATE = (
|