Align AXIS Web control lifecycle with LinuxCNC

This commit is contained in:
2026-09-07 13:47:10 +08:00
parent 35adac6471
commit 0a679b5eeb
34 changed files with 2598 additions and 177 deletions

View File

@@ -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 };
}