agl 22.0.0 → 22.0.1

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.
@@ -796,6 +796,9 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
796
796
  @plugins.deesElement.state()
797
797
  accessor workspaceError = '';
798
798
 
799
+ @plugins.deesElement.state()
800
+ accessor sessionLayoutError = '';
801
+
799
802
  @plugins.deesElement.state()
800
803
  accessor workspaceNotice = '';
801
804
 
@@ -1403,6 +1406,11 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
1403
1406
  line-height: 1.4;
1404
1407
  }
1405
1408
 
1409
+ .sessionLayoutError {
1410
+ flex: 0 0 auto;
1411
+ margin: 0 var(--dees-spacing-sm) var(--dees-spacing-xs);
1412
+ }
1413
+
1406
1414
  .sidebarHeader {
1407
1415
  display: flex;
1408
1416
  align-items: center;
@@ -2042,6 +2050,7 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
2042
2050
  this.draftSessionActive = false;
2043
2051
  this.activeMutationId = undefined;
2044
2052
  this.workspaceError = '';
2053
+ this.sessionLayoutError = '';
2045
2054
  this.workspaceNotice = '';
2046
2055
  this.clearAnsweredCardCaches();
2047
2056
  this.clearSubagentModalState();
@@ -2565,6 +2574,7 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
2565
2574
  this.invalidateDetailLoad();
2566
2575
  this.invalidateSlashCatalog();
2567
2576
  this.sessionDetail = undefined;
2577
+ this.sessionLayoutError = '';
2568
2578
  }
2569
2579
  } catch (error) {
2570
2580
  if (requestId === this.projectsRequestId && this.isCurrentConnection(generation)) {
@@ -7241,8 +7251,17 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
7241
7251
  this.confirmedSessionLayouts.set(projectId, layout);
7242
7252
  this.applySessionLayout(layout);
7243
7253
  this.groupsLoadedForProjectId = projectId;
7244
- } catch {
7245
- // Groups are sidebar decoration; the chat list works without them.
7254
+ this.sessionLayoutError = '';
7255
+ } catch (error) {
7256
+ if (
7257
+ requestId === this.layoutRequestId
7258
+ && this.authenticated
7259
+ && this.isCurrentConnection(generation)
7260
+ && this.selectedProjectId === projectId
7261
+ && this.projects.some((project) => project.id === projectId)
7262
+ ) {
7263
+ this.sessionLayoutError = `Conversation groups could not be loaded: ${errorMessage(error)}`;
7264
+ }
7246
7265
  }
7247
7266
  }
7248
7267
 
@@ -8183,6 +8202,7 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
8183
8202
  this.sessionGroups = [];
8184
8203
  this.ungroupedSessionIds = [];
8185
8204
  this.groupsLoadedForProjectId = '';
8205
+ this.sessionLayoutError = '';
8186
8206
  this.terminals = [];
8187
8207
  this.resources = [];
8188
8208
  this.selectedResourceId = '';
@@ -8264,6 +8284,7 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
8264
8284
  this.draftSessionDetailReadyId = undefined;
8265
8285
  this.draftSessionActive = false;
8266
8286
  this.selectedProjectId = '';
8287
+ this.sessionLayoutError = '';
8267
8288
  this.selectedSessionId = undefined;
8268
8289
  this.invalidateDetailLoad();
8269
8290
  this.invalidateSlashCatalog();
@@ -8372,6 +8393,7 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
8372
8393
  this.draftSessionDetailReadyId = undefined;
8373
8394
  this.draftSessionActive = false;
8374
8395
  this.selectedProjectId = response.project.id;
8396
+ this.sessionLayoutError = '';
8375
8397
  this.selectedSessionId = undefined;
8376
8398
  this.invalidateDetailLoad();
8377
8399
  this.invalidateSlashCatalog();
@@ -10545,6 +10567,14 @@ export class HarnessControllerApp extends plugins.deesElement.DeesElement {
10545
10567
  New
10546
10568
  </dees-button>
10547
10569
  </div>
10570
+ ${this.sessionLayoutError
10571
+ ? plugins.deesElement.html`
10572
+ <div class="projectCreateError sessionLayoutError" role="alert">
10573
+ <dees-icon icon="lucide:TriangleAlert" iconSize="13"></dees-icon>
10574
+ <span>${this.sessionLayoutError}</span>
10575
+ </div>
10576
+ `
10577
+ : ''}
10548
10578
  <dees-harness-session-list
10549
10579
  .sessions=${sessionMetas}
10550
10580
  .selectedSessionId=${selectedUiKey}