@lesliechan721/aw 0.1.0-beta.19 → 0.1.0-beta.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2716,6 +2716,10 @@ export class TuiController {
2716
2716
  const preparationRecordId = `${this.#sessionEpoch}:${active.snapshot.id}`;
2717
2717
  const carriedDiagnostics = error instanceof TuiOperationBlockedError
2718
2718
  ? error.diagnostics : undefined;
2719
+ if (carriedDiagnostics?.length) {
2720
+ active.snapshot.message = `无法准备确认信息:${carriedDiagnostics.slice(0, 3)
2721
+ .map((diagnostic) => sanitizeDiagnosticText(`${diagnostic.target?.pluginId ? `${diagnostic.target.pluginId}:` : ''}${diagnostic.safeMessage}(${safeDiagnosticCode(diagnostic.code, 'operationBlocked')})`, [], collectOperationSensitiveValues(intent))).join(';')}`;
2722
+ }
2719
2723
  const preparationDiagnostics = carriedDiagnostics?.length
2720
2724
  ? carriedDiagnostics.map((diagnostic, index) => ({
2721
2725
  ...structuredClone(diagnostic),