Precommit updated to always perform external analysis (via _other_ model) unless specified not to. This prevents Claude from being overconfident and inadequately performing subpar precommit checks.
Improved precommit continuations to be immediate Workflow state restoration added between stateless calls Fixed incorrect token limit check
This commit is contained in:
@@ -695,8 +695,9 @@ class SimpleTool(BaseTool):
|
||||
if file_content:
|
||||
user_content = f"{user_content}\n\n=== {file_context_title} ===\n{file_content}\n=== END CONTEXT ===="
|
||||
|
||||
# Check token limits
|
||||
self._validate_token_limit(user_content, "Content")
|
||||
# Check token limits - only validate original user prompt, not conversation history
|
||||
content_to_validate = self.get_prompt_content_for_size_validation(user_content)
|
||||
self._validate_token_limit(content_to_validate, "Content")
|
||||
|
||||
# Add web search instruction if enabled
|
||||
websearch_instruction = ""
|
||||
|
||||
Reference in New Issue
Block a user