wip
This commit is contained in:
@@ -73,8 +73,8 @@ export function SessionProgressMonitor({ sessionId, progress, isRunning }: Sessi
|
||||
(async () => {
|
||||
try {
|
||||
// Use electronAPI overlayActionRequest to obtain ack
|
||||
if ((window as any).electronAPI?.overlayActionRequest) {
|
||||
const ack = await (window as any).electronAPI.overlayActionRequest(action);
|
||||
if (window.electronAPI?.overlayActionRequest) {
|
||||
const ack = await window.electronAPI.overlayActionRequest(action);
|
||||
if (!mounted) return;
|
||||
setAckStatusByStep(prev => ({ ...prev, [currentStep]: ack.status }));
|
||||
} else {
|
||||
@@ -91,8 +91,8 @@ export function SessionProgressMonitor({ sessionId, progress, isRunning }: Sessi
|
||||
|
||||
// Subscribe to automation events for optional live updates
|
||||
useEffect(() => {
|
||||
if ((window as any).electronAPI?.onAutomationEvent) {
|
||||
const off = (window as any).electronAPI.onAutomationEvent((ev: any) => {
|
||||
if (window.electronAPI?.onAutomationEvent) {
|
||||
const off = window.electronAPI.onAutomationEvent((ev) => {
|
||||
if (ev && ev.payload && ev.payload.actionId && ev.type) {
|
||||
setAutomationEventMsg(`${ev.type} ${ev.payload.actionId}`);
|
||||
} else if (ev && ev.type) {
|
||||
|
||||
Reference in New Issue
Block a user