@tutti-os/agent-gui 0.0.185 → 0.0.187

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.
@@ -7,7 +7,7 @@ import {
7
7
  reconcileProjectedAgentConversationVM,
8
8
  serializeAgentConversationForClipboard,
9
9
  useProjectedAgentConversation
10
- } from "../chunk-GAXQI5K6.js";
10
+ } from "../chunk-62JB3KCN.js";
11
11
  import "../chunk-LLIM2OX6.js";
12
12
  import "../chunk-THBCAUBR.js";
13
13
  import "../chunk-XJ34OIEQ.js";
package/dist/agent-gui.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AgentGUI
3
- } from "./chunk-VRA7STEJ.js";
3
+ } from "./chunk-43M2GHDA.js";
4
4
  import "./chunk-LB4AGT7B.js";
5
5
  import "./chunk-A4WCTHWS.js";
6
6
  import "./chunk-E5X3DSQZ.js";
@@ -9,7 +9,7 @@ import "./chunk-YSA4MXR5.js";
9
9
  import "./chunk-MHOYBRCY.js";
10
10
  import "./chunk-SZVHT57M.js";
11
11
  import "./chunk-5UTK6FDH.js";
12
- import "./chunk-GAXQI5K6.js";
12
+ import "./chunk-62JB3KCN.js";
13
13
  import "./chunk-LLIM2OX6.js";
14
14
  import "./chunk-THBCAUBR.js";
15
15
  import "./chunk-UP3ZDYTN.js";
@@ -5307,6 +5307,12 @@ aside.workspace-agents-status-panel
5307
5307
 
5308
5308
  .agent-gui-workbench-header__rail-toggle {
5309
5309
  margin-left: auto;
5310
+ /* The rail toggle must not animate: no hover fade, no press-down motion. */
5311
+ transition: none !important;
5312
+ }
5313
+
5314
+ .agent-gui-workbench-header__rail-toggle:active {
5315
+ transform: none !important;
5310
5316
  }
5311
5317
 
5312
5318
  .agent-gui-workbench-header__detached-window {
@@ -68,7 +68,7 @@ import {
68
68
  toLocalShortDateTime,
69
69
  updateAgentComposerDraft,
70
70
  useProjectedAgentConversation
71
- } from "./chunk-GAXQI5K6.js";
71
+ } from "./chunk-62JB3KCN.js";
72
72
  import {
73
73
  agentRichTextContentToPromptText,
74
74
  createAgentRichTextInputExtensions,
@@ -9193,7 +9193,7 @@ function useAgentGUIQueueActions({
9193
9193
  // agent-gui/agentGuiNode/controller/useAgentGUISubmitInteractionActions.ts
9194
9194
  import {
9195
9195
  selectEngineCancelState,
9196
- selectEngineHasVisibleQueuedSubmit,
9196
+ selectEngineHasVisibleQueuedSubmit as selectEngineHasVisibleQueuedSubmit2,
9197
9197
  selectPendingSubmitsForSession as selectPendingSubmitsForSession3
9198
9198
  } from "@tutti-os/agent-activity-core";
9199
9199
  import { useCallback as useCallback19, useEffect as useEffect7 } from "react";
@@ -9218,15 +9218,13 @@ function restoreFailedAgentGUIHomeDraft(input) {
9218
9218
  }
9219
9219
  return {
9220
9220
  ...input.drafts,
9221
- [input.draftKey]: agentPromptContentToComposerDraft(
9222
- input.content,
9223
- `activation-failure:${input.agentSessionId}`
9224
- )
9221
+ [input.draftKey]: snapshotAgentComposerDraft(input.submittedDraft)
9225
9222
  };
9226
9223
  }
9227
9224
 
9228
9225
  // agent-gui/agentGuiNode/controller/AgentGUIHomeDraftSettlementController.ts
9229
9226
  import {
9227
+ selectEngineHasVisibleQueuedSubmit,
9230
9228
  selectPendingActivations as selectPendingActivations2,
9231
9229
  selectPendingSubmitsForSession as selectPendingSubmitsForSession2
9232
9230
  } from "@tutti-os/agent-activity-core";
@@ -9262,10 +9260,9 @@ var AgentGUIHomeDraftSettlementController = class {
9262
9260
  if (activation?.status === "confirmed" || activation?.status === "failed" || activation?.status === "canceled") {
9263
9261
  this.applyDraftUpdate(
9264
9262
  (drafts) => activation.status === "confirmed" ? clearSubmittedDraftIfUnchanged({ drafts, snapshot }) : restoreFailedAgentGUIHomeDraft({
9265
- agentSessionId: activation.agentSessionId,
9266
- content: activation.content,
9267
9263
  draftKey: snapshot.sourceScopeKey,
9268
- drafts
9264
+ drafts,
9265
+ submittedDraft: snapshot.content
9269
9266
  })
9270
9267
  );
9271
9268
  delete this.snapshots[clientSubmitId];
@@ -9280,12 +9277,18 @@ var AgentGUIHomeDraftSettlementController = class {
9280
9277
  if (submit?.status !== "accepted" && submit?.status !== "confirmed" && submit?.status !== "failed") {
9281
9278
  continue;
9282
9279
  }
9280
+ if (submit.status === "failed" && selectEngineHasVisibleQueuedSubmit(
9281
+ state,
9282
+ submit.agentSessionId,
9283
+ clientSubmitId
9284
+ )) {
9285
+ continue;
9286
+ }
9283
9287
  this.applyDraftUpdate(
9284
9288
  (drafts) => submit.status === "failed" ? restoreFailedAgentGUIHomeDraft({
9285
- agentSessionId: submit.agentSessionId,
9286
- content: submit.content,
9287
9289
  draftKey: snapshot.sourceScopeKey,
9288
- drafts
9290
+ drafts,
9291
+ submittedDraft: snapshot.content
9289
9292
  }) : clearSubmittedDraftIfUnchanged({ drafts, snapshot })
9290
9293
  );
9291
9294
  delete this.snapshots[clientSubmitId];
@@ -9608,7 +9611,7 @@ function useAgentGUISubmitInteractionActions(input) {
9608
9611
  workspaceId
9609
9612
  });
9610
9613
  const queued = Boolean(
9611
- selectEngineHasVisibleQueuedSubmit(
9614
+ selectEngineHasVisibleQueuedSubmit2(
9612
9615
  sessionEngine.getSnapshot(),
9613
9616
  agentSessionId,
9614
9617
  submitTrace.clientSubmitId
@@ -40690,4 +40693,4 @@ export {
40690
40693
  AgentHandoffMenu,
40691
40694
  AgentGUI
40692
40695
  };
40693
- //# sourceMappingURL=chunk-VRA7STEJ.js.map
40696
+ //# sourceMappingURL=chunk-43M2GHDA.js.map