From fc1b2d24fe73a5395578ebc704dca9b2edca85ef Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Wed, 30 Sep 2026 20:43:27 -0700 Subject: [PATCH] Apply live layout independently of piece history synchronization --- aesel/src/walkieware-thread.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aesel/src/walkieware-thread.mjs b/aesel/src/walkieware-thread.mjs index 4c746b55c3..b008ebdb17 100644 --- a/aesel/src/walkieware-thread.mjs +++ b/aesel/src/walkieware-thread.mjs @@ -45,7 +45,7 @@ export class WalkiewareThread { if(m.type==='conflict'){this.ready=false;this.sending=false;this.onStatus(this.identity.code,'History conflict');} if(m.type==='error'){this.ready=false;this.sending=false;this.onStatus(this.identity.code,m.error);} if(m.type==='command') { - try{if(!this.ready||this.sending)throw Error('Thread is not synchronized');const result=await this.onCommand(m);this.sync();await this.flush();this.send({type:'result',id:m.id,...result});} + try{if(m.action==='layout'){const result=await this.onCommand(m);this.send({type:'result',id:m.id,...result});return;}if(!this.ready||this.sending)throw Error('Thread is not synchronized');const result=await this.onCommand(m);this.sync();await this.flush();this.send({type:'result',id:m.id,...result});} catch(error){this.send({type:'result',id:m.id,ok:false,error:error.message});} this.sync();this.update(); } -- 2.51.2