fix: replay Windows réparé — machine_replay_target restauré
Le fix sécurité avait supprimé _machine_replay_target qui est nécessaire pour router les actions vers la bonne session agent. Session_id vide dans le frontend = auto-détection serveur. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -101,10 +101,10 @@ _pending_lock = threading.Lock()
|
|||||||
_replay_lock = threading.Lock()
|
_replay_lock = threading.Lock()
|
||||||
# session_id -> liste d'actions en attente (FIFO)
|
# session_id -> liste d'actions en attente (FIFO)
|
||||||
_replay_queues: Dict[str, List[Dict[str, Any]]] = defaultdict(list)
|
_replay_queues: Dict[str, List[Dict[str, Any]]] = defaultdict(list)
|
||||||
# replay_id -> état du replay (workflow_id, session_id, status, progress)
|
|
||||||
_replay_states: Dict[str, Dict[str, Any]] = {}
|
|
||||||
# machine_id -> session_id (mapping pour le replay ciblé par machine)
|
# machine_id -> session_id (mapping pour le replay ciblé par machine)
|
||||||
_machine_replay_target: Dict[str, str] = {}
|
_machine_replay_target: Dict[str, str] = {}
|
||||||
|
# replay_id -> état du replay (workflow_id, session_id, status, progress)
|
||||||
|
_replay_states: Dict[str, Dict[str, Any]] = {}
|
||||||
|
|
||||||
|
|
||||||
class StreamEvent(BaseModel):
|
class StreamEvent(BaseModel):
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export default function ExecutionControls({ execution, onStart, onStop }: Props)
|
|||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
workflow_id: workflowId,
|
workflow_id: workflowId,
|
||||||
session_id: `replay_${Date.now()}`,
|
session_id: '', // vide = auto-détection de la session agent active
|
||||||
actions: steps.map((step: any, i: number) => ({
|
actions: steps.map((step: any, i: number) => ({
|
||||||
action_id: step.id || `action_${i}`,
|
action_id: step.id || `action_${i}`,
|
||||||
type: step.action_type,
|
type: step.action_type,
|
||||||
|
|||||||
Reference in New Issue
Block a user