From 39780c410b7b6cac100cf780642414b575caa6f4 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Wed, 4 Feb 2026 14:36:04 -0600 Subject: [PATCH 1/3] host: Add handling for editor cancellations This needs to be explicitly permitted, otherwise it produces worrisome warnings. --- .../app/components/operator-mode/code-editor.gts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/host/app/components/operator-mode/code-editor.gts b/packages/host/app/components/operator-mode/code-editor.gts index 61a8506bf4..4419c43664 100644 --- a/packages/host/app/components/operator-mode/code-editor.gts +++ b/packages/host/app/components/operator-mode/code-editor.gts @@ -6,7 +6,13 @@ import { service } from '@ember/service'; import Component from '@glimmer/component'; import { cached, tracked } from '@glimmer/tracking'; -import { task, restartableTask, timeout, all } from 'ember-concurrency'; +import { + task, + restartableTask, + timeout, + all, + didCancel, +} from 'ember-concurrency'; import perform from 'ember-concurrency/helpers/perform'; @@ -471,6 +477,11 @@ export default class CodeEditor extends Component { saveType, }) .catch((error) => { + // Task cancellations are expected when the restartable writeTask is + // performed again while still running - this is normal behavior, not an error + if (didCancel(error)) { + return; + } if (error?.status === 413 && error?.title) { this.args.onWriteError?.(error.title); return; From 8e0a60e4346ea305126f319f395bf4cdddb0336c Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Thu, 5 Feb 2026 17:14:28 -0600 Subject: [PATCH 2/3] Fix spelling --- packages/host/app/components/operator-mode/code-editor.gts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/host/app/components/operator-mode/code-editor.gts b/packages/host/app/components/operator-mode/code-editor.gts index 4419c43664..23ec7bad84 100644 --- a/packages/host/app/components/operator-mode/code-editor.gts +++ b/packages/host/app/components/operator-mode/code-editor.gts @@ -478,7 +478,7 @@ export default class CodeEditor extends Component { }) .catch((error) => { // Task cancellations are expected when the restartable writeTask is - // performed again while still running - this is normal behavior, not an error + // performed again while still running - this is normal behaviour, not an error if (didCancel(error)) { return; } From 4cabe3b0756b33ec9e98079984750e7586025c84 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Thu, 5 Feb 2026 17:33:01 -0600 Subject: [PATCH 3/3] Fix wording and spacing --- packages/host/app/components/operator-mode/code-editor.gts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/host/app/components/operator-mode/code-editor.gts b/packages/host/app/components/operator-mode/code-editor.gts index 23ec7bad84..55014d58d3 100644 --- a/packages/host/app/components/operator-mode/code-editor.gts +++ b/packages/host/app/components/operator-mode/code-editor.gts @@ -477,11 +477,12 @@ export default class CodeEditor extends Component { saveType, }) .catch((error) => { - // Task cancellations are expected when the restartable writeTask is + // Task cancellations are expected when the restartable contentChangedTask is // performed again while still running - this is normal behaviour, not an error if (didCancel(error)) { return; } + if (error?.status === 413 && error?.title) { this.args.onWriteError?.(error.title); return;