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:
Fahad
2025-08-20 15:19:01 +04:00
parent 0af9202012
commit 57200a8a2e
18 changed files with 187 additions and 73 deletions

View File

@@ -411,8 +411,21 @@ class WorkflowTool(BaseTool, BaseWorkflowMixin):
# (These are inherited from BaseWorkflowMixin and must be implemented)
@abstractmethod
def get_required_actions(self, step_number: int, confidence: str, findings: str, total_steps: int) -> list[str]:
"""Define required actions for each work phase."""
def get_required_actions(
self, step_number: int, confidence: str, findings: str, total_steps: int, request=None
) -> list[str]:
"""Define required actions for each work phase.
Args:
step_number: Current step number
confidence: Current confidence level
findings: Current findings text
total_steps: Total estimated steps
request: Optional request object for continuation-aware decisions
Returns:
List of required actions for the current step
"""
pass
@abstractmethod