fix(steer): keep steer button clickable during active task and log injected instruction

This commit is contained in:
zhayujie
2026-07-20 11:22:14 +08:00
parent c4e5d11da9
commit f9e7c07af8
2 changed files with 5 additions and 1 deletions

View File

@@ -368,6 +368,7 @@ class AgentBridge:
def steer_session(self, session_id: str, instruction: str):
"""Inject an explicit instruction into one active session."""
logger.info(f"[AgentBridge] steer new instruction: session={session_id}, content={instruction}")
return get_steer_registry().submit(session_id, instruction)
def get_agent(self, session_id: str = None) -> Optional[Agent]: