The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(cron): expose is_cron_silence_response for the prompt module
liuhao1024ce4d0ee92dd8
diff --git a/cron/scheduler.py b/cron/scheduler.pyindex fd4351cbdfa..6fcbe0e9647 100644--- a/cron/scheduler.py+++ b/cron/scheduler.py@@ -510,6 +510,11 @@ def _is_cron_silence_response(text: str) -> bool:return is_autonomous_silence_response(text)++# Public alias for sibling split modules: ``scheduler_prompt`` reaches this late-bound instead+# of poking the private name, so a rename of the private helper cannot break it silently.+is_cron_silence_response = _is_cron_silence_response+# Persistent pool for parallel cron jobs: tick() submits and returns; long jobs never block it._parallel_pool: Optional[concurrent.futures.ThreadPoolExecutor] = None_parallel_pool_max_workers: Optional[int] = Nonediff --git a/cron/scheduler_prompt.py b/cron/scheduler_prompt.pyindex 4050c7ab57c..dacf71247ed 100644--- a/cron/scheduler_prompt.py+++ b/cron/scheduler_prompt.py@@ -78,7 +78,7 @@ def _archive_answer(archive: str) -> str | None:if "## Response" not in archive:return archiveanswer = archive.rpartition("## Response")[2].strip()- if not answer or _sched._is_cron_silence_response(answer):+ if not answer or _sched.is_cron_silence_response(answer):return Nonereturn answer