@opengeni/react 6.1.0-canary.3 → 6.1.0-canary.35131097657002

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.
Files changed (107) hide show
  1. package/dist/artifacts-document.js +1 -1
  2. package/dist/artifacts-presentation.js +1 -1
  3. package/dist/artifacts-spreadsheet.js +1 -1
  4. package/dist/artifacts.js +3 -3
  5. package/dist/capability-logo-fallback.d.ts +3 -0
  6. package/dist/{chunk-LVHCZABQ.js → chunk-75TYMFR5.js} +376 -380
  7. package/dist/chunk-75TYMFR5.js.map +1 -0
  8. package/dist/{chunk-NYESIADM.js → chunk-AKOMC3VO.js} +3 -3
  9. package/dist/chunk-AKOMC3VO.js.map +1 -0
  10. package/dist/{chunk-URNTAVGX.js → chunk-AWEBVNVX.js} +201 -59
  11. package/dist/chunk-AWEBVNVX.js.map +1 -0
  12. package/dist/{chunk-O53CQZ6T.js → chunk-NBOLSL4N.js} +54 -2
  13. package/dist/chunk-NBOLSL4N.js.map +1 -0
  14. package/dist/{chunk-ICA6R6TW.js → chunk-OWHPKAOV.js} +28 -20
  15. package/dist/chunk-OWHPKAOV.js.map +1 -0
  16. package/dist/{chunk-EQEIQSRJ.js → chunk-P2F7IROB.js} +5 -2
  17. package/dist/chunk-P2F7IROB.js.map +1 -0
  18. package/dist/chunk-P7FSBSHQ.js +625 -0
  19. package/dist/chunk-P7FSBSHQ.js.map +1 -0
  20. package/dist/{chunk-PEI6RANI.js → chunk-VR4Z73EU.js} +203 -9
  21. package/dist/chunk-VR4Z73EU.js.map +1 -0
  22. package/dist/{chunk-HUIKIDM5.js → chunk-XMXRI5JK.js} +65 -18
  23. package/dist/chunk-XMXRI5JK.js.map +1 -0
  24. package/dist/components/artifacts/spreadsheet-general-display.d.ts +24 -0
  25. package/dist/components/chat-composer.d.ts +13 -3
  26. package/dist/components/preview-loading.d.ts +2 -0
  27. package/dist/components/session-capability-frame.d.ts +24 -0
  28. package/dist/components/session-chrome.d.ts +1 -2
  29. package/dist/components/session-commands.d.ts +6 -0
  30. package/dist/components/session-connection-request.d.ts +8 -0
  31. package/dist/components/session-mcp-capability-card.d.ts +22 -0
  32. package/dist/composer.js +2 -2
  33. package/dist/connect-account-identity.d.ts +8 -0
  34. package/dist/connect-accounts.d.ts +3 -0
  35. package/dist/connect-chooser.d.ts +4 -0
  36. package/dist/connect-panel.d.ts +7 -1
  37. package/dist/connect-setup.d.ts +2 -0
  38. package/dist/connect.d.ts +4 -21
  39. package/dist/connect.js +705 -321
  40. package/dist/connect.js.map +1 -1
  41. package/dist/connection-discovery.d.ts +10 -0
  42. package/dist/connection-logo.d.ts +2 -1
  43. package/dist/connection-skeleton.d.ts +5 -0
  44. package/dist/hooks/use-connect.d.ts +22 -0
  45. package/dist/index.d.ts +7 -0
  46. package/dist/index.js +720 -646
  47. package/dist/index.js.map +1 -1
  48. package/dist/mcp-connection-status.d.ts +3 -0
  49. package/dist/realtime.js +20 -20
  50. package/dist/realtime.js.map +1 -1
  51. package/dist/session-auth-recommendation.d.ts +5 -0
  52. package/dist/session-capability-policy.d.ts +12 -0
  53. package/dist/session-ui.d.ts +1 -0
  54. package/dist/session-ui.js +7 -5
  55. package/dist/session.d.ts +1 -0
  56. package/dist/session.js +4 -2
  57. package/package.json +3 -3
  58. package/src/assets/gmail.ico +0 -0
  59. package/src/capability-logo-fallback.ts +22 -0
  60. package/src/components/artifacts/document-editor.tsx +63 -6
  61. package/src/components/artifacts/presentation-editor.tsx +214 -9
  62. package/src/components/artifacts/spreadsheet-canvas.ts +3 -8
  63. package/src/components/artifacts/spreadsheet-general-display.ts +43 -0
  64. package/src/components/artifacts/spreadsheet-grid.tsx +10 -11
  65. package/src/components/chat-composer.tsx +26 -3
  66. package/src/components/composer.tsx +8 -0
  67. package/src/components/markdown.tsx +12 -7
  68. package/src/components/preview-loading.tsx +154 -0
  69. package/src/components/session-capability-frame.tsx +163 -0
  70. package/src/components/session-chrome.tsx +29 -74
  71. package/src/components/session-commands.tsx +18 -0
  72. package/src/components/session-connection-request.tsx +97 -0
  73. package/src/components/session-conversation.tsx +5 -4
  74. package/src/components/session-mcp-capability-card.tsx +532 -0
  75. package/src/components/timeline-anchor.tsx +9 -8
  76. package/src/connect-account-identity.tsx +74 -0
  77. package/src/connect-accounts.tsx +102 -51
  78. package/src/connect-chooser.tsx +146 -31
  79. package/src/connect-panel.tsx +55 -8
  80. package/src/connect-setup.tsx +18 -6
  81. package/src/connect.ts +7 -22
  82. package/src/connection-assets.d.ts +4 -0
  83. package/src/connection-discovery.tsx +193 -0
  84. package/src/connection-logo.tsx +4 -0
  85. package/src/connection-skeleton.tsx +16 -0
  86. package/src/conversation-timeline.ts +1 -0
  87. package/src/hooks/use-composer.ts +4 -5
  88. package/src/hooks/use-connect.ts +23 -0
  89. package/src/index.ts +21 -0
  90. package/src/mcp-connection-status.ts +19 -0
  91. package/src/realtime/realtime-control.tsx +6 -8
  92. package/src/session-auth-recommendation.ts +47 -0
  93. package/src/session-capability-policy.ts +79 -0
  94. package/src/session-ui.ts +1 -0
  95. package/src/session.ts +1 -0
  96. package/styles/compiled.css +300 -27
  97. package/styles/connect.css +34 -0
  98. package/styles/index.css +46 -0
  99. package/styles/session-capability.css +42 -0
  100. package/dist/chunk-EQEIQSRJ.js.map +0 -1
  101. package/dist/chunk-HUIKIDM5.js.map +0 -1
  102. package/dist/chunk-ICA6R6TW.js.map +0 -1
  103. package/dist/chunk-LVHCZABQ.js.map +0 -1
  104. package/dist/chunk-NYESIADM.js.map +0 -1
  105. package/dist/chunk-O53CQZ6T.js.map +0 -1
  106. package/dist/chunk-PEI6RANI.js.map +0 -1
  107. package/dist/chunk-URNTAVGX.js.map +0 -1
@@ -24,7 +24,7 @@ import {
24
24
  ToolCallTruncationProvider,
25
25
  prefersReducedMotion,
26
26
  useForcedDefaultOpen
27
- } from "./chunk-URNTAVGX.js";
27
+ } from "./chunk-AWEBVNVX.js";
28
28
  import {
29
29
  Actions,
30
30
  AttachButton,
@@ -47,7 +47,7 @@ import {
47
47
  Status,
48
48
  Surface,
49
49
  useChatComposerController
50
- } from "./chunk-EQEIQSRJ.js";
50
+ } from "./chunk-P2F7IROB.js";
51
51
  import {
52
52
  LightboxProvider,
53
53
  Tooltip,
@@ -64,6 +64,7 @@ import {
64
64
  } from "./chunk-IP4BUBKH.js";
65
65
  import {
66
66
  buildTimeline,
67
+ conversationTimeline,
67
68
  groupTimeline,
68
69
  invokeOlderHistoryLoaderWithReceiptCapture,
69
70
  isActionableHumanInputRequest,
@@ -73,10 +74,10 @@ import {
73
74
  useSession,
74
75
  useSessionEvents,
75
76
  useTurnQueue
76
- } from "./chunk-O53CQZ6T.js";
77
+ } from "./chunk-NBOLSL4N.js";
77
78
  import {
78
79
  useComposer
79
- } from "./chunk-NYESIADM.js";
80
+ } from "./chunk-AKOMC3VO.js";
80
81
  import {
81
82
  usePolledValue
82
83
  } from "./chunk-KZ73RL76.js";
@@ -5304,9 +5305,7 @@ var TimelineBeforeLayout = class extends Component2 {
5304
5305
  function captureTimelineAnchor(scroller) {
5305
5306
  const viewport = scroller.getBoundingClientRect();
5306
5307
  if (viewport.height <= 0) return null;
5307
- const groups = Array.from(scroller.querySelectorAll("[data-og-group-key]")).filter(
5308
- (group) => group.getBoundingClientRect().height > 0
5309
- );
5308
+ const groups = Array.from(scroller.querySelectorAll("[data-og-group-key]")).map((element) => ({ element, rect: element.getBoundingClientRect() })).filter(({ rect }) => rect.height > 0);
5310
5309
  const anchors = [];
5311
5310
  const focused = scroller.ownerDocument.activeElement;
5312
5311
  if (focused instanceof HTMLElement && scroller.contains(focused) && focused.matches("button[aria-expanded]")) {
@@ -5315,8 +5314,7 @@ function captureTimelineAnchor(scroller) {
5315
5314
  anchors.push({ element: focused, key: null, text: null, top: box.top });
5316
5315
  }
5317
5316
  }
5318
- for (const group of groups) {
5319
- const rect = group.getBoundingClientRect();
5317
+ for (const { element: group, rect } of groups) {
5320
5318
  if (rect.bottom <= viewport.top || rect.top >= viewport.bottom) continue;
5321
5319
  for (const element of group.querySelectorAll("p, li, pre, h1, h2, h3, h4")) {
5322
5320
  const box = element.getBoundingClientRect();
@@ -5326,11 +5324,11 @@ function captureTimelineAnchor(scroller) {
5326
5324
  }
5327
5325
  }
5328
5326
  }
5329
- const rows = groups.map((element) => ({
5327
+ const rows = groups.map(({ element, rect }) => ({
5330
5328
  element,
5331
5329
  key: element.getAttribute("data-og-group-key"),
5332
5330
  text: null,
5333
- top: element.getBoundingClientRect().top
5331
+ top: rect.top
5334
5332
  }));
5335
5333
  anchors.push(...rows.filter((row) => row.top >= viewport.top));
5336
5334
  anchors.push(...rows.filter((row) => row.top < viewport.top).reverse());
@@ -5338,12 +5336,13 @@ function captureTimelineAnchor(scroller) {
5338
5336
  }
5339
5337
  function timelineAnchorCorrection(scroller, anchors) {
5340
5338
  let blocks;
5341
- const groups = Array.from(scroller.querySelectorAll("[data-og-group-key]"));
5339
+ let groups;
5342
5340
  for (const anchor of anchors) {
5343
5341
  let element;
5344
5342
  if (scroller.contains(anchor.element) && (!anchor.text || anchor.element.textContent === anchor.text)) {
5345
5343
  element = anchor.element;
5346
5344
  } else if (anchor.key) {
5345
+ groups ??= Array.from(scroller.querySelectorAll("[data-og-group-key]"));
5347
5346
  element = groups.find((group) => group.getAttribute("data-og-group-key") === anchor.key);
5348
5347
  } else if (anchor.text) {
5349
5348
  blocks ??= Array.from(scroller.querySelectorAll("p, li, pre, h1, h2, h3, h4"));
@@ -8695,6 +8694,9 @@ function useWorkspaceModelCatalog(options) {
8695
8694
 
8696
8695
  // src/components/chat-composer.tsx
8697
8696
  import { LayoutGroup, motion as motion4 } from "motion/react";
8697
+ import {
8698
+ useImperativeHandle
8699
+ } from "react";
8698
8700
  import { Fragment as Fragment6, jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
8699
8701
  function ChatComposer({
8700
8702
  composer,
@@ -8724,7 +8726,11 @@ function ChatComposer({
8724
8726
  commands,
8725
8727
  commandContext,
8726
8728
  onClearView,
8727
- messages
8729
+ messages,
8730
+ footer,
8731
+ focusRef,
8732
+ inputProps,
8733
+ surfaceClassName
8728
8734
  }) {
8729
8735
  const controller = useChatComposerController({
8730
8736
  delivery: composer,
@@ -8746,10 +8752,13 @@ function ChatComposer({
8746
8752
  attachments || models || controlsLeading || controlsStart || transcription
8747
8753
  );
8748
8754
  const stackActions = hasControls && Boolean(actionsStart);
8755
+ useImperativeHandle(focusRef, () => ({ focusInput: controller.focusInput }), [
8756
+ controller.focusInput
8757
+ ]);
8749
8758
  return /* @__PURE__ */ jsx19(Fragment6, { children: /* @__PURE__ */ jsxs14(Root, { controller, responsiveBasis, className, children: [
8750
8759
  /* @__PURE__ */ jsxs14(Frame, { children: [
8751
8760
  /* @__PURE__ */ jsx19(CommandPalette, {}),
8752
- /* @__PURE__ */ jsxs14(Surface, { children: [
8761
+ /* @__PURE__ */ jsxs14(Surface, { className: surfaceClassName, children: [
8753
8762
  /* @__PURE__ */ jsx19(PausedState, {}),
8754
8763
  /* @__PURE__ */ jsx19(RestoredResources, {}),
8755
8764
  /* @__PURE__ */ jsx19(Attachments, {}),
@@ -8765,8 +8774,8 @@ function ChatComposer({
8765
8774
  onRemove: composer.removeAnnotation
8766
8775
  }
8767
8776
  ) }) : null,
8768
- /* @__PURE__ */ jsx19(Input, { placeholder, autoFocus }),
8769
- controller.confirmState ? /* @__PURE__ */ jsx19(Confirmation, {}) : /* @__PURE__ */ jsx19(
8777
+ /* @__PURE__ */ jsx19(Input, { ...inputProps, placeholder, autoFocus }),
8778
+ controller.confirmState ? /* @__PURE__ */ jsx19(Confirmation, {}) : footer !== void 0 ? footer : /* @__PURE__ */ jsx19(
8770
8779
  Footer,
8771
8780
  {
8772
8781
  "data-og-stack-actions": stackActions ? "" : void 0,
@@ -8836,183 +8845,6 @@ function ChatComposer({
8836
8845
  ] }) });
8837
8846
  }
8838
8847
 
8839
- // src/components/session-conversation.tsx
8840
- import { useRef as useRef9 } from "react";
8841
-
8842
- // src/conversation-timeline.ts
8843
- function conversationTimeline(items, queue, composer) {
8844
- const queued = new Set(
8845
- queue.queue.filter((turn) => turn.metadata.delivery !== "steer").map((turn) => turn.triggerEventId)
8846
- );
8847
- const pending = composer.optimisticMessages ?? [];
8848
- const pendingQueue = new Set(
8849
- pending.filter(
8850
- (message) => message.destination === "queue" && !(message.turnId && message.appliedQueueVersion != null && queue.snapshot && queue.snapshot.version >= message.appliedQueueVersion && !queue.queue.some((turn) => turn.id === message.turnId))
8851
- ).map((message) => `user-message:${message.clientEventId}`)
8852
- );
8853
- const visible = items.filter(
8854
- (item) => item.kind !== "user-message" || !queued.has(item.id) && !pendingQueue.has(item.reconciliationKey ?? "")
8855
- );
8856
- const keys = new Set(
8857
- visible.flatMap((item) => item.kind === "user-message" ? [item.reconciliationKey] : [])
8858
- );
8859
- const optimistic = pending.filter(
8860
- (message) => !keys.has(`user-message:${message.clientEventId}`) && !queue.queue.some((turn) => turn.id === message.turnId)
8861
- ).map((message) => ({
8862
- kind: "user-message",
8863
- id: `optimistic:${message.clientEventId}`,
8864
- reconciliationKey: `user-message:${message.clientEventId}`,
8865
- text: message.text,
8866
- annotations: message.annotations.map((annotation, ordinal) => ({ ...annotation, ordinal })),
8867
- resources: message.resources,
8868
- tools: [],
8869
- occurredAt: message.occurredAt,
8870
- delivery: {
8871
- state: message.state,
8872
- ...message.error ? { error: message.error } : {},
8873
- ...message.state === "failed" ? {
8874
- onRetry: () => composer.retryOptimisticMessage?.(message.clientEventId),
8875
- onRemove: () => composer.removeOptimisticMessage?.(message.clientEventId)
8876
- } : {}
8877
- }
8878
- }));
8879
- const ids = new Set(visible.map((item) => item.id));
8880
- const steers = (queue.acceptedSteers ?? []).filter((steer) => !ids.has(steer.triggerEventId)).map((steer) => ({
8881
- kind: "user-message",
8882
- id: steer.triggerEventId,
8883
- text: steer.text,
8884
- annotations: steer.annotations,
8885
- resources: steer.resources,
8886
- tools: steer.tools,
8887
- occurredAt: steer.occurredAt,
8888
- delivery: { state: steer.state }
8889
- }));
8890
- return [...visible, ...optimistic, ...steers];
8891
- }
8892
-
8893
- // src/components/session-conversation.tsx
8894
- import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
8895
- function SessionConversation(props) {
8896
- return /* @__PURE__ */ jsx20(Conversation, { ...props }, `${props.workspaceId ?? ""}:${props.sessionId}`);
8897
- }
8898
- function Conversation({
8899
- sessionId,
8900
- userMessageDisclosureLabels,
8901
- loadSkillReview,
8902
- client,
8903
- workspaceId,
8904
- className,
8905
- height = "100%",
8906
- composerProps
8907
- }) {
8908
- const scope = { client, workspaceId };
8909
- const context = useOpenGeni(scope);
8910
- const catalog = useWorkspaceModelCatalog({
8911
- client: context.client,
8912
- workspaceId: context.workspaceId
8913
- });
8914
- const feed = useSessionEvents(sessionId, scope);
8915
- const options = { ...scope, events: feed.events };
8916
- const detail = useSession(sessionId, options);
8917
- const queue = useTurnQueue(sessionId, options);
8918
- const human = useHumanInputRequests(sessionId, options);
8919
- const status = feed.sessionStatus ?? detail.session?.status;
8920
- const terminal = status === "cancelled";
8921
- const composer = useComposer(sessionId, {
8922
- ...options,
8923
- effectiveControl: queue.effectiveControl ?? detail.session?.effectiveControl,
8924
- sendDestination: () => queue.queue.length > 0 || status === "running" ? "queue" : "chat"
8925
- });
8926
- const region = useRef9(null);
8927
- const error = detail.error ?? feed.error ?? human.error;
8928
- return /* @__PURE__ */ jsxs15(
8929
- "div",
8930
- {
8931
- className: cn(
8932
- "og-root flex min-h-0 min-w-0 flex-col gap-2 overflow-hidden bg-og-bg text-og-fg",
8933
- className
8934
- ),
8935
- ref: region,
8936
- style: { height },
8937
- "data-og-conversation": "",
8938
- children: [
8939
- error && /* @__PURE__ */ jsx20("p", { role: "alert", children: error.message }),
8940
- /* @__PURE__ */ jsx20(
8941
- MessageTimeline,
8942
- {
8943
- userMessageDisclosureLabels,
8944
- className: "min-h-0 flex-1",
8945
- items: conversationTimeline(feed.timeline, queue, composer),
8946
- status,
8947
- hasOlder: feed.hasOlder,
8948
- loadingOlder: feed.loadingOlder,
8949
- onLoadOlder: feed.loadOlder,
8950
- hasNewer: feed.hasNewer,
8951
- loadingNewer: feed.loadingNewer,
8952
- onLoadNewer: feed.loadNewer,
8953
- onJumpToStart: async () => {
8954
- await feed.loadOldest();
8955
- },
8956
- loadingOldest: feed.loadingOldest,
8957
- onJumpToLatest: feed.jumpToLatest,
8958
- onAnnotate: composer.addAnnotation
8959
- }
8960
- ),
8961
- /* @__PURE__ */ jsxs15("div", { className: "min-h-0 max-h-[40%] shrink-0 overflow-y-auto", "data-og-conversation-inputs": "", children: [
8962
- /* @__PURE__ */ jsx20(
8963
- HumanInputSurface,
8964
- {
8965
- loadSkillReview,
8966
- requests: human.requests,
8967
- onSubmit: async (id, response) => {
8968
- await human.respond(id, response);
8969
- },
8970
- respondingRequestId: human.respondingRequestId,
8971
- error: human.mutationError?.message,
8972
- autoFocus: false
8973
- }
8974
- ),
8975
- terminal ? /* @__PURE__ */ jsx20(QueueSurface, { queue, readOnly: true }) : /* @__PURE__ */ jsx20(
8976
- QueueSurface,
8977
- {
8978
- queue,
8979
- composer,
8980
- onRequestComposerFocus: () => region.current?.querySelector("textarea")?.focus()
8981
- }
8982
- )
8983
- ] }),
8984
- /* @__PURE__ */ jsx20("div", { className: "shrink-0", "data-og-conversation-composer": "", children: /* @__PURE__ */ jsx20(
8985
- ChatComposer,
8986
- {
8987
- ...composerProps,
8988
- composer,
8989
- disabled: terminal || composerProps?.disabled,
8990
- controlsStart: composerProps?.controlsStart ?? (composer.policy && /* @__PURE__ */ jsx20(
8991
- ModelPolicyPicker,
8992
- {
8993
- rows: catalog.rows,
8994
- model: composer.policy.model,
8995
- effort: composer.policy.reasoningEffort,
8996
- latencyMode: composer.policy.latencyMode,
8997
- loading: catalog.loading,
8998
- error: catalog.error?.message,
8999
- disabled: terminal,
9000
- sessionKey: sessionId,
9001
- onModelChange: (model) => composer.setModel?.(model),
9002
- onEffortChange: (effort) => composer.setReasoningEffort?.(effort),
9003
- onLatencyModeChange: (mode) => composer.setLatencyMode?.(mode)
9004
- }
9005
- )),
9006
- responsiveBasis: composerProps?.responsiveBasis ?? "container",
9007
- effectiveControl: composer.effectiveControl ?? queue.effectiveControl ?? detail.session?.effectiveControl,
9008
- queuedAheadCount: queue.queue.length
9009
- }
9010
- ) })
9011
- ]
9012
- }
9013
- );
9014
- }
9015
-
9016
8848
  // src/components/session-chrome.tsx
9017
8849
  import {
9018
8850
  ActivityIcon,
@@ -9035,8 +8867,8 @@ import {
9035
8867
  TargetIcon as TargetIcon3
9036
8868
  } from "lucide-react";
9037
8869
  import { AnimatePresence as AnimatePresence4, motion as motion5, useReducedMotion as useReducedMotion4 } from "motion/react";
9038
- import { useEffect as useEffect11, useId as useId4, useMemo as useMemo4, useRef as useRef10, useState as useState15 } from "react";
9039
- import { Fragment as Fragment7, jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
8870
+ import { useEffect as useEffect11, useId as useId4, useMemo as useMemo4, useRef as useRef9, useState as useState15 } from "react";
8871
+ import { Fragment as Fragment7, jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
9040
8872
  var GOAL_LABEL = {
9041
8873
  pursuing: "Pursuing",
9042
8874
  waiting: "Waiting",
@@ -9206,7 +9038,6 @@ function toneClass(tone, selected) {
9206
9038
  }
9207
9039
  }
9208
9040
  function SessionChrome({
9209
- compact = false,
9210
9041
  sessionStatus,
9211
9042
  queue,
9212
9043
  composer,
@@ -9225,7 +9056,7 @@ function SessionChrome({
9225
9056
  onActiveChange
9226
9057
  }) {
9227
9058
  const [activityRequested, setActivityOpen] = useState15(
9228
- Boolean(compact && defaultActive && ["incoming", "agents", "commands"].includes(defaultActive))
9059
+ Boolean(defaultActive && ["incoming", "agents", "commands"].includes(defaultActive))
9229
9060
  );
9230
9061
  const reactId = useId4();
9231
9062
  const panelId = `og-session-chrome-panel-${reactId}`;
@@ -9261,13 +9092,13 @@ function SessionChrome({
9261
9092
  })
9262
9093
  );
9263
9094
  const active = activeControlled !== void 0 ? activeControlled : activeUncontrolled;
9264
- const activityOpen = activityRequested || Boolean(compact && active && ["incoming", "agents", "commands"].includes(active));
9265
- const activityVisibleRef = useRef10(activityOpen);
9095
+ const activityOpen = activityRequested || Boolean(active && ["incoming", "agents", "commands"].includes(active));
9096
+ const activityVisibleRef = useRef9(activityOpen);
9266
9097
  activityVisibleRef.current = activityOpen;
9267
- const queueOfferAdmissionSuppressedRef = useRef10(
9098
+ const queueOfferAdmissionSuppressedRef = useRef9(
9268
9099
  defaultActive == null && initialAuthoritativeQueuedCount === 0 && countOptimisticQueuedMessages(composer?.optimisticMessages, queuedTurnIds, queue.snapshot) > 0
9269
9100
  );
9270
- const queueOfferDismissedSessionIdsRef = useRef10(/* @__PURE__ */ new Set());
9101
+ const queueOfferDismissedSessionIdsRef = useRef9(/* @__PURE__ */ new Set());
9271
9102
  const occupancySessionId = queuedTurns[0]?.sessionId ?? null;
9272
9103
  const setActive = (next) => {
9273
9104
  if (active === "queue" && next === null) {
@@ -9292,7 +9123,7 @@ function SessionChrome({
9292
9123
  tone: incoming.some(
9293
9124
  (item) => item.classification === "action_required" || item.classification === "failure"
9294
9125
  ) ? "waiting" : "neutral",
9295
- icon: /* @__PURE__ */ jsx21(InboxIcon, { className: "size-3" })
9126
+ icon: /* @__PURE__ */ jsx20(InboxIcon, { className: "size-3" })
9296
9127
  });
9297
9128
  }
9298
9129
  const queuedCount = queuedTurns.length + optimisticQueued.length;
@@ -9309,7 +9140,7 @@ function SessionChrome({
9309
9140
  label: queueProblem ? queuedCount > 0 ? `${queuedCount} queued \xB7 needs attention` : "Queue needs attention" : allVoiceRequests ? queuedCount === 1 ? "Voice request queued" : `${queuedCount} voice requests queued` : onlyVoiceHandoff ? "Voice handoff queued" : `${queuedCount} queued prompt${queuedCount === 1 ? "" : "s"}`,
9310
9141
  ...detail ? { detail } : {},
9311
9142
  tone: queueProblem ? "waiting" : "neutral",
9312
- icon: queueProblem ? /* @__PURE__ */ jsx21(TriangleAlertIcon3, { className: "size-3" }) : voiceOnly ? /* @__PURE__ */ jsx21(AudioLinesIcon, { className: "size-3" }) : /* @__PURE__ */ jsx21(ListOrderedIcon, { className: "size-3" })
9143
+ icon: queueProblem ? /* @__PURE__ */ jsx20(TriangleAlertIcon3, { className: "size-3" }) : voiceOnly ? /* @__PURE__ */ jsx20(AudioLinesIcon, { className: "size-3" }) : /* @__PURE__ */ jsx20(ListOrderedIcon, { className: "size-3" })
9313
9144
  });
9314
9145
  }
9315
9146
  if (record && goalState) {
@@ -9321,7 +9152,7 @@ function SessionChrome({
9321
9152
  detail: elapsed ? `${elapsed} \xB7 ${record.text}` : record.text,
9322
9153
  ...explanation ? { title: explanation } : {},
9323
9154
  tone: waiting ? "waiting" : goalState === "pursuing" || goalState === "scheduled" ? "accent" : "neutral",
9324
- icon: /* @__PURE__ */ jsx21(TargetIcon3, { className: "size-3" })
9155
+ icon: /* @__PURE__ */ jsx20(TargetIcon3, { className: "size-3" })
9325
9156
  });
9326
9157
  }
9327
9158
  if (agentsSignal && agentsSignal.count > 0) {
@@ -9331,7 +9162,7 @@ function SessionChrome({
9331
9162
  label: `${agentsSignal.count} agent${agentsSignal.count === 1 ? "" : "s"}`,
9332
9163
  ...detail ? { detail } : {},
9333
9164
  tone: agentsSignal.tone ?? "neutral",
9334
- icon: /* @__PURE__ */ jsx21(BotIcon3, { className: "size-3" })
9165
+ icon: /* @__PURE__ */ jsx20(BotIcon3, { className: "size-3" })
9335
9166
  });
9336
9167
  }
9337
9168
  if (commandsCount > 0 || active === "commands" && hasCommandsPanel) {
@@ -9339,7 +9170,7 @@ function SessionChrome({
9339
9170
  id: "commands",
9340
9171
  label: commandsCount > 0 ? `${commandsCount} command${commandsCount === 1 ? "" : "s"}` : "Commands",
9341
9172
  tone: commandsCount > 0 ? "running" : "neutral",
9342
- icon: /* @__PURE__ */ jsx21(TerminalIcon2, { className: "size-3" })
9173
+ icon: /* @__PURE__ */ jsx20(TerminalIcon2, { className: "size-3" })
9343
9174
  });
9344
9175
  }
9345
9176
  return rows;
@@ -9358,7 +9189,7 @@ function SessionChrome({
9358
9189
  record
9359
9190
  ]);
9360
9191
  const optimisticQueueKeys = optimisticQueued.map((message) => message.clientEventId).join(",");
9361
- const previousOptimisticQueueKeys = useRef10(optimisticQueueKeys);
9192
+ const previousOptimisticQueueKeys = useRef9(optimisticQueueKeys);
9362
9193
  const [queueArrivalNonce, setQueueArrivalNonce] = useState15(0);
9363
9194
  useEffect11(() => {
9364
9195
  const previous = new Set(previousOptimisticQueueKeys.current.split(",").filter(Boolean));
@@ -9399,14 +9230,14 @@ function SessionChrome({
9399
9230
  queuedTurns.length
9400
9231
  ]);
9401
9232
  const [replaceDraftFor, setReplaceDraftFor] = useState15(null);
9402
- const chipRefs = useRef10({});
9403
- const railRef = useRef10(null);
9233
+ const chipRefs = useRef9({});
9234
+ const railRef = useRef9(null);
9404
9235
  const [pill, setPill] = useState15({ left: 0, top: 0, width: 0, height: 0, opacity: 0 });
9405
9236
  const signalIds = signals.map((signal) => signal.id).join(",");
9406
9237
  useEffect11(() => {
9407
- if (compact && !signals.some((signal) => ["incoming", "agents", "commands"].includes(signal.id)))
9238
+ if (!signals.some((signal) => ["incoming", "agents", "commands"].includes(signal.id)))
9408
9239
  setActivityOpen(false);
9409
- }, [compact, signals]);
9240
+ }, [signals]);
9410
9241
  useEffect11(() => {
9411
9242
  if (active && !signalIds.split(",").includes(active)) {
9412
9243
  if (activeControlled === void 0) setActiveUncontrolled(null);
@@ -9459,14 +9290,14 @@ function SessionChrome({
9459
9290
  const shellDuration = reduceMotion ? 0 : 0.22;
9460
9291
  const crossfadeDuration = reduceMotion ? 0 : 0.18;
9461
9292
  const ease = [0.22, 1, 0.36, 1];
9462
- const panelBody = active === "incoming" ? /* @__PURE__ */ jsx21(
9293
+ const panelBody = active === "incoming" ? /* @__PURE__ */ jsx20(
9463
9294
  IncomingPanel,
9464
9295
  {
9465
9296
  inputs: incoming,
9466
9297
  onDismiss: onDismissIncoming,
9467
9298
  onOpenSession
9468
9299
  }
9469
- ) : active === "queue" ? /* @__PURE__ */ jsx21(
9300
+ ) : active === "queue" ? /* @__PURE__ */ jsx20(
9470
9301
  QueuePanel,
9471
9302
  {
9472
9303
  turns: queuedTurns,
@@ -9523,15 +9354,15 @@ function SessionChrome({
9523
9354
  void queue.moveTurn(turnId, beforeTurnId);
9524
9355
  } : void 0
9525
9356
  }
9526
- ) : active === "goal" && record && goalState && goal ? /* @__PURE__ */ jsx21(GoalPanel, { goal, state: goalState, elapsed, readOnly }) : active === "commands" ? /* @__PURE__ */ jsx21("div", { "data-og-session-chrome-panel": "commands", children: commandsPanel }) : active === "agents" ? /* @__PURE__ */ jsx21("div", { "data-og-session-chrome-panel": "agents", children: agentsPanel ?? /* @__PURE__ */ jsx21("p", { className: "text-og-xs text-og-fg-muted", children: "No agent details." }) }) : null;
9527
- return /* @__PURE__ */ jsx21(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsx21(
9357
+ ) : active === "goal" && record && goalState && goal ? /* @__PURE__ */ jsx20(GoalPanel, { goal, state: goalState, elapsed, readOnly }) : active === "commands" ? /* @__PURE__ */ jsx20("div", { "data-og-session-chrome-panel": "commands", children: commandsPanel }) : active === "agents" ? /* @__PURE__ */ jsx20("div", { "data-og-session-chrome-panel": "agents", children: agentsPanel ?? /* @__PURE__ */ jsx20("p", { className: "text-og-xs text-og-fg-muted", children: "No agent details." }) }) : null;
9358
+ return /* @__PURE__ */ jsx20(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsx20(
9528
9359
  "div",
9529
9360
  {
9530
9361
  className: cn("og-session-chrome og-root w-full", className),
9531
9362
  "data-testid": "session-chrome",
9532
9363
  "data-og-session-chrome": "",
9533
9364
  "data-og-session-chrome-open": open ? "true" : "false",
9534
- children: /* @__PURE__ */ jsxs16(
9365
+ children: /* @__PURE__ */ jsxs15(
9535
9366
  "div",
9536
9367
  {
9537
9368
  className: cn(
@@ -9540,14 +9371,14 @@ function SessionChrome({
9540
9371
  ),
9541
9372
  style: {
9542
9373
  borderRadius: "var(--_og-session-chrome-radius)",
9543
- background: compact ? "transparent" : open ? "var(--_og-session-chrome-surface-open)" : "var(--_og-session-chrome-surface)",
9544
- borderColor: compact ? "transparent" : open ? "var(--_og-session-chrome-border-open)" : "var(--_og-session-chrome-border)",
9545
- boxShadow: compact ? "none" : open ? "var(--og-session-chrome-shadow-open)" : "var(--og-session-chrome-shadow)",
9374
+ background: "transparent",
9375
+ borderColor: "transparent",
9376
+ boxShadow: "none",
9546
9377
  transitionDuration: "var(--og-session-chrome-duration)",
9547
9378
  transitionTimingFunction: "var(--_og-session-chrome-ease)"
9548
9379
  },
9549
9380
  children: [
9550
- /* @__PURE__ */ jsx21(
9381
+ /* @__PURE__ */ jsx20(
9551
9382
  "div",
9552
9383
  {
9553
9384
  className: "relative",
@@ -9557,16 +9388,16 @@ function SessionChrome({
9557
9388
  paddingLeft: "var(--og-session-chrome-rail-pad)",
9558
9389
  paddingRight: "var(--og-session-chrome-rail-pad)"
9559
9390
  },
9560
- children: /* @__PURE__ */ jsxs16(
9391
+ children: /* @__PURE__ */ jsxs15(
9561
9392
  "div",
9562
9393
  {
9563
9394
  ref: railRef,
9564
- className: cn("relative flex items-center", compact ? "flex-nowrap" : "flex-wrap"),
9395
+ className: "relative flex flex-nowrap items-center",
9565
9396
  style: {
9566
- gap: compact ? "10px" : "var(--og-session-chrome-chip-gap)"
9397
+ gap: "10px"
9567
9398
  },
9568
9399
  children: [
9569
- /* @__PURE__ */ jsx21(
9400
+ /* @__PURE__ */ jsx20(
9570
9401
  motion5.div,
9571
9402
  {
9572
9403
  "aria-hidden": true,
@@ -9586,22 +9417,20 @@ function SessionChrome({
9586
9417
  transition: { duration: shellDuration, ease }
9587
9418
  }
9588
9419
  ),
9589
- signals.filter(
9590
- (signal) => !compact || !["incoming", "agents", "commands"].includes(signal.id)
9591
- ).map((signal) => {
9420
+ signals.filter((signal) => !["incoming", "agents", "commands"].includes(signal.id)).map((signal) => {
9592
9421
  const selected = active === signal.id;
9593
- return /* @__PURE__ */ jsxs16(
9422
+ return /* @__PURE__ */ jsxs15(
9594
9423
  "div",
9595
9424
  {
9596
9425
  role: "group",
9597
9426
  "aria-label": signal.id === "queue" ? "Queued messages and actions" : signal.id === "goal" ? "Goal and actions" : signal.label,
9598
9427
  className: cn(
9599
9428
  "group/signal relative z-[1] inline-flex min-w-0 max-w-full items-center rounded-og-md",
9600
- compact && "bg-og-surface-2/60 px-0.5",
9601
- compact && selected && "bg-og-surface-3"
9429
+ "bg-og-surface-2/60 px-0.5",
9430
+ selected && "bg-og-surface-3"
9602
9431
  ),
9603
9432
  children: [
9604
- /* @__PURE__ */ jsxs16(
9433
+ /* @__PURE__ */ jsxs15(
9605
9434
  "button",
9606
9435
  {
9607
9436
  type: "button",
@@ -9610,12 +9439,12 @@ function SessionChrome({
9610
9439
  },
9611
9440
  "aria-expanded": selected,
9612
9441
  "aria-controls": panelId,
9613
- "aria-label": compact && signal.id === "goal" ? `Goal \xB7 ${goalState === "pursuing" ? "Running" : signal.label}` : selected ? `Close ${signal.label}` : void 0,
9442
+ "aria-label": signal.id === "goal" ? `Goal \xB7 ${goalState === "pursuing" ? "Running" : signal.label}` : selected ? `Close ${signal.label}` : void 0,
9614
9443
  "data-testid": `session-chrome-${signal.id}`,
9615
9444
  "data-og-session-chrome-signal": signal.id,
9616
- title: signal.title ?? (compact ? signal.label : void 0),
9445
+ title: signal.title ?? signal.label,
9617
9446
  onClick: () => {
9618
- if (compact) setActivityOpen(false);
9447
+ setActivityOpen(false);
9619
9448
  setActive(selected ? null : signal.id);
9620
9449
  },
9621
9450
  className: cn(
@@ -9630,7 +9459,7 @@ function SessionChrome({
9630
9459
  paddingInline: "var(--og-session-chrome-chip-pad-x)"
9631
9460
  },
9632
9461
  children: [
9633
- signal.id === "queue" && queueArrivalNonce > 0 && !reduceMotion ? /* @__PURE__ */ jsx21(
9462
+ signal.id === "queue" && queueArrivalNonce > 0 && !reduceMotion ? /* @__PURE__ */ jsx20(
9634
9463
  motion5.span,
9635
9464
  {
9636
9465
  "aria-hidden": "true",
@@ -9642,48 +9471,26 @@ function SessionChrome({
9642
9471
  },
9643
9472
  queueArrivalNonce
9644
9473
  ) : null,
9645
- /* @__PURE__ */ jsx21("span", { className: cn("shrink-0", toneClass(signal.tone, selected)), children: signal.icon }),
9646
- /* @__PURE__ */ jsxs16(
9647
- "span",
9648
- {
9649
- className: cn(
9650
- "font-medium text-og-fg",
9651
- compact ? "min-w-0 truncate" : "shrink-0"
9652
- ),
9653
- children: [
9654
- compact && signal.id === "goal" ? "Goal \xB7 " : null,
9655
- compact && signal.id === "goal" ? goalState === "pursuing" ? "Running" : signal.label : compact && signal.id === "queue" ? `${queuedTurns.length + optimisticQueued.length} queued` : signal.label
9656
- ]
9657
- }
9658
- ),
9659
- signal.detail && !compact ? /* @__PURE__ */ jsxs16(Fragment7, { children: [
9660
- /* @__PURE__ */ jsx21("span", { "aria-hidden": true, className: "shrink-0 text-og-fg-subtle/60", children: "\xB7" }),
9661
- /* @__PURE__ */ jsx21("span", { className: "min-w-0 max-w-[8.5rem] truncate text-og-fg sm:max-w-[12rem]", children: signal.detail })
9662
- ] }) : null,
9663
- selected && !compact ? /* @__PURE__ */ jsx21(
9664
- "span",
9665
- {
9666
- "data-testid": "session-chrome-close",
9667
- className: "ml-0.5 inline-flex size-4 shrink-0 items-center justify-center rounded-og-sm text-og-fg-subtle transition-colors group-hover:text-og-fg pointer-coarse:size-5",
9668
- "aria-hidden": true,
9669
- children: /* @__PURE__ */ jsx21(XIcon2, { className: "size-3" })
9670
- }
9671
- ) : null
9474
+ /* @__PURE__ */ jsx20("span", { className: cn("shrink-0", toneClass(signal.tone, selected)), children: signal.icon }),
9475
+ /* @__PURE__ */ jsxs15("span", { className: cn("font-medium text-og-fg", "min-w-0 truncate"), children: [
9476
+ signal.id === "goal" ? "Goal \xB7 " : null,
9477
+ signal.id === "goal" ? goalState === "pursuing" ? "Running" : signal.label : signal.id === "queue" ? queue.error || queue.mutationError ? signal.label : `${queuedTurns.length + optimisticQueued.length} queued` : signal.label
9478
+ ] })
9672
9479
  ]
9673
9480
  }
9674
9481
  ),
9675
- signal.id === "goal" && goal && record && !readOnly ? /* @__PURE__ */ jsxs16("div", { className: cn("flex shrink-0 items-center pr-1", compact && "pl-0.5"), children: [
9676
- record.status === "active" || record.status === "paused" ? /* @__PURE__ */ jsx21(
9482
+ signal.id === "goal" && goal && record && !readOnly ? /* @__PURE__ */ jsxs15("div", { className: "flex shrink-0 items-center pr-1 pl-0.5", children: [
9483
+ record.status === "active" || record.status === "paused" ? /* @__PURE__ */ jsx20(
9677
9484
  IconAction,
9678
9485
  {
9679
9486
  label: record.status === "paused" ? "Resume goal" : "Pause goal",
9680
9487
  tip: record.status === "paused" ? "Resume goal" : "Pause goal",
9681
9488
  disabled: goal.updating,
9682
9489
  onClick: () => void (record.status === "paused" ? goal.resume() : goal.pause("Paused from session chrome")),
9683
- children: goal.updating ? /* @__PURE__ */ jsx21(Loader2Icon2, { className: "size-3 animate-og-spin" }) : record.status === "paused" ? /* @__PURE__ */ jsx21(PlayIcon2, { className: "size-3" }) : /* @__PURE__ */ jsx21(PauseIcon2, { className: "size-3" })
9490
+ children: goal.updating ? /* @__PURE__ */ jsx20(Loader2Icon2, { className: "size-3 animate-og-spin" }) : record.status === "paused" ? /* @__PURE__ */ jsx20(PlayIcon2, { className: "size-3" }) : /* @__PURE__ */ jsx20(PauseIcon2, { className: "size-3" })
9684
9491
  }
9685
9492
  ) : null,
9686
- /* @__PURE__ */ jsx21(
9493
+ /* @__PURE__ */ jsx20(
9687
9494
  IconAction,
9688
9495
  {
9689
9496
  label: "Clear goal",
@@ -9691,10 +9498,10 @@ function SessionChrome({
9691
9498
  danger: true,
9692
9499
  disabled: goal.updating,
9693
9500
  onClick: () => void goal.deleteGoal(),
9694
- children: /* @__PURE__ */ jsx21(Trash2Icon2, { className: "size-3" })
9501
+ children: /* @__PURE__ */ jsx20(Trash2Icon2, { className: "size-3" })
9695
9502
  }
9696
9503
  )
9697
- ] }) : signal.id === "queue" && canMutateQueue && queuedTurns[0] ? /* @__PURE__ */ jsx21("div", { className: cn("flex shrink-0 items-center pr-1", compact && "pl-0.5"), children: /* @__PURE__ */ jsx21(
9504
+ ] }) : signal.id === "queue" && canMutateQueue && queuedTurns[0] ? /* @__PURE__ */ jsx20("div", { className: "flex shrink-0 items-center pr-1 pl-0.5", children: /* @__PURE__ */ jsx20(
9698
9505
  IconAction,
9699
9506
  {
9700
9507
  label: "Steer first queued message",
@@ -9702,7 +9509,7 @@ function SessionChrome({
9702
9509
  tip: QUEUE_STEER_TIP,
9703
9510
  disabled: queue.mutating || Boolean(queue.mutationFor(queuedTurns[0].id)),
9704
9511
  onClick: () => void queue.steerTurn(queuedTurns[0].id),
9705
- children: /* @__PURE__ */ jsx21(CornerDownRightIcon, { className: "size-3" })
9512
+ children: /* @__PURE__ */ jsx20(CornerDownRightIcon, { className: "size-3" })
9706
9513
  }
9707
9514
  ) }) : null
9708
9515
  ]
@@ -9710,7 +9517,7 @@ function SessionChrome({
9710
9517
  signal.id
9711
9518
  );
9712
9519
  }),
9713
- compact && signals.some((signal) => ["incoming", "agents", "commands"].includes(signal.id)) ? /* @__PURE__ */ jsxs16(
9520
+ signals.some((signal) => ["incoming", "agents", "commands"].includes(signal.id)) ? /* @__PURE__ */ jsxs15(
9714
9521
  "button",
9715
9522
  {
9716
9523
  type: "button",
@@ -9731,13 +9538,13 @@ function SessionChrome({
9731
9538
  activityOpen ? "bg-og-surface-3 text-og-fg" : "text-og-fg-muted hover:bg-og-surface-2 hover:text-og-fg"
9732
9539
  ),
9733
9540
  children: [
9734
- /* @__PURE__ */ jsx21(ActivityIcon, { className: "size-3.5" }),
9735
- /* @__PURE__ */ jsx21("span", { className: "sr-only", children: "Activity" }),
9736
- incoming.length > 0 ? /* @__PURE__ */ jsx21("span", { className: "size-1.5 rounded-full bg-og-accent" }) : null
9541
+ /* @__PURE__ */ jsx20(ActivityIcon, { className: "size-3.5" }),
9542
+ /* @__PURE__ */ jsx20("span", { className: "sr-only", children: "Activity" }),
9543
+ incoming.length > 0 ? /* @__PURE__ */ jsx20("span", { className: "size-1.5 rounded-full bg-og-accent" }) : null
9737
9544
  ]
9738
9545
  }
9739
9546
  ) : null,
9740
- stopping ? /* @__PURE__ */ jsxs16(
9547
+ stopping ? /* @__PURE__ */ jsxs15(
9741
9548
  "span",
9742
9549
  {
9743
9550
  role: "status",
@@ -9745,7 +9552,7 @@ function SessionChrome({
9745
9552
  className: "inline-flex min-h-[var(--og-session-chrome-chip-min-height)] items-center gap-1.5 px-1.5 text-og-xs text-og-fg-muted",
9746
9553
  "data-testid": "session-chrome-stopping",
9747
9554
  children: [
9748
- /* @__PURE__ */ jsx21(
9555
+ /* @__PURE__ */ jsx20(
9749
9556
  Loader2Icon2,
9750
9557
  {
9751
9558
  "aria-hidden": "true",
@@ -9761,7 +9568,7 @@ function SessionChrome({
9761
9568
  )
9762
9569
  }
9763
9570
  ),
9764
- /* @__PURE__ */ jsx21(AnimatePresence4, { initial: false, children: compact && activityOpen ? /* @__PURE__ */ jsx21(
9571
+ /* @__PURE__ */ jsx20(AnimatePresence4, { initial: false, children: activityOpen ? /* @__PURE__ */ jsx20(
9765
9572
  motion5.div,
9766
9573
  {
9767
9574
  initial: { height: 0, opacity: 0 },
@@ -9769,7 +9576,7 @@ function SessionChrome({
9769
9576
  exit: { height: 0, opacity: 0 },
9770
9577
  transition: { duration: shellDuration, ease },
9771
9578
  style: { overflow: "hidden" },
9772
- children: /* @__PURE__ */ jsx21("div", { className: "mt-1 flex items-center gap-1 rounded-t-og-lg bg-og-surface-2/50 px-2 py-1", children: signals.filter((signal) => ["incoming", "agents", "commands"].includes(signal.id)).map((signal) => /* @__PURE__ */ jsxs16(
9579
+ children: /* @__PURE__ */ jsx20("div", { className: "mt-1 flex items-center gap-1 rounded-t-og-lg bg-og-surface-2/50 px-2 py-1", children: signals.filter((signal) => ["incoming", "agents", "commands"].includes(signal.id)).map((signal) => /* @__PURE__ */ jsxs15(
9773
9580
  "button",
9774
9581
  {
9775
9582
  type: "button",
@@ -9791,11 +9598,11 @@ function SessionChrome({
9791
9598
  },
9792
9599
  "activity-tabs"
9793
9600
  ) : null }),
9794
- goal?.mutationError ? /* @__PURE__ */ jsxs16("p", { role: "alert", className: "px-3 pb-2 text-og-xs text-og-danger", children: [
9601
+ goal?.mutationError ? /* @__PURE__ */ jsxs15("p", { role: "alert", className: "px-3 pb-2 text-og-xs text-og-danger", children: [
9795
9602
  "Goal action not confirmed. ",
9796
9603
  goal.mutationError.message
9797
9604
  ] }) : null,
9798
- /* @__PURE__ */ jsx21(
9605
+ /* @__PURE__ */ jsx20(
9799
9606
  "div",
9800
9607
  {
9801
9608
  id: panelId,
@@ -9811,12 +9618,12 @@ function SessionChrome({
9811
9618
  transitionDuration: "var(--og-session-chrome-duration)",
9812
9619
  transitionTimingFunction: "var(--_og-session-chrome-ease)"
9813
9620
  },
9814
- children: /* @__PURE__ */ jsx21("div", { className: "min-h-0 overflow-hidden", children: /* @__PURE__ */ jsxs16(
9621
+ children: /* @__PURE__ */ jsx20("div", { className: "min-h-0 overflow-hidden", children: /* @__PURE__ */ jsxs15(
9815
9622
  "div",
9816
9623
  {
9817
9624
  className: cn(
9818
9625
  "relative overflow-y-auto overscroll-contain",
9819
- compact ? activityOpen ? "rounded-b-og-lg bg-og-surface-2/50" : "mt-1 rounded-og-lg bg-og-surface-2/50" : "border-t border-og-border/50"
9626
+ activityOpen ? "rounded-b-og-lg bg-og-surface-2/50" : "mt-1 rounded-og-lg bg-og-surface-2/50"
9820
9627
  ),
9821
9628
  style: {
9822
9629
  maxHeight: "var(--og-session-chrome-panel-max-height)",
@@ -9824,7 +9631,7 @@ function SessionChrome({
9824
9631
  paddingBlock: "var(--og-session-chrome-panel-pad-y)"
9825
9632
  },
9826
9633
  children: [
9827
- /* @__PURE__ */ jsx21(AnimatePresence4, { initial: false, children: active && active !== "commands" && panelBody ? /* @__PURE__ */ jsx21(
9634
+ /* @__PURE__ */ jsx20(AnimatePresence4, { initial: false, children: active && active !== "commands" && panelBody ? /* @__PURE__ */ jsx20(
9828
9635
  motion5.div,
9829
9636
  {
9830
9637
  "data-og-session-chrome-panel-frame": active,
@@ -9842,7 +9649,7 @@ function SessionChrome({
9842
9649
  },
9843
9650
  active
9844
9651
  ) : null }),
9845
- active === "commands" ? /* @__PURE__ */ jsx21(
9652
+ active === "commands" ? /* @__PURE__ */ jsx20(
9846
9653
  motion5.div,
9847
9654
  {
9848
9655
  initial: reduceMotion ? false : { opacity: 0 },
@@ -9868,20 +9675,20 @@ function IncomingPanel({
9868
9675
  onDismiss,
9869
9676
  onOpenSession
9870
9677
  }) {
9871
- return /* @__PURE__ */ jsxs16("div", { children: [
9872
- /* @__PURE__ */ jsx21("p", { className: "mb-2 text-og-xs text-og-fg-subtle", children: "Waiting to be included in an agent turn." }),
9873
- /* @__PURE__ */ jsx21(
9678
+ return /* @__PURE__ */ jsxs15("div", { children: [
9679
+ /* @__PURE__ */ jsx20("p", { className: "mb-2 text-og-xs text-og-fg-subtle", children: "Waiting to be included in an agent turn." }),
9680
+ /* @__PURE__ */ jsx20(
9874
9681
  "ul",
9875
9682
  {
9876
9683
  className: "flex flex-col gap-0.5",
9877
9684
  "aria-label": "Incoming updates",
9878
9685
  "data-og-session-chrome-panel": "incoming",
9879
- children: inputs.map((input) => /* @__PURE__ */ jsxs16(
9686
+ children: inputs.map((input) => /* @__PURE__ */ jsxs15(
9880
9687
  "li",
9881
9688
  {
9882
9689
  className: "group flex items-start gap-1.5 rounded-og-sm px-1.5 py-1 transition-colors hover:bg-[var(--_og-session-chrome-row-hover)]",
9883
9690
  children: [
9884
- /* @__PURE__ */ jsx21(
9691
+ /* @__PURE__ */ jsx20(
9885
9692
  "span",
9886
9693
  {
9887
9694
  className: cn(
@@ -9891,9 +9698,9 @@ function IncomingPanel({
9891
9698
  children: pendingKindLabel(input.kind)
9892
9699
  }
9893
9700
  ),
9894
- /* @__PURE__ */ jsxs16("div", { className: "min-w-0 flex-1", children: [
9895
- /* @__PURE__ */ jsx21("p", { className: "break-words text-og-xs leading-4 text-og-fg", children: input.summary }),
9896
- /* @__PURE__ */ jsx21(
9701
+ /* @__PURE__ */ jsxs15("div", { className: "min-w-0 flex-1", children: [
9702
+ /* @__PURE__ */ jsx20("p", { className: "break-words text-og-xs leading-4 text-og-fg", children: input.summary }),
9703
+ /* @__PURE__ */ jsx20(
9897
9704
  ChildSessionLink,
9898
9705
  {
9899
9706
  kind: input.kind,
@@ -9902,14 +9709,14 @@ function IncomingPanel({
9902
9709
  }
9903
9710
  )
9904
9711
  ] }),
9905
- onDismiss ? /* @__PURE__ */ jsx21("div", { className: "flex shrink-0 items-center gap-0.5 opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100 max-sm:opacity-100", children: /* @__PURE__ */ jsx21(
9712
+ onDismiss ? /* @__PURE__ */ jsx20("div", { className: "flex shrink-0 items-center gap-0.5 opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100 max-sm:opacity-100", children: /* @__PURE__ */ jsx20(
9906
9713
  IconAction,
9907
9714
  {
9908
9715
  label: `Dismiss incoming ${pendingKindLabel(input.kind)}`,
9909
9716
  tip: "Dismiss",
9910
9717
  onClick: () => onDismiss(input.id),
9911
9718
  danger: true,
9912
- children: /* @__PURE__ */ jsx21(Trash2Icon2, { className: "size-3" })
9719
+ children: /* @__PURE__ */ jsx20(Trash2Icon2, { className: "size-3" })
9913
9720
  }
9914
9721
  ) }) : null
9915
9722
  ]
@@ -9957,7 +9764,7 @@ function QueuePanel({
9957
9764
  );
9958
9765
  return () => clearTimeout(timer);
9959
9766
  }, [reduceMotion, turnIdsKey]);
9960
- return /* @__PURE__ */ jsxs16(
9767
+ return /* @__PURE__ */ jsxs15(
9961
9768
  "ol",
9962
9769
  {
9963
9770
  className: "flex flex-col gap-0.5",
@@ -9973,45 +9780,45 @@ function QueuePanel({
9973
9780
  const beforeDown = index < turns.length - 1 ? turns[index + 2]?.id ?? null : null;
9974
9781
  const showActions = !readOnly && (onEdit || onSteer || onRemove || onMove);
9975
9782
  const confirmingReplace = replaceDraftFor === turn.id;
9976
- return /* @__PURE__ */ jsxs16(
9783
+ return /* @__PURE__ */ jsxs15(
9977
9784
  "li",
9978
9785
  {
9979
9786
  "data-queue-turn-id": turn.id,
9980
9787
  className: "group flex flex-col gap-1 rounded-og-sm px-1.5 py-1 transition-colors hover:bg-[var(--_og-session-chrome-row-hover)]",
9981
9788
  children: [
9982
- /* @__PURE__ */ jsxs16("div", { className: "flex items-start gap-1.5", children: [
9983
- voice ? /* @__PURE__ */ jsx21(
9789
+ /* @__PURE__ */ jsxs15("div", { className: "flex items-start gap-1.5", children: [
9790
+ voice ? /* @__PURE__ */ jsx20(
9984
9791
  AudioLinesIcon,
9985
9792
  {
9986
9793
  "aria-hidden": "true",
9987
9794
  className: "mt-0.5 size-3 shrink-0 text-og-accent"
9988
9795
  }
9989
- ) : /* @__PURE__ */ jsx21("span", { className: "mt-px shrink-0 font-og-mono text-[10px] leading-4 text-og-fg-subtle", children: index + 1 }),
9990
- /* @__PURE__ */ jsx21("p", { className: "min-w-0 flex-1 truncate text-og-xs leading-4 text-og-fg", children: presentation.text }),
9991
- showActions ? /* @__PURE__ */ jsxs16("div", { className: "flex shrink-0 items-center gap-0.5 opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100 max-sm:opacity-100", children: [
9992
- onMove && turns.length > 1 ? /* @__PURE__ */ jsxs16(Fragment7, { children: [
9993
- /* @__PURE__ */ jsx21(
9796
+ ) : /* @__PURE__ */ jsx20("span", { className: "mt-px shrink-0 font-og-mono text-[10px] leading-4 text-og-fg-subtle", children: index + 1 }),
9797
+ /* @__PURE__ */ jsx20("p", { className: "min-w-0 flex-1 truncate text-og-xs leading-4 text-og-fg", children: presentation.text }),
9798
+ showActions ? /* @__PURE__ */ jsxs15("div", { className: "flex shrink-0 items-center gap-0.5 opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100 max-sm:opacity-100", children: [
9799
+ onMove && turns.length > 1 ? /* @__PURE__ */ jsxs15(Fragment7, { children: [
9800
+ /* @__PURE__ */ jsx20(
9994
9801
  IconAction,
9995
9802
  {
9996
9803
  label: `Move queued prompt ${index + 1} up`,
9997
9804
  tip: "Move up",
9998
9805
  disabled: settling || pending !== null || index === 0,
9999
9806
  onClick: () => onMove(turn.id, beforeUp),
10000
- children: /* @__PURE__ */ jsx21(ArrowUpIcon, { className: "size-3" })
9807
+ children: /* @__PURE__ */ jsx20(ArrowUpIcon, { className: "size-3" })
10001
9808
  }
10002
9809
  ),
10003
- /* @__PURE__ */ jsx21(
9810
+ /* @__PURE__ */ jsx20(
10004
9811
  IconAction,
10005
9812
  {
10006
9813
  label: `Move queued prompt ${index + 1} down`,
10007
9814
  tip: "Move down",
10008
9815
  disabled: settling || pending !== null || index >= turns.length - 1,
10009
9816
  onClick: () => onMove(turn.id, beforeDown),
10010
- children: /* @__PURE__ */ jsx21(ArrowDownIcon2, { className: "size-3" })
9817
+ children: /* @__PURE__ */ jsx20(ArrowDownIcon2, { className: "size-3" })
10011
9818
  }
10012
9819
  )
10013
9820
  ] }) : null,
10014
- onSteer ? /* @__PURE__ */ jsx21(
9821
+ onSteer ? /* @__PURE__ */ jsx20(
10015
9822
  IconAction,
10016
9823
  {
10017
9824
  label: `Steer queued prompt ${index + 1}`,
@@ -10019,20 +9826,20 @@ function QueuePanel({
10019
9826
  tip: QUEUE_STEER_TIP,
10020
9827
  disabled: settling || pending !== null,
10021
9828
  onClick: () => onSteer(turn.id),
10022
- children: pending === "steer" ? /* @__PURE__ */ jsx21(Loader2Icon2, { className: "size-3 animate-og-spin" }) : /* @__PURE__ */ jsx21(CornerDownRightIcon, { className: "size-3" })
9829
+ children: pending === "steer" ? /* @__PURE__ */ jsx20(Loader2Icon2, { className: "size-3 animate-og-spin" }) : /* @__PURE__ */ jsx20(CornerDownRightIcon, { className: "size-3" })
10023
9830
  }
10024
9831
  ) : null,
10025
- onEdit ? /* @__PURE__ */ jsx21(
9832
+ onEdit ? /* @__PURE__ */ jsx20(
10026
9833
  IconAction,
10027
9834
  {
10028
9835
  label: `Edit queued prompt ${index + 1}`,
10029
9836
  tip: QUEUE_EDIT_TIP,
10030
9837
  disabled: settling || pending !== null,
10031
9838
  onClick: () => onEdit(turn),
10032
- children: pending === "edit" ? /* @__PURE__ */ jsx21(Loader2Icon2, { className: "size-3 animate-og-spin" }) : /* @__PURE__ */ jsx21(PencilIcon, { className: "size-3" })
9839
+ children: pending === "edit" ? /* @__PURE__ */ jsx20(Loader2Icon2, { className: "size-3 animate-og-spin" }) : /* @__PURE__ */ jsx20(PencilIcon, { className: "size-3" })
10033
9840
  }
10034
9841
  ) : null,
10035
- onRemove ? /* @__PURE__ */ jsx21(
9842
+ onRemove ? /* @__PURE__ */ jsx20(
10036
9843
  IconAction,
10037
9844
  {
10038
9845
  label: `Remove queued prompt ${index + 1}`,
@@ -10040,16 +9847,16 @@ function QueuePanel({
10040
9847
  disabled: settling || pending !== null,
10041
9848
  onClick: () => onRemove(turn.id),
10042
9849
  danger: true,
10043
- children: pending === "delete" ? /* @__PURE__ */ jsx21(Loader2Icon2, { className: "size-3 animate-og-spin" }) : /* @__PURE__ */ jsx21(Trash2Icon2, { className: "size-3" })
9850
+ children: pending === "delete" ? /* @__PURE__ */ jsx20(Loader2Icon2, { className: "size-3 animate-og-spin" }) : /* @__PURE__ */ jsx20(Trash2Icon2, { className: "size-3" })
10044
9851
  }
10045
9852
  ) : null
10046
9853
  ] }) : null
10047
9854
  ] }),
10048
- confirmingReplace ? /* @__PURE__ */ jsxs16("div", { className: "rounded-og-sm border border-og-status-waiting/30 bg-og-status-waiting/10 p-2 text-og-xs text-og-fg", children: [
10049
- /* @__PURE__ */ jsx21("p", { children: "Your composer already has a draft. Replace it with this queued prompt?" }),
10050
- /* @__PURE__ */ jsx21("p", { className: "mt-0.5 text-og-fg-muted", children: "The current draft will be permanently discarded; this queued prompt is preserved until you confirm." }),
10051
- /* @__PURE__ */ jsxs16("div", { className: "mt-2 flex justify-end gap-1.5", children: [
10052
- /* @__PURE__ */ jsx21(
9855
+ confirmingReplace ? /* @__PURE__ */ jsxs15("div", { className: "rounded-og-sm border border-og-status-waiting/30 bg-og-status-waiting/10 p-2 text-og-xs text-og-fg", children: [
9856
+ /* @__PURE__ */ jsx20("p", { children: "Your composer already has a draft. Replace it with this queued prompt?" }),
9857
+ /* @__PURE__ */ jsx20("p", { className: "mt-0.5 text-og-fg-muted", children: "The current draft will be permanently discarded; this queued prompt is preserved until you confirm." }),
9858
+ /* @__PURE__ */ jsxs15("div", { className: "mt-2 flex justify-end gap-1.5", children: [
9859
+ /* @__PURE__ */ jsx20(
10053
9860
  "button",
10054
9861
  {
10055
9862
  type: "button",
@@ -10058,7 +9865,7 @@ function QueuePanel({
10058
9865
  children: "Keep current draft"
10059
9866
  }
10060
9867
  ),
10061
- /* @__PURE__ */ jsx21(
9868
+ /* @__PURE__ */ jsx20(
10062
9869
  "button",
10063
9870
  {
10064
9871
  type: "button",
@@ -10074,7 +9881,7 @@ function QueuePanel({
10074
9881
  turn.id
10075
9882
  );
10076
9883
  }),
10077
- /* @__PURE__ */ jsx21(AnimatePresence4, { initial: false, children: optimistic.map((message, index) => /* @__PURE__ */ jsxs16(
9884
+ /* @__PURE__ */ jsx20(AnimatePresence4, { initial: false, children: optimistic.map((message, index) => /* @__PURE__ */ jsxs15(
10078
9885
  motion5.li,
10079
9886
  {
10080
9887
  "aria-live": "polite",
@@ -10087,11 +9894,11 @@ function QueuePanel({
10087
9894
  message.state === "failed" ? "bg-og-danger/8 text-og-danger" : "bg-og-accent-soft/45"
10088
9895
  ),
10089
9896
  children: [
10090
- /* @__PURE__ */ jsx21("span", { className: "shrink-0 font-og-mono text-[10px] leading-4 text-og-fg-subtle", children: turns.length + index + 1 }),
10091
- /* @__PURE__ */ jsx21("p", { className: "min-w-0 flex-1 truncate text-og-xs leading-4 text-og-fg", children: message.text }),
10092
- /* @__PURE__ */ jsx21("span", { className: "sr-only", children: message.state === "failed" ? "Not confirmed" : message.state === "sending" ? "Placing in queue" : "Queued" }),
10093
- message.state === "failed" ? /* @__PURE__ */ jsxs16("div", { className: "flex shrink-0 items-center gap-1 text-[10px]", children: [
10094
- onRetryOptimistic ? /* @__PURE__ */ jsx21(
9897
+ /* @__PURE__ */ jsx20("span", { className: "shrink-0 font-og-mono text-[10px] leading-4 text-og-fg-subtle", children: turns.length + index + 1 }),
9898
+ /* @__PURE__ */ jsx20("p", { className: "min-w-0 flex-1 truncate text-og-xs leading-4 text-og-fg", children: message.text }),
9899
+ /* @__PURE__ */ jsx20("span", { className: "sr-only", children: message.state === "failed" ? "Not confirmed" : message.state === "sending" ? "Placing in queue" : "Queued" }),
9900
+ message.state === "failed" ? /* @__PURE__ */ jsxs15("div", { className: "flex shrink-0 items-center gap-1 text-[10px]", children: [
9901
+ onRetryOptimistic ? /* @__PURE__ */ jsx20(
10095
9902
  "button",
10096
9903
  {
10097
9904
  type: "button",
@@ -10100,36 +9907,36 @@ function QueuePanel({
10100
9907
  children: "Retry"
10101
9908
  }
10102
9909
  ) : null,
10103
- onRemoveOptimistic ? /* @__PURE__ */ jsx21(
9910
+ onRemoveOptimistic ? /* @__PURE__ */ jsx20(
10104
9911
  "button",
10105
9912
  {
10106
9913
  type: "button",
10107
9914
  "aria-label": "Dismiss unconfirmed queued prompt",
10108
9915
  className: "rounded-og-sm p-1 text-og-fg-muted hover:bg-og-surface-2 hover:text-og-fg pointer-coarse:min-h-11 pointer-coarse:min-w-11",
10109
9916
  onClick: () => onRemoveOptimistic(message.clientEventId),
10110
- children: /* @__PURE__ */ jsx21(XIcon2, { className: "size-3" })
9917
+ children: /* @__PURE__ */ jsx20(XIcon2, { className: "size-3" })
10111
9918
  }
10112
9919
  ) : null
10113
- ] }) : message.state === "sending" ? /* @__PURE__ */ jsx21(
9920
+ ] }) : message.state === "sending" ? /* @__PURE__ */ jsx20(
10114
9921
  Loader2Icon2,
10115
9922
  {
10116
9923
  "aria-hidden": "true",
10117
9924
  className: "size-3 shrink-0 animate-og-spin text-og-accent motion-reduce:animate-none"
10118
9925
  }
10119
- ) : /* @__PURE__ */ jsx21(CheckIcon3, { "aria-hidden": "true", className: "size-3 shrink-0 text-og-accent" })
9926
+ ) : /* @__PURE__ */ jsx20(CheckIcon3, { "aria-hidden": "true", className: "size-3 shrink-0 text-og-accent" })
10120
9927
  ]
10121
9928
  },
10122
9929
  message.clientEventId
10123
9930
  )) }),
10124
- loadError ? /* @__PURE__ */ jsxs16(
9931
+ loadError ? /* @__PURE__ */ jsxs15(
10125
9932
  "li",
10126
9933
  {
10127
9934
  role: "alert",
10128
9935
  className: "flex items-center gap-1.5 rounded-og-sm bg-og-danger/8 px-1.5 py-1 text-og-xs text-og-danger",
10129
9936
  children: [
10130
- /* @__PURE__ */ jsx21(TriangleAlertIcon3, { className: "size-3 shrink-0" }),
10131
- /* @__PURE__ */ jsx21("span", { className: "min-w-0 flex-1", children: "Queue unavailable." }),
10132
- /* @__PURE__ */ jsx21(
9937
+ /* @__PURE__ */ jsx20(TriangleAlertIcon3, { className: "size-3 shrink-0" }),
9938
+ /* @__PURE__ */ jsx20("span", { className: "min-w-0 flex-1", children: "Queue unavailable." }),
9939
+ /* @__PURE__ */ jsx20(
10133
9940
  "button",
10134
9941
  {
10135
9942
  type: "button",
@@ -10141,15 +9948,15 @@ function QueuePanel({
10141
9948
  ]
10142
9949
  }
10143
9950
  ) : null,
10144
- mutationError ? /* @__PURE__ */ jsxs16(
9951
+ mutationError ? /* @__PURE__ */ jsxs15(
10145
9952
  "li",
10146
9953
  {
10147
9954
  role: "alert",
10148
9955
  className: "flex items-center gap-1.5 rounded-og-sm bg-og-danger/8 px-1.5 py-1 text-og-xs text-og-danger",
10149
9956
  children: [
10150
- /* @__PURE__ */ jsx21(TriangleAlertIcon3, { className: "size-3 shrink-0" }),
10151
- /* @__PURE__ */ jsx21("span", { className: "min-w-0 flex-1", children: "Not confirmed. Check the queue before retrying." }),
10152
- /* @__PURE__ */ jsx21(
9957
+ /* @__PURE__ */ jsx20(TriangleAlertIcon3, { className: "size-3 shrink-0" }),
9958
+ /* @__PURE__ */ jsx20("span", { className: "min-w-0 flex-1", children: "Not confirmed. Check the queue before retrying." }),
9959
+ /* @__PURE__ */ jsx20(
10153
9960
  "button",
10154
9961
  {
10155
9962
  type: "button",
@@ -10175,26 +9982,26 @@ function GoalPanel({
10175
9982
  if (!record) return null;
10176
9983
  const canToggle = !readOnly && (record.status === "active" || record.status === "paused");
10177
9984
  const explanation = sessionChromeGoalPillExplanation(state, record);
10178
- return /* @__PURE__ */ jsxs16("div", { className: "space-y-1.5", "data-og-session-chrome-panel": "goal", children: [
10179
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap items-center gap-1.5 text-[10px] font-medium uppercase tracking-wider text-og-fg-subtle", children: [
10180
- /* @__PURE__ */ jsx21("span", { children: sessionChromeGoalPillLabel(state, record) }),
10181
- elapsed ? /* @__PURE__ */ jsxs16("span", { className: "tabular-nums normal-case tracking-normal text-og-fg-muted", children: [
9985
+ return /* @__PURE__ */ jsxs15("div", { className: "space-y-1.5", "data-og-session-chrome-panel": "goal", children: [
9986
+ /* @__PURE__ */ jsxs15("div", { className: "flex flex-wrap items-center gap-1.5 text-[10px] font-medium uppercase tracking-wider text-og-fg-subtle", children: [
9987
+ /* @__PURE__ */ jsx20("span", { children: sessionChromeGoalPillLabel(state, record) }),
9988
+ elapsed ? /* @__PURE__ */ jsxs15("span", { className: "tabular-nums normal-case tracking-normal text-og-fg-muted", children: [
10182
9989
  "\xB7 Created ",
10183
9990
  elapsed,
10184
9991
  " ago"
10185
9992
  ] }) : null,
10186
- /* @__PURE__ */ jsxs16("span", { className: "normal-case tracking-normal text-og-fg-muted", children: [
9993
+ /* @__PURE__ */ jsxs15("span", { className: "normal-case tracking-normal text-og-fg-muted", children: [
10187
9994
  "\xB7 v",
10188
9995
  record.version
10189
9996
  ] })
10190
9997
  ] }),
10191
- /* @__PURE__ */ jsx21("p", { className: "text-og-sm leading-5 text-og-fg", children: record.text }),
10192
- record.successCriteria ? /* @__PURE__ */ jsxs16("p", { className: "text-og-xs leading-4 text-og-fg-muted", children: [
10193
- /* @__PURE__ */ jsx21("span", { className: "font-medium text-og-fg", children: "Done when" }),
9998
+ /* @__PURE__ */ jsx20("p", { className: "text-og-sm leading-5 text-og-fg", children: record.text }),
9999
+ record.successCriteria ? /* @__PURE__ */ jsxs15("p", { className: "text-og-xs leading-4 text-og-fg-muted", children: [
10000
+ /* @__PURE__ */ jsx20("span", { className: "font-medium text-og-fg", children: "Done when" }),
10194
10001
  " ",
10195
10002
  record.successCriteria
10196
10003
  ] }) : null,
10197
- explanation ? /* @__PURE__ */ jsx21(
10004
+ explanation ? /* @__PURE__ */ jsx20(
10198
10005
  "p",
10199
10006
  {
10200
10007
  "data-og-session-chrome-goal-explanation": true,
@@ -10202,20 +10009,20 @@ function GoalPanel({
10202
10009
  children: explanation
10203
10010
  }
10204
10011
  ) : null,
10205
- record.continuation?.lastError ? /* @__PURE__ */ jsx21("p", { className: "rounded-og-sm bg-og-status-waiting/10 px-1.5 py-1 text-og-xs leading-4 text-og-status-waiting", children: record.continuation.lastError }) : null,
10206
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap items-center justify-between gap-1.5 pt-0.5", children: [
10207
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap gap-1 text-[10px] text-og-fg-muted", children: [
10208
- /* @__PURE__ */ jsxs16("span", { className: "rounded bg-og-surface-3/70 px-1 py-px", children: [
10012
+ record.continuation?.lastError ? /* @__PURE__ */ jsx20("p", { className: "rounded-og-sm bg-og-status-waiting/10 px-1.5 py-1 text-og-xs leading-4 text-og-status-waiting", children: record.continuation.lastError }) : null,
10013
+ /* @__PURE__ */ jsxs15("div", { className: "flex flex-wrap items-center justify-between gap-1.5 pt-0.5", children: [
10014
+ /* @__PURE__ */ jsxs15("div", { className: "flex flex-wrap gap-1 text-[10px] text-og-fg-muted", children: [
10015
+ /* @__PURE__ */ jsxs15("span", { className: "rounded bg-og-surface-3/70 px-1 py-px", children: [
10209
10016
  record.autoContinuations,
10210
10017
  " consecutive unattended continues"
10211
10018
  ] }),
10212
- /* @__PURE__ */ jsxs16("span", { className: "rounded bg-og-surface-3/70 px-1 py-px", children: [
10019
+ /* @__PURE__ */ jsxs15("span", { className: "rounded bg-og-surface-3/70 px-1 py-px", children: [
10213
10020
  record.noProgressStreak,
10214
10021
  " stalled"
10215
10022
  ] })
10216
10023
  ] }),
10217
- !readOnly ? /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-0.5", children: [
10218
- canToggle ? /* @__PURE__ */ jsxs16(
10024
+ !readOnly ? /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-0.5", children: [
10025
+ canToggle ? /* @__PURE__ */ jsxs15(
10219
10026
  "button",
10220
10027
  {
10221
10028
  type: "button",
@@ -10223,12 +10030,12 @@ function GoalPanel({
10223
10030
  onClick: () => void (record.status === "paused" ? goal.resume() : goal.pause("Paused from session chrome")),
10224
10031
  className: "inline-flex h-6 items-center gap-1 rounded-og-sm px-1.5 text-og-xs font-medium text-og-fg-muted outline-hidden transition-colors hover:bg-og-surface-3/70 hover:text-og-fg focus-visible:ring-2 focus-visible:ring-og-accent/40 disabled:opacity-50",
10225
10032
  children: [
10226
- goal.updating ? /* @__PURE__ */ jsx21(Loader2Icon2, { className: "size-3 animate-og-spin" }) : record.status === "paused" ? /* @__PURE__ */ jsx21(PlayIcon2, { className: "size-3" }) : /* @__PURE__ */ jsx21(PauseIcon2, { className: "size-3" }),
10033
+ goal.updating ? /* @__PURE__ */ jsx20(Loader2Icon2, { className: "size-3 animate-og-spin" }) : record.status === "paused" ? /* @__PURE__ */ jsx20(PlayIcon2, { className: "size-3" }) : /* @__PURE__ */ jsx20(PauseIcon2, { className: "size-3" }),
10227
10034
  record.status === "paused" ? "Resume" : "Pause"
10228
10035
  ]
10229
10036
  }
10230
10037
  ) : null,
10231
- /* @__PURE__ */ jsxs16(
10038
+ /* @__PURE__ */ jsxs15(
10232
10039
  "button",
10233
10040
  {
10234
10041
  type: "button",
@@ -10236,7 +10043,7 @@ function GoalPanel({
10236
10043
  onClick: () => void goal.deleteGoal(),
10237
10044
  className: "inline-flex h-6 items-center gap-1 rounded-og-sm px-1.5 text-og-xs font-medium text-og-fg-subtle outline-hidden transition-colors hover:bg-og-surface-3/70 hover:text-og-danger focus-visible:ring-2 focus-visible:ring-og-accent/40 disabled:opacity-50",
10238
10045
  children: [
10239
- /* @__PURE__ */ jsx21(Trash2Icon2, { className: "size-3" }),
10046
+ /* @__PURE__ */ jsx20(Trash2Icon2, { className: "size-3" }),
10240
10047
  "Clear"
10241
10048
  ]
10242
10049
  }
@@ -10245,9 +10052,9 @@ function GoalPanel({
10245
10052
  ] })
10246
10053
  ] });
10247
10054
  }
10248
- var QUEUE_STEER_TIP = /* @__PURE__ */ jsxs16("span", { className: "flex flex-col gap-0.5 text-left", children: [
10249
- /* @__PURE__ */ jsx21("span", { className: "font-medium", children: "Steer" }),
10250
- /* @__PURE__ */ jsx21("span", { className: "opacity-80", children: "Interrupt the current turn and send this message now" })
10055
+ var QUEUE_STEER_TIP = /* @__PURE__ */ jsxs15("span", { className: "flex flex-col gap-0.5 text-left", children: [
10056
+ /* @__PURE__ */ jsx20("span", { className: "font-medium", children: "Steer" }),
10057
+ /* @__PURE__ */ jsx20("span", { className: "opacity-80", children: "Interrupt the current turn and send this message now" })
10251
10058
  ] });
10252
10059
  var QUEUE_EDIT_TIP = "Edit in composer";
10253
10060
  var QUEUE_DELETE_TIP = "Delete this queued prompt";
@@ -10260,8 +10067,8 @@ function IconAction({
10260
10067
  danger,
10261
10068
  children
10262
10069
  }) {
10263
- return /* @__PURE__ */ jsxs16(Tooltip, { children: [
10264
- /* @__PURE__ */ jsx21(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs16(
10070
+ return /* @__PURE__ */ jsxs15(Tooltip, { children: [
10071
+ /* @__PURE__ */ jsx20(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxs15(
10265
10072
  "button",
10266
10073
  {
10267
10074
  type: "button",
@@ -10282,10 +10089,135 @@ function IconAction({
10282
10089
  ]
10283
10090
  }
10284
10091
  ) }),
10285
- /* @__PURE__ */ jsx21(TooltipContent, { side: "top", children: tip })
10092
+ /* @__PURE__ */ jsx20(TooltipContent, { side: "top", children: tip })
10286
10093
  ] });
10287
10094
  }
10288
10095
 
10096
+ // src/components/session-conversation.tsx
10097
+ import { useRef as useRef10 } from "react";
10098
+ import { jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
10099
+ function SessionConversation(props) {
10100
+ return /* @__PURE__ */ jsx21(Conversation, { ...props }, `${props.workspaceId ?? ""}:${props.sessionId}`);
10101
+ }
10102
+ function Conversation({
10103
+ sessionId,
10104
+ userMessageDisclosureLabels,
10105
+ loadSkillReview,
10106
+ client,
10107
+ workspaceId,
10108
+ className,
10109
+ height = "100%",
10110
+ composerProps
10111
+ }) {
10112
+ const scope = { client, workspaceId };
10113
+ const context = useOpenGeni(scope);
10114
+ const catalog = useWorkspaceModelCatalog({
10115
+ client: context.client,
10116
+ workspaceId: context.workspaceId
10117
+ });
10118
+ const feed = useSessionEvents(sessionId, scope);
10119
+ const options = { ...scope, events: feed.events };
10120
+ const detail = useSession(sessionId, options);
10121
+ const queue = useTurnQueue(sessionId, options);
10122
+ const human = useHumanInputRequests(sessionId, options);
10123
+ const status = feed.sessionStatus ?? detail.session?.status;
10124
+ const terminal = status === "cancelled";
10125
+ const composer = useComposer(sessionId, {
10126
+ ...options,
10127
+ effectiveControl: queue.effectiveControl ?? detail.session?.effectiveControl,
10128
+ sendDestination: () => queue.queue.length > 0 || status === "running" ? "queue" : "chat"
10129
+ });
10130
+ const region = useRef10(null);
10131
+ const error = detail.error ?? feed.error ?? human.error;
10132
+ return /* @__PURE__ */ jsxs16(
10133
+ "div",
10134
+ {
10135
+ className: cn(
10136
+ "og-root flex min-h-0 min-w-0 flex-col gap-2 overflow-hidden bg-og-bg text-og-fg",
10137
+ className
10138
+ ),
10139
+ ref: region,
10140
+ style: { height },
10141
+ "data-og-conversation": "",
10142
+ children: [
10143
+ error && /* @__PURE__ */ jsx21("p", { role: "alert", children: error.message }),
10144
+ /* @__PURE__ */ jsx21(
10145
+ MessageTimeline,
10146
+ {
10147
+ userMessageDisclosureLabels,
10148
+ className: "min-h-0 flex-1",
10149
+ items: conversationTimeline(feed.timeline, queue, composer),
10150
+ status,
10151
+ hasOlder: feed.hasOlder,
10152
+ loadingOlder: feed.loadingOlder,
10153
+ onLoadOlder: feed.loadOlder,
10154
+ hasNewer: feed.hasNewer,
10155
+ loadingNewer: feed.loadingNewer,
10156
+ onLoadNewer: feed.loadNewer,
10157
+ onJumpToStart: async () => {
10158
+ await feed.loadOldest();
10159
+ },
10160
+ loadingOldest: feed.loadingOldest,
10161
+ onJumpToLatest: feed.jumpToLatest,
10162
+ onAnnotate: composer.addAnnotation
10163
+ }
10164
+ ),
10165
+ /* @__PURE__ */ jsxs16("div", { className: "min-h-0 max-h-[40%] shrink-0 overflow-y-auto", "data-og-conversation-inputs": "", children: [
10166
+ /* @__PURE__ */ jsx21(
10167
+ HumanInputSurface,
10168
+ {
10169
+ loadSkillReview,
10170
+ requests: human.requests,
10171
+ onSubmit: async (id, response) => {
10172
+ await human.respond(id, response);
10173
+ },
10174
+ respondingRequestId: human.respondingRequestId,
10175
+ error: human.mutationError?.message,
10176
+ autoFocus: false
10177
+ }
10178
+ ),
10179
+ terminal ? /* @__PURE__ */ jsx21(SessionChrome, { queue, sessionStatus: status, readOnly: true }) : /* @__PURE__ */ jsx21(
10180
+ SessionChrome,
10181
+ {
10182
+ queue,
10183
+ composer,
10184
+ sessionStatus: status,
10185
+ onComposerFocus: () => region.current?.querySelector("textarea")?.focus()
10186
+ }
10187
+ )
10188
+ ] }),
10189
+ /* @__PURE__ */ jsx21("div", { className: "shrink-0", "data-og-conversation-composer": "", children: /* @__PURE__ */ jsx21(
10190
+ ChatComposer,
10191
+ {
10192
+ ...composerProps,
10193
+ composer,
10194
+ disabled: terminal || composerProps?.disabled,
10195
+ controlsStart: composerProps?.controlsStart ?? (composer.policy && /* @__PURE__ */ jsx21(
10196
+ ModelPolicyPicker,
10197
+ {
10198
+ rows: catalog.rows,
10199
+ model: composer.policy.model,
10200
+ effort: composer.policy.reasoningEffort,
10201
+ latencyMode: composer.policy.latencyMode,
10202
+ loading: catalog.loading,
10203
+ error: catalog.error?.message,
10204
+ disabled: terminal,
10205
+ sessionKey: sessionId,
10206
+ onModelChange: (model) => composer.setModel?.(model),
10207
+ onEffortChange: (effort) => composer.setReasoningEffort?.(effort),
10208
+ onLatencyModeChange: (mode) => composer.setLatencyMode?.(mode)
10209
+ }
10210
+ )),
10211
+ responsiveBasis: composerProps?.responsiveBasis ?? "container",
10212
+ effectiveControl: composer.effectiveControl ?? queue.effectiveControl ?? detail.session?.effectiveControl,
10213
+ queuedAheadCount: queue.queue.length
10214
+ }
10215
+ ) })
10216
+ ]
10217
+ }
10218
+ );
10219
+ }
10220
+
10289
10221
  // src/components/session-commands-panel.tsx
10290
10222
  import { ChevronRightIcon as ChevronRightIcon3, Loader2Icon as Loader2Icon3, SquareIcon } from "lucide-react";
10291
10223
  import { useState as useState16 } from "react";
@@ -10376,8 +10308,70 @@ function SessionCommandsPanel({
10376
10308
  ] });
10377
10309
  }
10378
10310
 
10311
+ // src/hooks/use-session-background-commands.ts
10312
+ import { useCallback as useCallback4, useEffect as useEffect12, useRef as useRef11 } from "react";
10313
+ function useSessionBackgroundCommands(sessionId, options = {}) {
10314
+ const { client, workspaceId } = useOpenGeni(options);
10315
+ const enabled = (options.enabled ?? true) && Boolean(sessionId);
10316
+ const load = useCallback4(
10317
+ async (signal) => {
10318
+ if (!sessionId) return { commands: [] };
10319
+ if (!client.listSessionBackgroundCommands) {
10320
+ throw new Error("The configured OpenGeni client does not support background commands");
10321
+ }
10322
+ return await client.listSessionBackgroundCommands(workspaceId, sessionId, { signal });
10323
+ },
10324
+ [client, workspaceId, sessionId]
10325
+ );
10326
+ const state = usePolledValue(load, {
10327
+ enabled,
10328
+ pollIntervalMs: options.pollIntervalMs
10329
+ });
10330
+ const refresh = state.refresh;
10331
+ const generation = useRef11(0);
10332
+ useEffect12(() => {
10333
+ generation.current += 1;
10334
+ return () => {
10335
+ generation.current += 1;
10336
+ };
10337
+ }, [client, workspaceId, sessionId, enabled]);
10338
+ const cancel = useCallback4(
10339
+ async (commandId) => {
10340
+ if (!sessionId) return;
10341
+ if (!client.cancelSessionBackgroundCommand) {
10342
+ throw new Error("The configured OpenGeni client does not support background commands");
10343
+ }
10344
+ const ticket = generation.current;
10345
+ await client.cancelSessionBackgroundCommand(workspaceId, sessionId, commandId);
10346
+ if (enabled && ticket === generation.current) await refresh();
10347
+ },
10348
+ [client, workspaceId, sessionId, refresh, enabled]
10349
+ );
10350
+ return {
10351
+ commands: state.data?.commands ?? [],
10352
+ loading: state.loading,
10353
+ error: state.error,
10354
+ refresh,
10355
+ cancel
10356
+ };
10357
+ }
10358
+
10359
+ // src/components/session-commands.tsx
10360
+ import { jsx as jsx23 } from "react/jsx-runtime";
10361
+ function SessionCommands({
10362
+ sessionId,
10363
+ readOnly = false,
10364
+ ...options
10365
+ }) {
10366
+ const commands = useSessionBackgroundCommands(sessionId, {
10367
+ pollIntervalMs: 3e3,
10368
+ ...options
10369
+ });
10370
+ return /* @__PURE__ */ jsx23(SessionCommandsPanel, { commands, readOnly });
10371
+ }
10372
+
10379
10373
  // src/timeline/startup-timings.tsx
10380
- import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
10374
+ import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
10381
10375
  var LABELS = {
10382
10376
  queue: "Worker queue",
10383
10377
  sandbox: "Sandbox",
@@ -10390,7 +10384,7 @@ var LABELS = {
10390
10384
  };
10391
10385
  function StartupTimings({ phases }) {
10392
10386
  if (!phases.length)
10393
- return /* @__PURE__ */ jsx23("p", { className: "text-og-sm text-og-fg-subtle", children: "No startup timings recorded yet." });
10387
+ return /* @__PURE__ */ jsx24("p", { className: "text-og-sm text-og-fg-subtle", children: "No startup timings recorded yet." });
10394
10388
  const byTurn = /* @__PURE__ */ new Map();
10395
10389
  for (const phase of phases) {
10396
10390
  const group = byTurn.get(phase.turnId) ?? [];
@@ -10406,8 +10400,8 @@ function StartupTimings({ phases }) {
10406
10400
  )
10407
10401
  })).sort((a, b) => b.startedAt.localeCompare(a.startedAt));
10408
10402
  return /* @__PURE__ */ jsxs18("div", { className: "space-y-3", children: [
10409
- /* @__PURE__ */ jsx23("p", { className: "text-og-xs text-og-fg-subtle", children: "Each turn has its own startup. Phases can overlap; durations are not additive." }),
10410
- turns.map((turn, index) => /* @__PURE__ */ jsx23(
10403
+ /* @__PURE__ */ jsx24("p", { className: "text-og-xs text-og-fg-subtle", children: "Each turn has its own startup. Phases can overlap; durations are not additive." }),
10404
+ turns.map((turn, index) => /* @__PURE__ */ jsx24(
10411
10405
  StartupTurn,
10412
10406
  {
10413
10407
  ...turn,
@@ -10426,51 +10420,51 @@ function StartupTurn({
10426
10420
  const status = phases.some((phase) => phase.status === "failed") ? "Failed" : phases.some((phase) => phase.status === "running") ? "In progress" : phases.some((phase) => phase.status === "cancelled") ? "Interrupted" : "Ready";
10427
10421
  return /* @__PURE__ */ jsxs18("details", { open: latest, className: "group border-b border-og-border pb-3", children: [
10428
10422
  /* @__PURE__ */ jsxs18("summary", { className: "cursor-pointer rounded py-3 text-og-sm text-og-fg-muted focus-visible:outline-2 focus-visible:outline-og-accent", children: [
10429
- /* @__PURE__ */ jsx23("span", { className: "font-medium", children: turnId === null ? "Unassigned events" : latest ? "Latest turn" : "Earlier turn" }),
10430
- /* @__PURE__ */ jsx23("span", { className: "ml-2 text-og-xs text-og-fg-subtle", children: new Date(startedAt).toLocaleTimeString([], {
10423
+ /* @__PURE__ */ jsx24("span", { className: "font-medium", children: turnId === null ? "Unassigned events" : latest ? "Latest turn" : "Earlier turn" }),
10424
+ /* @__PURE__ */ jsx24("span", { className: "ml-2 text-og-xs text-og-fg-subtle", children: new Date(startedAt).toLocaleTimeString([], {
10431
10425
  hour: "2-digit",
10432
10426
  minute: "2-digit",
10433
10427
  second: "2-digit"
10434
10428
  }) }),
10435
- /* @__PURE__ */ jsx23(
10429
+ /* @__PURE__ */ jsx24(
10436
10430
  "span",
10437
10431
  {
10438
10432
  className: status === "Failed" ? "ml-2 text-og-xs text-og-status-failed" : "ml-2 text-og-xs text-og-fg-subtle",
10439
10433
  children: status
10440
10434
  }
10441
10435
  ),
10442
- /* @__PURE__ */ jsx23("span", { className: "mt-1 block break-all pl-4 font-og-mono text-og-xs text-og-fg-subtle", children: turnId ?? "No turn ID recorded" })
10436
+ /* @__PURE__ */ jsx24("span", { className: "mt-1 block break-all pl-4 font-og-mono text-og-xs text-og-fg-subtle", children: turnId ?? "No turn ID recorded" })
10443
10437
  ] }),
10444
10438
  /* @__PURE__ */ jsxs18("div", { className: "pb-2", children: [
10445
10439
  /* @__PURE__ */ jsxs18("p", { className: "text-og-xs text-og-fg-subtle", children: [
10446
10440
  "Started ",
10447
- /* @__PURE__ */ jsx23("time", { dateTime: startedAt, children: new Date(startedAt).toLocaleString() })
10441
+ /* @__PURE__ */ jsx24("time", { dateTime: startedAt, children: new Date(startedAt).toLocaleString() })
10448
10442
  ] }),
10449
- /* @__PURE__ */ jsx23("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs18("table", { className: "w-full text-left text-og-xs", children: [
10443
+ /* @__PURE__ */ jsx24("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs18("table", { className: "w-full text-left text-og-xs", children: [
10450
10444
  /* @__PURE__ */ jsxs18("caption", { className: "sr-only", children: [
10451
10445
  "Startup phases for ",
10452
10446
  turnId ?? "unassigned events"
10453
10447
  ] }),
10454
- /* @__PURE__ */ jsx23("thead", { children: /* @__PURE__ */ jsxs18("tr", { className: "border-b border-og-border text-og-fg-subtle", children: [
10455
- /* @__PURE__ */ jsx23("th", { scope: "col", className: "py-2 font-medium", children: "Phase" }),
10456
- /* @__PURE__ */ jsx23("th", { scope: "col", className: "px-3 py-2 font-medium", children: "Status" }),
10457
- /* @__PURE__ */ jsx23("th", { scope: "col", className: "py-2 text-right font-medium", children: "Duration" })
10448
+ /* @__PURE__ */ jsx24("thead", { children: /* @__PURE__ */ jsxs18("tr", { className: "border-b border-og-border text-og-fg-subtle", children: [
10449
+ /* @__PURE__ */ jsx24("th", { scope: "col", className: "py-2 font-medium", children: "Phase" }),
10450
+ /* @__PURE__ */ jsx24("th", { scope: "col", className: "px-3 py-2 font-medium", children: "Status" }),
10451
+ /* @__PURE__ */ jsx24("th", { scope: "col", className: "py-2 text-right font-medium", children: "Duration" })
10458
10452
  ] }) }),
10459
- /* @__PURE__ */ jsx23("tbody", { children: phases.map((phase) => /* @__PURE__ */ jsxs18(
10453
+ /* @__PURE__ */ jsx24("tbody", { children: phases.map((phase) => /* @__PURE__ */ jsxs18(
10460
10454
  "tr",
10461
10455
  {
10462
10456
  className: "border-b border-og-border/40",
10463
10457
  title: `Turn: ${phase.turnId ?? "unknown"} \xB7 Started: ${phase.startedAt}`,
10464
10458
  children: [
10465
- /* @__PURE__ */ jsx23("th", { scope: "row", className: "py-2.5 font-normal text-og-fg-muted", children: LABELS[phase.phase] }),
10466
- /* @__PURE__ */ jsx23(
10459
+ /* @__PURE__ */ jsx24("th", { scope: "row", className: "py-2.5 font-normal text-og-fg-muted", children: LABELS[phase.phase] }),
10460
+ /* @__PURE__ */ jsx24(
10467
10461
  "td",
10468
10462
  {
10469
10463
  className: `px-3 py-2.5 ${phase.status === "failed" ? "text-og-status-failed" : "text-og-fg-subtle"}`,
10470
10464
  children: phase.status === "running" ? "In progress" : phase.status
10471
10465
  }
10472
10466
  ),
10473
- /* @__PURE__ */ jsx23("td", { className: "py-2.5 text-right font-og-mono tabular-nums text-og-fg-muted", children: phase.durationMs === null ? "\u2014" : phase.durationMs < 1e3 ? `${Math.round(phase.durationMs)} ms` : `${(phase.durationMs / 1e3).toFixed(1)} s` })
10467
+ /* @__PURE__ */ jsx24("td", { className: "py-2.5 text-right font-og-mono tabular-nums text-og-fg-muted", children: phase.durationMs === null ? "\u2014" : phase.durationMs < 1e3 ? `${Math.round(phase.durationMs)} ms` : `${(phase.durationMs / 1e3).toFixed(1)} s` })
10474
10468
  ]
10475
10469
  },
10476
10470
  phase.id
@@ -10527,12 +10521,14 @@ export {
10527
10521
  useAvailableModels,
10528
10522
  useWorkspaceModelCatalog,
10529
10523
  ChatComposer,
10530
- SessionConversation,
10531
10524
  sessionChromeGoalPillLabel,
10532
10525
  sessionChromeGoalPillExplanation,
10533
10526
  sessionChromeGoalPillState,
10534
10527
  SessionChrome,
10528
+ SessionConversation,
10535
10529
  SessionCommandsPanel,
10530
+ useSessionBackgroundCommands,
10531
+ SessionCommands,
10536
10532
  StartupTimings
10537
10533
  };
10538
- //# sourceMappingURL=chunk-LVHCZABQ.js.map
10534
+ //# sourceMappingURL=chunk-75TYMFR5.js.map