@gitlab/duo-ui 15.15.1 → 15.16.0

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.
@@ -435,8 +435,8 @@ var script = {
435
435
  lastMessage && lastMessage.message_type === 'request' && lastMessage.tool_info);
436
436
  },
437
437
  canCancelInternal() {
438
- // Don't allow cancel while there are pending tool approvals
439
- if (this.isAwaitingToolApproval) {
438
+ // Don't allow cancel while there are pending tool approvals that haven't been acted on yet
439
+ if (this.isAwaitingToolApproval && !this.isToolApprovalProcessing) {
440
440
  return false;
441
441
  }
442
442
  return this.canCancel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/duo-ui",
3
- "version": "15.15.1",
3
+ "version": "15.16.0",
4
4
  "description": "Duo UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -105,7 +105,7 @@
105
105
  "@gitlab/fonts": "^1.3.1",
106
106
  "@gitlab/stylelint-config": "6.3.0",
107
107
  "@gitlab/svgs": "^3.157.0",
108
- "@gitlab/ui": "^129.3.0",
108
+ "@gitlab/ui": "^129.5.1",
109
109
  "@jest/test-sequencer": "^29.7.0",
110
110
  "@rollup/plugin-commonjs": "^11.1.0",
111
111
  "@rollup/plugin-node-resolve": "^7.1.3",
@@ -513,8 +513,8 @@ export default {
513
513
  );
514
514
  },
515
515
  canCancelInternal() {
516
- // Don't allow cancel while there are pending tool approvals
517
- if (this.isAwaitingToolApproval) {
516
+ // Don't allow cancel while there are pending tool approvals that haven't been acted on yet
517
+ if (this.isAwaitingToolApproval && !this.isToolApprovalProcessing) {
518
518
  return false;
519
519
  }
520
520