The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(background-review): preserve bare manual refine
fangliquanflq2db3fba0c6b4
diff --git a/run_agent.py b/run_agent.pyindex 8d7d4874c1c..cfeca7e08a1 100644--- a/run_agent.py+++ b/run_agent.py@@ -760,13 +760,14 @@ class AIAgent(A review whose runtime is the MANAGED LOCAL llama-server is queued for machine idle (``defer: auto``)instead of hitting the user's GPU mid-session; everything else spawns immediately. ``explicit``- (/refine) is never deferred but does not touch the ``focus``-keyed delegate/enabled gates.+ (/refine, with or without focus) is user-initiated: it bypasses the automatic-only delegate,+ ``enabled`` and idle-defer gates (#87250: ``enabled: false`` stops only automatic forks)."""- # Gates run at enqueue/spawn time; the idle dispatcher re-checks `enabled` at dispatch time.- if focus is None and getattr(self, "_delegate_depth", 0) > 0:+ # Automatic-review gates run at enqueue/spawn time; the idle dispatcher re-checks `enabled` at dispatch time.+ if not explicit and focus is None and getattr(self, "_delegate_depth", 0) > 0:returntask_cfg = None- if focus is None:+ if not explicit and focus is None:from agent.background_review import load_background_review_settingsenabled, task_cfg = load_background_review_settings()if not enabled: