Align AXIS Web control lifecycle with LinuxCNC
This commit is contained in:
@@ -34,7 +34,11 @@ export class XyzacSession extends SimSession {
|
||||
// every previous response inside the stored response object.
|
||||
const payload = { ...response.payload };
|
||||
payload.xyzac_session = this.authority();
|
||||
payload.xyzac_ledger = this.ledger.audit({ includeResponses: input.kind !== "SIM_STEP", maxEntries: input.kind === "SIM_STEP" ? 32 : 2048 });
|
||||
// The operation ledger remains complete inside the worker for recovery.
|
||||
// Browser responses need only an audit summary: including historical
|
||||
// PROGRAM_LOAD responses repeatedly clones the full toolpath after every
|
||||
// control click, which can starve an abort behind a large G-code preview.
|
||||
payload.xyzac_ledger = this.ledger.audit({ includeResponses: false, maxEntries: input.kind === "SIM_STEP" ? 32 : 128 });
|
||||
payload.xyzac_scheduler = this.scheduler.export();
|
||||
return { ...response, payload };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user