Changing logic

This commit is contained in:
Mikan
2026-03-12 19:41:29 +03:00
parent 1afa6f71ca
commit 0f8a86e536
2 changed files with 126 additions and 11 deletions

View File

@@ -58,6 +58,8 @@ class TrackerConfig(BaseModel):
tracking_enabled: bool = False
current_task_id: Optional[str] = None
window_policies: List[WindowPolicy] = Field(default_factory=list)
idle_threshold_seconds: int = 60 # Порог перехода в idle
new_session_after_idle_seconds: int = 600 # 10 минут для новой сессии
@staticmethod
def default_policies() -> List[WindowPolicy]: