@kabmo-labs/kabmo 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +873 -524
- package/dist/client/static/js/{index-297dck9a.js → index-jcr5twtp.js} +799 -795
- package/dist/client/static/js/index-z3w7n85q.css +1 -0
- package/marketplace/plugins/stats/package.json +2 -2
- package/marketplace/plugins/stats/src/groups.test.ts +14 -0
- package/marketplace/plugins/stats/src/groups.ts +20 -0
- package/marketplace/plugins/stats/src/labels.test.ts +9 -0
- package/marketplace/plugins/stats/src/labels.ts +7 -0
- package/marketplace/plugins/stats/src/server.ts +1 -1
- package/package.json +1 -1
- package/src/client/App.tsx +20 -19
- package/src/client/components/common/ComposerTextarea.tsx +10 -1
- package/src/client/components/common/Modal.tsx +2 -6
- package/src/client/components/common/PWAInstallButton.tsx +3 -2
- package/src/client/components/common/Toast.test.tsx +298 -0
- package/src/client/components/common/Toast.tsx +103 -37
- package/src/client/components/common/ToastStack.tsx +33 -12
- package/src/client/components/common/ViewportSelector.tsx +122 -114
- package/src/client/components/common/context-usage-button/Ring.tsx +38 -1
- package/src/client/components/common/context-usage-button/index.test.tsx +19 -3
- package/src/client/components/common/context-usage-button/index.tsx +5 -2
- package/src/client/components/common/harness-glyph/brands.ts +65 -0
- package/src/client/components/common/harness-glyph/harness-glyph.test.ts +185 -0
- package/src/client/components/common/harness-glyph/index.tsx +131 -0
- package/src/client/components/common/header-controls/MoreMenu.tsx +2 -1
- package/src/client/components/common/header-controls/index.tsx +16 -8
- package/src/client/components/common/header-panel-buttons/index.tsx +4 -3
- package/src/client/components/common/panel-mark/index.test.tsx +2 -2
- package/src/client/components/common/panel-mark/index.tsx +11 -2
- package/src/client/components/common/search-select/index.tsx +305 -0
- package/src/client/components/common/search-select/search-select.test.tsx +217 -0
- package/src/client/components/common/server-control/index.tsx +3 -2
- package/src/client/components/common/session-row/index.tsx +18 -1
- package/src/client/components/common/toolbar-row/index.tsx +57 -20
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +1 -3
- package/src/client/components/layout/desktop-layout/TopNavbar.tsx +3 -2
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +7 -1
- package/src/client/components/layout/desktop-layout/index.tsx +1 -3
- package/src/client/components/layout/session-sidebar/CategoryItem.tsx +1 -0
- package/src/client/components/layout/session-sidebar/SessionItem.tsx +18 -1
- package/src/client/components/layout/session-sidebar/SessionsView.tsx +1 -3
- package/src/client/components/layout/session-sidebar/about-modal/HarnessTable.test.tsx +332 -0
- package/src/client/components/layout/session-sidebar/about-modal/HarnessTable.tsx +310 -0
- package/src/client/components/layout/session-sidebar/about-modal/SocialLinks.tsx +63 -51
- package/src/client/components/layout/session-sidebar/about-modal/UpdateSection.tsx +4 -2
- package/src/client/components/layout/session-sidebar/about-modal/index.test.tsx +122 -0
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +136 -35
- package/src/client/components/layout/session-sidebar/harness-mark.test.tsx +126 -0
- package/src/client/components/layout/session-sidebar/modern/ActionRow.tsx +4 -3
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +1 -0
- package/src/client/components/mobile/LayoutWrapper.tsx +1 -7
- package/src/client/components/mobile/SessionSidebar.tsx +1 -3
- package/src/client/components/mobile/mobile-main-view/Header.tsx +3 -2
- package/src/client/components/mobile/mobile-session-sidebar/Dialogs.tsx +0 -8
- package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +1 -0
- package/src/client/components/mobile/mobile-session-sidebar/SessionRow.tsx +17 -1
- package/src/client/components/settings/Modal.tsx +26 -22
- package/src/client/components/settings/Sidebar.tsx +45 -5
- package/src/client/components/settings/categories/HarnessSettings.tsx +207 -0
- package/src/client/components/settings/categories/ProjectSettings.tsx +1 -3
- package/src/client/components/settings/categories/ProviderSettings.tsx +0 -4
- package/src/client/components/settings/categories/SkillCatalogSettings.tsx +13 -23
- package/src/client/components/settings/categories/agent-settings/ModelPicker.tsx +23 -30
- package/src/client/components/settings/categories/appearance-settings/IconStyleSection.tsx +20 -11
- package/src/client/components/settings/categories/chat-settings/GoalSection.tsx +16 -16
- package/src/client/components/settings/categories/harness-settings/AddProviderForm.tsx +219 -0
- package/src/client/components/settings/categories/harness-settings/ConfigForm.tsx +268 -0
- package/src/client/components/settings/categories/harness-settings/EnvProviderForm.tsx +146 -0
- package/src/client/components/settings/categories/harness-settings/HarnessCard.tsx +278 -0
- package/src/client/components/settings/categories/harness-settings/ImportSection.tsx +195 -0
- package/src/client/components/settings/categories/harness-settings/ProviderPanel.tsx +152 -0
- package/src/client/components/settings/categories/harness-settings/ToggleList.tsx +147 -0
- package/src/client/components/settings/categories/harness-settings/parts.test.tsx +97 -0
- package/src/client/components/settings/categories/harness-settings/parts.tsx +84 -0
- package/src/client/components/settings/categories/harness-settings/provider-panel.test.tsx +313 -0
- package/src/client/components/settings/categories/omp-settings/RoleEditor.test.ts +60 -39
- package/src/client/components/settings/categories/omp-settings/RoleRow.tsx +32 -41
- package/src/client/components/settings/categories/omp-settings/role-picker.test-util.ts +45 -0
- package/src/client/components/settings/categories/panel-plugins/PluginMark.test.ts +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginMark.tsx +11 -4
- package/src/client/components/settings/groups.test.tsx +160 -0
- package/src/client/components/settings/harness-icons.test.tsx +134 -0
- package/src/client/components/workspace/browser-panel/AddressBar.tsx +3 -13
- package/src/client/components/workspace/browser-toolbar/clusters.tsx +237 -0
- package/src/client/components/workspace/browser-toolbar/index.test.tsx +167 -0
- package/src/client/components/workspace/browser-toolbar/index.tsx +99 -100
- package/src/client/components/workspace/btw-panel/Messages.tsx +4 -1
- package/src/client/components/workspace/btw-panel/index.tsx +2 -0
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +11 -7
- package/src/client/components/workspace/chat-timeline/ChatOverlays.tsx +5 -2
- package/src/client/components/workspace/chat-timeline/ComposerDock.tsx +13 -0
- package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +13 -0
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.test.ts +41 -0
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.tsx +19 -14
- package/src/client/components/workspace/chat-timeline/MessageList.test.ts +14 -0
- package/src/client/components/workspace/chat-timeline/MessageList.tsx +6 -0
- package/src/client/components/workspace/chat-timeline/PendingChatView.tsx +14 -0
- package/src/client/components/workspace/chat-timeline/RunFooter.tsx +4 -0
- package/src/client/components/workspace/chat-timeline/RunMark.tsx +58 -0
- package/src/client/components/workspace/chat-timeline/SubagentView.tsx +4 -1
- package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +4 -0
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +11 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.test.ts +13 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.tsx +8 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +27 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +48 -23
- package/src/client/components/workspace/chat-timeline/chat-input/composer-portal.test.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/chat-input/index.tsx +21 -1
- package/src/client/components/workspace/chat-timeline/chat-input/modes-props.ts +7 -0
- package/src/client/components/workspace/chat-timeline/chat-input/props.ts +13 -0
- package/src/client/components/workspace/chat-timeline/chat-input/selection.ts +11 -2
- package/src/client/components/workspace/chat-timeline/chat-input/styles.test.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/index.tsx +17 -15
- package/src/client/components/workspace/chat-timeline/pending-harness.test.tsx +157 -0
- package/src/client/components/workspace/chat-timeline/run-mark.test.ts +104 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FrameControl.tsx +11 -20
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/GroupedAsk.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionBlock.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/drafts.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +2 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.test.ts +31 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +5 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.test.ts +56 -45
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +38 -94
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/wait-parts.tsx +76 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +2 -1
- package/src/client/components/workspace/file-explorer/index.test.ts +25 -0
- package/src/client/components/workspace/file-explorer/index.tsx +10 -6
- package/src/client/components/workspace/git-panel/index.test.ts +13 -3
- package/src/client/components/workspace/git-panel/index.tsx +1 -3
- package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +92 -0
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +290 -0
- package/src/client/components/workspace/model-dropdown/Item.tsx +11 -0
- package/src/client/components/workspace/model-dropdown/Panel.tsx +119 -8
- package/src/client/components/workspace/model-dropdown/Section.tsx +4 -0
- package/src/client/components/workspace/model-dropdown/fullscreen-picker.ts +51 -0
- package/src/client/components/workspace/model-dropdown/harness-models.test.ts +177 -0
- package/src/client/components/workspace/model-dropdown/harness-models.ts +148 -0
- package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +336 -0
- package/src/client/components/workspace/model-dropdown/index.tsx +114 -85
- package/src/client/components/workspace/model-dropdown/placement.test.tsx +127 -0
- package/src/client/components/workspace/model-dropdown/popover-metrics.test.ts +107 -0
- package/src/client/components/workspace/model-dropdown/popover-metrics.ts +118 -0
- package/src/client/components/workspace/model-dropdown/row-mutations.ts +106 -0
- package/src/client/components/workspace/model-dropdown/trigger.test.ts +22 -2
- package/src/client/components/workspace/model-dropdown/use-popover-size.ts +89 -0
- package/src/client/data/settings/omp-schema.json +224 -17
- package/src/client/hooks/chat/composer/index.ts +11 -2
- package/src/client/hooks/chat/composer/items.test.ts +11 -0
- package/src/client/hooks/chat/composer/items.ts +4 -2
- package/src/client/hooks/chat/composer/model-selection.test.ts +110 -0
- package/src/client/hooks/chat/composer/model-selection.ts +45 -4
- package/src/client/hooks/chat/omp/prompt-send.ts +4 -2
- package/src/client/hooks/chat/timeline/actions.ts +10 -5
- package/src/client/hooks/chat/timeline/ask-frames.ts +5 -4
- package/src/client/hooks/chat/timeline/composer-local-actions.test.ts +19 -81
- package/src/client/hooks/chat/timeline/composer-modes.ts +11 -2
- package/src/client/hooks/chat/timeline/composer-refs.ts +16 -1
- package/src/client/hooks/chat/timeline/index.ts +27 -35
- package/src/client/hooks/chat/timeline/mode-availability.test.ts +51 -0
- package/src/client/hooks/chat/timeline/modes-contract.ts +6 -0
- package/src/client/hooks/chat/timeline/modes.ts +41 -2
- package/src/client/hooks/chat/timeline/new-chat-open.test.ts +86 -0
- package/src/client/hooks/chat/timeline/new-chat-open.ts +23 -5
- package/src/client/hooks/chat/timeline/new-chat.test.ts +32 -4
- package/src/client/hooks/chat/timeline/new-chat.ts +18 -6
- package/src/client/hooks/chat/timeline/prompt-text.test.ts +7 -0
- package/src/client/hooks/chat/timeline/prompt-text.ts +15 -6
- package/src/client/hooks/chat/timeline/rewind-actions.test.ts +51 -1
- package/src/client/hooks/chat/timeline/rewind-actions.ts +23 -1
- package/src/client/hooks/chat/timeline/run-identity.test.ts +52 -0
- package/src/client/hooks/chat/timeline/run-identity.ts +23 -11
- package/src/client/hooks/chat/timeline/send-execute.test.ts +55 -0
- package/src/client/hooks/chat/timeline/send-props.ts +11 -3
- package/src/client/hooks/chat/timeline/send-steer.test.ts +2 -3
- package/src/client/hooks/chat/timeline/send.test-util.ts +3 -2
- package/src/client/hooks/chat/timeline/send.test.ts +2 -3
- package/src/client/hooks/chat/timeline/send.ts +34 -8
- package/src/client/hooks/chat/timeline/session-harness.test.ts +163 -0
- package/src/client/hooks/chat/timeline/session-harness.ts +164 -0
- package/src/client/hooks/chat/timeline/session-load.test-util.ts +6 -2
- package/src/client/hooks/chat/timeline/session-load.test.ts +31 -0
- package/src/client/hooks/chat/timeline/session-load.ts +6 -14
- package/src/client/hooks/chat/timeline/session-shapes.ts +32 -0
- package/src/client/hooks/chat/timeline/spawn-harness.ts +41 -0
- package/src/client/hooks/chat/timeline/timeline-running.ts +55 -0
- package/src/client/hooks/chat/timeline/tui-only-guard.ts +9 -0
- package/src/client/hooks/chat/timeline/undo-confirmation.test.ts +131 -0
- package/src/client/hooks/models/harness-catalog.ts +114 -0
- package/src/client/hooks/models/provider-writes.test.ts +81 -0
- package/src/client/hooks/models/provider-writes.ts +144 -0
- package/src/client/hooks/models/use-harness-versions.test.ts +152 -0
- package/src/client/hooks/models/use-harness-versions.ts +136 -0
- package/src/client/hooks/models/use-harnesses-controller.ts +57 -0
- package/src/client/hooks/models/use-harnesses-signal.test.ts +128 -0
- package/src/client/hooks/models/use-harnesses.test.ts +187 -0
- package/src/client/hooks/models/use-harnesses.ts +215 -0
- package/src/client/hooks/settings/providers/index.ts +1 -3
- package/src/client/hooks/ui/editor-error-toast.ts +10 -3
- package/src/client/hooks/ui/icon-style.ts +28 -0
- package/src/client/hooks/ui/on-click-outside.test.ts +104 -0
- package/src/client/hooks/ui/on-click-outside.ts +14 -2
- package/src/client/hooks/ui/theme.ts +6 -0
- package/src/client/hooks/ui/toast-queue.test.ts +126 -0
- package/src/client/hooks/ui/toasts.ts +132 -27
- package/src/client/hooks/ui/ui-feedback.test.ts +4 -91
- package/src/client/lib/ui/control-plate.test.ts +76 -0
- package/src/client/lib/ui/control-plate.ts +65 -0
- package/src/client/tailwind.css +47 -1
- package/src/server/lib/assets/shell-attributes.server.ts +9 -2
- package/src/server/lib/assets/shell-attributes.test.ts +22 -6
- package/src/server/lib/db/schema.ts +4 -0
- package/src/server/lib/harness/acp/acp-audit.server.ts +107 -0
- package/src/server/lib/harness/acp/acp-goal-driver.server.ts +153 -0
- package/src/server/lib/harness/acp/acp-goal-state.server.ts +136 -0
- package/src/server/lib/harness/acp/acp-goal.server.ts +273 -0
- package/src/server/lib/harness/acp/acp-goal.test.ts +229 -0
- package/src/server/lib/harness/acp/acp-telemetry.server.ts +133 -0
- package/src/server/lib/harness/acp/acp-telemetry.test.ts +85 -0
- package/src/server/lib/harness/acp/acp-todos.server.ts +45 -0
- package/src/server/lib/harness/acp/acp-todos.test.ts +43 -0
- package/src/server/lib/harness/acp/activation.test.ts +81 -0
- package/src/server/lib/harness/acp/activation.ts +72 -0
- package/src/server/lib/harness/acp/calls.ts +97 -0
- package/src/server/lib/harness/acp/client.test.ts +73 -0
- package/src/server/lib/harness/acp/client.ts +339 -0
- package/src/server/lib/harness/acp/commands.test.ts +92 -0
- package/src/server/lib/harness/acp/commands.ts +165 -0
- package/src/server/lib/harness/acp/frames.test.ts +315 -0
- package/src/server/lib/harness/acp/frames.ts +349 -0
- package/src/server/lib/harness/acp/mapper.ts +204 -0
- package/src/server/lib/harness/acp/permissions.test.ts +66 -0
- package/src/server/lib/harness/acp/permissions.ts +155 -0
- package/src/server/lib/harness/acp/prompt.test.ts +130 -0
- package/src/server/lib/harness/acp/prompt.ts +134 -0
- package/src/server/lib/harness/acp/protocol.ts +162 -0
- package/src/server/lib/harness/acp/session-config.test.ts +73 -0
- package/src/server/lib/harness/acp/session-config.ts +148 -0
- package/src/server/lib/harness/acp/session-facts.ts +71 -0
- package/src/server/lib/harness/acp/session-handshake.ts +89 -0
- package/src/server/lib/harness/acp/session-idle.ts +51 -0
- package/src/server/lib/harness/acp/session-notifications.ts +95 -0
- package/src/server/lib/harness/acp/session-observers.test.ts +193 -0
- package/src/server/lib/harness/acp/session-options.ts +33 -0
- package/src/server/lib/harness/acp/session-permissions.test.ts +105 -0
- package/src/server/lib/harness/acp/session-permissions.ts +74 -0
- package/src/server/lib/harness/acp/session-reaper.test.ts +96 -0
- package/src/server/lib/harness/acp/session-turns.ts +95 -0
- package/src/server/lib/harness/acp/session-usage.ts +60 -0
- package/src/server/lib/harness/acp/session-web-state.ts +61 -0
- package/src/server/lib/harness/acp/session.test-util.ts +160 -0
- package/src/server/lib/harness/acp/session.test.ts +233 -0
- package/src/server/lib/harness/acp/session.ts +350 -0
- package/src/server/lib/harness/acp/turn.ts +199 -0
- package/src/server/lib/harness/acp/verbs.ts +87 -0
- package/src/server/lib/harness/auto-probe.server.test.ts +121 -0
- package/src/server/lib/harness/auto-probe.server.ts +178 -0
- package/src/server/lib/harness/capabilities.ts +67 -0
- package/src/server/lib/harness/config-invalidation.test.ts +91 -0
- package/src/server/lib/harness/config.server.test.ts +105 -0
- package/src/server/lib/harness/config.server.ts +98 -0
- package/src/server/lib/harness/enabled.server.test.ts +87 -0
- package/src/server/lib/harness/enabled.server.ts +61 -0
- package/src/server/lib/harness/launch-table.ts +195 -0
- package/src/server/lib/harness/launch.test.ts +220 -0
- package/src/server/lib/harness/launch.ts +216 -0
- package/src/server/lib/harness/probe-cache.server.test.ts +154 -0
- package/src/server/lib/harness/probe-cache.server.ts +177 -0
- package/src/server/lib/harness/provider-entry.ts +212 -0
- package/src/server/lib/harness/provider-file.server.ts +67 -0
- package/src/server/lib/harness/provider-import.test.ts +191 -0
- package/src/server/lib/harness/provider-probe.server.ts +123 -0
- package/src/server/lib/harness/provider-sources.server.test.ts +45 -0
- package/src/server/lib/harness/provider-sources.server.ts +308 -0
- package/src/server/lib/harness/provider-write-error.ts +19 -0
- package/src/server/lib/harness/provider-write.server.test.ts +308 -0
- package/src/server/lib/harness/provider-write.server.ts +339 -0
- package/src/server/lib/harness/provider-zcode.server.test.ts +270 -0
- package/src/server/lib/harness/provider-zcode.server.ts +324 -0
- package/src/server/lib/harness/register.server.ts +36 -0
- package/src/server/lib/harness/registry.ts +58 -0
- package/src/server/lib/harness/schema.server.ts +129 -0
- package/src/server/lib/harness/session-store.server.test.ts +175 -0
- package/src/server/lib/harness/session-store.server.ts +206 -0
- package/src/server/lib/harness/session-title.server.test.ts +109 -0
- package/src/server/lib/harness/session-title.server.ts +70 -0
- package/src/server/lib/harness/session.ts +74 -0
- package/src/server/lib/harness/spawn.server.ts +133 -0
- package/src/server/lib/harness/update-state.server.ts +185 -0
- package/src/server/lib/lifecycle/after-listen.ts +7 -0
- package/src/server/lib/models/provider-items.server.ts +1 -1
- package/src/server/lib/models/registry-refresh.server.test.ts +87 -0
- package/src/server/lib/models/registry-refresh.server.ts +98 -0
- package/src/server/lib/omp/config/models-config.ts +4 -0
- package/src/server/lib/omp/core/cli.ts +13 -0
- package/src/server/lib/omp/core/host-resolution.test.ts +6 -3
- package/src/server/lib/omp/rpc/child-config.ts +5 -4
- package/src/server/lib/omp/rpc/constants.test.ts +2 -1
- package/src/server/lib/omp/rpc/event-fanout.ts +9 -0
- package/src/server/lib/omp/rpc/forked-resume.test.ts +14 -3
- package/src/server/lib/omp/rpc/rpc-primitives.test.ts +11 -0
- package/src/server/lib/omp/rpc/session-registration.ts +7 -2
- package/src/server/lib/omp/rpc/session-registry.test.ts +2 -1
- package/src/server/lib/omp/rpc/session-registry.ts +74 -5
- package/src/server/lib/omp/session/acp-rows.server.ts +79 -0
- package/src/server/lib/omp/session/delete-flow.server.ts +15 -8
- package/src/server/lib/omp/session/delete.server.ts +12 -0
- package/src/server/lib/omp/session/sidebar-data.harness.test.ts +247 -0
- package/src/server/lib/omp/session/sidebar-data.server.ts +56 -3
- package/src/server/lib/queue/delivery.server.test.ts +4 -2
- package/src/server/lib/queue/payload.test.ts +67 -0
- package/src/server/lib/queue/payload.ts +9 -3
- package/src/server/lib/realtime/signals.server.test.ts +99 -0
- package/src/server/lib/realtime/signals.server.ts +25 -5
- package/src/server/lib/realtime/topics/session-data.server.ts +29 -0
- package/src/server/lib/realtime/topics/session.server.ts +3 -3
- package/src/server/routes/agent/command-resume.test.ts +77 -0
- package/src/server/routes/agent/command.test.ts +243 -2
- package/src/server/routes/agent/command.ts +78 -15
- package/src/server/routes/agent/harness-command.ts +133 -0
- package/src/server/routes/agent/new.ts +63 -1
- package/src/server/routes/chat/rewind.test.ts +147 -0
- package/src/server/routes/chat/rewind.ts +29 -7
- package/src/server/routes/chat/session.test.ts +240 -0
- package/src/server/routes/chat/session.ts +96 -4
- package/src/server/routes/harness/add-provider.test.ts +233 -0
- package/src/server/routes/harness/import-action.ts +272 -0
- package/src/server/routes/harness/import.test.ts +196 -0
- package/src/server/routes/harness/index.ts +13 -0
- package/src/server/routes/harness/root.ts +280 -0
- package/src/server/routes/harness/toggle.test.ts +127 -0
- package/src/server/routes/harness/update.ts +259 -0
- package/src/server/routes/harness/versions.test.ts +148 -0
- package/src/server/routes/harness/versions.ts +105 -0
- package/src/server/routes/index.ts +2 -0
- package/src/server/routes/sessions/delete-acp.test.ts +227 -0
- package/src/server/routes/sessions/queue.ts +7 -2
- package/src/server/routes/sessions/routes-queue.test.ts +52 -0
- package/src/server/routes/sessions/routes.test.ts +47 -13
- package/src/server/routes/sessions/session.ts +35 -0
- package/src/server/routes/settings/commands-harness.test.ts +92 -0
- package/src/server/routes/settings/commands.ts +26 -0
- package/src/server/routes/settings/model-override.ts +5 -2
- package/src/server/routes/settings/provider-entry.ts +2 -2
- package/src/server/routes/settings/provider-model.ts +2 -2
- package/src/server/routes/settings/provider-models.ts +2 -2
- package/src/server/routes/settings/provider-refresh.ts +6 -4
- package/src/server/routes/settings/providers.ts +3 -1
- package/src/server/routes/settings/settings-config-routes.test.ts +10 -2
- package/src/server/routes/settings/skills.ts +12 -0
- package/src/shared/lib/chat/ask-form/fields.ts +76 -0
- package/src/shared/lib/chat/ask-form/index.ts +323 -0
- package/src/shared/lib/chat/ask-form/tokens.ts +199 -0
- package/src/shared/lib/chat/ask-form/types.ts +43 -0
- package/src/shared/lib/chat/ask-form.test.ts +137 -0
- package/src/shared/lib/chat/ask-questions.test.ts +65 -1
- package/src/shared/lib/chat/ask-questions.ts +51 -145
- package/src/shared/lib/chat/ask-results.ts +198 -0
- package/src/shared/lib/chat/composer/client.ts +20 -8
- package/src/shared/lib/chat/context/usage.test.ts +8 -4
- package/src/shared/lib/chat/context/usage.ts +17 -3
- package/src/shared/lib/chat/omp/abort.test.ts +61 -0
- package/src/shared/lib/chat/omp/abort.ts +8 -2
- package/src/shared/lib/chat/omp/tool-frames.test.ts +23 -0
- package/src/shared/lib/chat/omp/tool-frames.ts +12 -2
- package/src/shared/lib/chat/timeline/omp-callbacks.ts +13 -1
- package/src/shared/lib/chat/timeline/prompt-error.test.ts +146 -0
- package/src/shared/lib/chat/timeline/prompt-error.ts +88 -0
- package/src/shared/lib/chat/tool/summary-wait.test.ts +18 -8
- package/src/shared/lib/chat/tool/wait-facts.ts +14 -8
- package/src/shared/lib/harness/brand-color.test.ts +66 -0
- package/src/shared/lib/harness/brand-color.ts +96 -0
- package/src/shared/lib/harness/catalog.test.ts +88 -0
- package/src/shared/lib/harness/catalog.ts +169 -0
- package/src/shared/lib/harness/config-fields.test.ts +139 -0
- package/src/shared/lib/harness/config-fields.ts +168 -0
- package/src/shared/lib/harness/config.test.ts +153 -0
- package/src/shared/lib/harness/config.ts +206 -0
- package/src/shared/lib/harness/dialects.test.ts +140 -0
- package/src/shared/lib/harness/dialects.ts +249 -0
- package/src/shared/lib/harness/enabled.test.ts +79 -0
- package/src/shared/lib/harness/enabled.ts +72 -0
- package/src/shared/lib/harness/menu.test.ts +94 -0
- package/src/shared/lib/harness/menu.ts +88 -0
- package/src/shared/lib/harness/provider-facts.test.ts +199 -0
- package/src/shared/lib/harness/provider-facts.ts +349 -0
- package/src/shared/lib/harness/provider-slug.ts +46 -0
- package/src/shared/lib/harness/providers.ts +175 -0
- package/src/shared/lib/harness/rewind.ts +24 -0
- package/src/shared/lib/harness/status.test.ts +158 -0
- package/src/shared/lib/harness/status.ts +112 -0
- package/src/shared/lib/harness/update-plan.test.ts +163 -0
- package/src/shared/lib/harness/update-plan.ts +140 -0
- package/src/shared/lib/harness/updates.test.ts +106 -0
- package/src/shared/lib/harness/updates.ts +177 -0
- package/src/shared/lib/icons/icon-paint-authority.test.ts +16 -4
- package/src/shared/lib/icons/icon-paint-authority.ts +57 -12
- package/src/shared/lib/icons/icon-paint-bucket.test.ts +84 -0
- package/src/shared/lib/icons/icon-paint-css.test.ts +23 -25
- package/src/shared/lib/icons/icon-paint-css.ts +69 -55
- package/src/shared/lib/icons/icon-paint-harness.test.ts +73 -0
- package/src/shared/lib/icons/icon-paint-harness.ts +75 -0
- package/src/shared/lib/icons/icon-paint-ink.ts +108 -0
- package/src/shared/lib/icons/icon-paint-panel.ts +19 -4
- package/src/shared/lib/icons/icon-paint-weight.ts +21 -2
- package/src/shared/lib/icons/icon-tone.ts +118 -21
- package/src/shared/lib/icons/tint-hues.generated.ts +100 -284
- package/src/shared/lib/icons/tint-tones.test.ts +79 -25
- package/src/shared/lib/icons/tint.ts +66 -6
- package/src/shared/lib/models/client.ts +10 -1
- package/src/shared/lib/models/provider/vendors.ts +72 -0
- package/src/shared/lib/omp/config/schema.test.ts +36 -0
- package/src/shared/lib/omp/dialog-methods.ts +4 -3
- package/src/shared/lib/omp/session/messages-map-trace.test.ts +42 -0
- package/src/shared/lib/omp/session/messages-map.ts +6 -1
- package/src/shared/lib/omp/session/parse-message-blocks-toolcall.test.ts +8 -0
- package/src/shared/lib/omp/session/parse-message-blocks.ts +6 -1
- package/src/shared/lib/omp/session/shell-trace.test.ts +69 -0
- package/src/shared/lib/omp/session/shell-trace.ts +63 -0
- package/src/shared/lib/omp/session/sidebar.ts +37 -10
- package/src/shared/lib/omp/session/wait-idle.test.ts +47 -0
- package/src/shared/lib/omp/session/wait-idle.ts +93 -0
- package/src/shared/lib/omp/session/wait.test.ts +34 -33
- package/src/shared/lib/omp/session/wait.ts +25 -39
- package/src/shared/lib/settings/sections.ts +24 -0
- package/src/shared/lib/theme/css.ts +2 -0
- package/src/shared/lib/theme/ink-scale.ts +21 -1
- package/src/shared/lib/theme/theme.test.ts +25 -9
- package/src/shared/lib/ui/safe-area.test.ts +28 -0
- package/src/shared/lib/ui/safe-area.ts +42 -0
- package/src/shared/lib/ui/toast-duration.test.ts +74 -0
- package/src/shared/lib/ui/toast-duration.ts +70 -0
- package/src/shared/types/harness-version.ts +59 -0
- package/src/shared/types/harness.ts +201 -0
- package/src/shared/types/index.ts +2 -0
- package/src/shared/types/omp/agent.ts +13 -0
- package/src/shared/types/settings/state.ts +10 -1
- package/src/shared/types/workspace.ts +10 -0
- package/src/test-support/env.ts +38 -0
- package/src/test-support/file-explorer-render.test-util.ts +37 -0
- package/src/test-support/file-explorer.test-util.ts +20 -18
- package/src/test-support/harness-table.test-util.ts +108 -0
- package/dist/client/static/js/index-7ppta1pb.css +0 -1
|
@@ -32,6 +32,7 @@ import { describePosix } from '@/test-support/platform';
|
|
|
32
32
|
import { invalidateOmpCliCache } from '@/server/lib/omp/core/cli';
|
|
33
33
|
import { stopDiscoveryRootsWatch } from '@/server/lib/omp/config/roots-watch.server';
|
|
34
34
|
import { getRpcSession, startRpcSession } from '@/server/lib/omp/rpc/session-registry';
|
|
35
|
+
import { isolateDb, releaseDb } from '@/test-support/isolated-db';
|
|
35
36
|
|
|
36
37
|
/** One line per spawned child, written by the scripted omp. */
|
|
37
38
|
interface ForkRecord {
|
|
@@ -53,12 +54,19 @@ const ENV_KEYS = [
|
|
|
53
54
|
'FAKE_OMP_FORK_LOG',
|
|
54
55
|
] as const;
|
|
55
56
|
|
|
56
|
-
beforeEach(() => {
|
|
57
|
+
beforeEach(async () => {
|
|
57
58
|
root = mkdtempSync(join(tmpdir(), 'omp-fork-test-'));
|
|
58
59
|
saved = Object.fromEntries(ENV_KEYS.map((key) => [key, Bun.env[key]]));
|
|
60
|
+
// The registry's spawn path persists `harness_sessions` rows. Assigning
|
|
61
|
+
// `KABMO_DB_PATH` here is NOT isolation: the handle is a process-wide
|
|
62
|
+
// singleton, so a sibling suite that already opened the developer's real
|
|
63
|
+
// `~/.kabmo/db.sqlite` makes the assignment inert and every spawn below
|
|
64
|
+
// writes a row there (measured: 141 `omp-fork-test-*` rows in a live
|
|
65
|
+
// install). `isolateDb` closes that handle before it points the path at a
|
|
66
|
+
// fresh temp file.
|
|
67
|
+
await isolateDb();
|
|
59
68
|
Bun.env.KABMO_OMP_BIN = join(import.meta.dir, '../../../../test-support/fake-omp-fork.ts');
|
|
60
69
|
Bun.env.PI_CODING_AGENT_DIR = join(root, 'agent');
|
|
61
|
-
Bun.env.KABMO_DB_PATH = join(root, 'db.sqlite');
|
|
62
70
|
Bun.env.SYNC_WORKSPACE = 'false';
|
|
63
71
|
Bun.env.FAKE_OMP_FORK_ON_RESUME = '1';
|
|
64
72
|
Bun.env.FAKE_OMP_FORK_LOG = join(root, 'forks.jsonl');
|
|
@@ -66,10 +74,13 @@ beforeEach(() => {
|
|
|
66
74
|
delete globalThis.__ompStartLocks;
|
|
67
75
|
});
|
|
68
76
|
|
|
69
|
-
afterEach(() => {
|
|
77
|
+
afterEach(async () => {
|
|
70
78
|
stopDiscoveryRootsWatch();
|
|
71
79
|
delete globalThis.__ompSessions;
|
|
72
80
|
delete globalThis.__ompStartLocks;
|
|
81
|
+
// Close and drop the temp handle BEFORE restoring `KABMO_DB_PATH`: leaving it
|
|
82
|
+
// in the process-wide slot sends the next suite's writes to this deleted file.
|
|
83
|
+
await releaseDb();
|
|
73
84
|
for (const key of ENV_KEYS) {
|
|
74
85
|
const value = saved[key];
|
|
75
86
|
if (value === undefined) delete Bun.env[key];
|
|
@@ -114,6 +114,17 @@ describe('EventFanout', () => {
|
|
|
114
114
|
expect(seen).toEqual([1]);
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
+
test('drops the shell trace omp 18.17.0 stamps on a bash frame', () => {
|
|
118
|
+
// Every downstream consumer receives what this emits and none reads it.
|
|
119
|
+
const fanout = new EventFanout();
|
|
120
|
+
let details: unknown;
|
|
121
|
+
fanout.on((e) => {
|
|
122
|
+
details = (e.result as { details?: unknown } | undefined)?.details;
|
|
123
|
+
});
|
|
124
|
+
fanout.emit({ type: 'tool_execution_end', result: { content: [], details: { exitCode: 0, trace: { v: 1 } } } } as unknown as AgentEvent);
|
|
125
|
+
expect(details).toEqual({ exitCode: 0 });
|
|
126
|
+
});
|
|
127
|
+
|
|
117
128
|
test('a listener registered twice receives twice and each removal takes one out', () => {
|
|
118
129
|
const fanout = new EventFanout();
|
|
119
130
|
let calls = 0;
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
import type { AgentSessionWrapper } from '@/server/lib/omp/rpc/manager';
|
|
19
|
+
import type { HarnessSession } from '@/server/lib/harness/session';
|
|
20
|
+
|
|
21
|
+
/** Any session this registry can hold: the function only touches `sessionId` and
|
|
22
|
+
* `onDestroy`, which both transports provide. */
|
|
23
|
+
type RegistrableSession = AgentSessionWrapper | HarnessSession;
|
|
19
24
|
|
|
20
25
|
/**
|
|
21
26
|
* Register `created` under the id omp reported AND, when that differs, under the
|
|
@@ -41,8 +46,8 @@ import type { AgentSessionWrapper } from '@/server/lib/omp/rpc/manager';
|
|
|
41
46
|
* and it is removed with the wrapper, so a dead child can never answer for it.
|
|
42
47
|
*/
|
|
43
48
|
export function registerSpawnedSession(
|
|
44
|
-
registry: Map<string,
|
|
45
|
-
created:
|
|
49
|
+
registry: Map<string, RegistrableSession>,
|
|
50
|
+
created: RegistrableSession,
|
|
46
51
|
requestedId: string,
|
|
47
52
|
realSessionId: string,
|
|
48
53
|
): void {
|
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
getRpcSession,
|
|
32
32
|
listRpcSessions,
|
|
33
33
|
startNewRpcSession,
|
|
34
|
+
type LiveSession,
|
|
34
35
|
} from '@/server/lib/omp/rpc/session-registry';
|
|
35
36
|
import { stopDiscoveryRootsWatch } from '@/server/lib/omp/config/roots-watch.server';
|
|
36
37
|
import type { AgentSessionWrapper } from '@/server/lib/omp/rpc/manager';
|
|
@@ -115,7 +116,7 @@ afterEach(() => {
|
|
|
115
116
|
removeDir(root);
|
|
116
117
|
});
|
|
117
118
|
|
|
118
|
-
function registry(): Map<string,
|
|
119
|
+
function registry(): Map<string, LiveSession> {
|
|
119
120
|
globalThis.__ompSessions ??= new Map();
|
|
120
121
|
return globalThis.__ompSessions;
|
|
121
122
|
}
|
|
@@ -24,17 +24,53 @@ import { claimPrewarmedSession } from '@/server/lib/omp/rpc/prewarm-pool';
|
|
|
24
24
|
import { isUnrestorableModelFailure, resolveResumableModel } from '@/server/lib/omp/session/resumable-model.server';
|
|
25
25
|
import { DEFAULT_APPROVAL_MODE, type ApprovalMode } from '@/shared/lib/omp/config/access-mode';
|
|
26
26
|
import type { SelectedModel } from '@/shared/types/models';
|
|
27
|
+
import { claimHarness, harnessOf } from '@/server/lib/harness/registry';
|
|
28
|
+
import { saveHarnessSession } from '@/server/lib/harness/session-store.server';
|
|
29
|
+
import type { HarnessId } from '@/shared/lib/harness/catalog';
|
|
30
|
+
import type { HarnessSession } from '@/server/lib/harness/session';
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* A session this process is running: omp over RPC, or any ACP agent.
|
|
34
|
+
*
|
|
35
|
+
* The union lives in the REGISTRY rather than behind two maps because every
|
|
36
|
+
* consumer asks the same questions — is it alive, is a run in flight, which
|
|
37
|
+
* dialogs are pending — and two registries would answer "is this session live"
|
|
38
|
+
* twice. Members that only omp has (`runSettle`, `modeMirror`, `reloadPlugins`)
|
|
39
|
+
* are reached through `asOmpSession`, which returns undefined for anything else
|
|
40
|
+
* so a missing panel is a stated gap rather than a crash.
|
|
41
|
+
*/
|
|
42
|
+
export type LiveSession = AgentSessionWrapper | HarnessSession;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The omp view of a live session, or undefined when another harness owns it.
|
|
46
|
+
*
|
|
47
|
+
* Decided by the OWNERSHIP record, not by `instanceof` or by sniffing fields:
|
|
48
|
+
* a driver claims its sessions once at spawn (`claimHarness`), and everything
|
|
49
|
+
* that is not claimed is omp's — which is the truth for every session that
|
|
50
|
+
* predates harnesses, for a `bun --hot` reload, and for a test's own fake
|
|
51
|
+
* wrapper. Field sniffing classified those fakes as "another harness" and sent
|
|
52
|
+
* live omp chats down the harness-agnostic path.
|
|
53
|
+
*/
|
|
54
|
+
export function asOmpSession(session: LiveSession | undefined): AgentSessionWrapper | undefined {
|
|
55
|
+
if (!session) return undefined;
|
|
56
|
+
return harnessOf(session) === 'omp-rpc' ? (session as AgentSessionWrapper) : undefined;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** Which harness runs a session. */
|
|
60
|
+
export function harnessOfSession(session: LiveSession): HarnessId {
|
|
61
|
+
return harnessOf(session);
|
|
62
|
+
}
|
|
27
63
|
|
|
28
64
|
export { getSpawnApprovalMode, getSpawnModeEnv, reconcileSpawnApprovalMode } from '@/server/lib/omp/rpc/spawn-provenance';
|
|
29
65
|
|
|
30
66
|
declare global {
|
|
31
67
|
// eslint-disable-next-line no-var
|
|
32
|
-
var __ompSessions: Map<string,
|
|
68
|
+
var __ompSessions: Map<string, LiveSession> | undefined;
|
|
33
69
|
// eslint-disable-next-line no-var
|
|
34
70
|
var __ompStartLocks: Map<string, Promise<{ session: AgentSessionWrapper; realSessionId: string }>> | undefined;
|
|
35
71
|
}
|
|
36
72
|
|
|
37
|
-
function getRegistry(): Map<string,
|
|
73
|
+
function getRegistry(): Map<string, LiveSession> {
|
|
38
74
|
if (!globalThis.__ompSessions) {
|
|
39
75
|
globalThis.__ompSessions = new Map();
|
|
40
76
|
const cleanup = () => globalThis.__ompSessions?.forEach((s) => s.destroy());
|
|
@@ -50,13 +86,31 @@ function getLocks(): Map<string, Promise<{ session: AgentSessionWrapper; realSes
|
|
|
50
86
|
return globalThis.__ompStartLocks;
|
|
51
87
|
}
|
|
52
88
|
|
|
89
|
+
/** The OMP view of a session, or undefined when another harness owns it.
|
|
90
|
+
*
|
|
91
|
+
* Kept as the narrow accessor on purpose: fourteen call sites read omp-only
|
|
92
|
+
* members (`runSettle`, `modeMirror`, `reloadPlugins`, the spawn flags), and
|
|
93
|
+
* widening this would make each of them answer a question about a driver it
|
|
94
|
+
* does not have. `getLiveSession` is the harness-agnostic lookup. */
|
|
53
95
|
export function getRpcSession(sessionId: string): AgentSessionWrapper | undefined {
|
|
96
|
+
return asOmpSession(getRegistry().get(sessionId));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** Any live session, whichever harness runs it. */
|
|
100
|
+
export function getLiveSession(sessionId: string): LiveSession | undefined {
|
|
54
101
|
return getRegistry().get(sessionId);
|
|
55
102
|
}
|
|
56
103
|
|
|
57
|
-
/** Every live session
|
|
58
|
-
* (a plugin/skill reload) rather than one addressed id. */
|
|
104
|
+
/** Every live OMP session. */
|
|
59
105
|
export function listRpcSessions(): AgentSessionWrapper[] {
|
|
106
|
+
return [...getRegistry().values()]
|
|
107
|
+
.map((session) => asOmpSession(session))
|
|
108
|
+
.filter((session): session is AgentSessionWrapper => Boolean(session?.isAlive()));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** Every live session, any harness — for operations that must reach all of them
|
|
112
|
+
* (a plugin/skill reload, a sidebar status sweep) rather than one addressed id. */
|
|
113
|
+
export function listLiveSessions(): LiveSession[] {
|
|
60
114
|
return [...getRegistry().values()].filter((session) => session.isAlive());
|
|
61
115
|
}
|
|
62
116
|
|
|
@@ -119,7 +173,10 @@ export async function startRpcSession(
|
|
|
119
173
|
const registry = getRegistry();
|
|
120
174
|
const locks = getLocks();
|
|
121
175
|
|
|
122
|
-
|
|
176
|
+
// This function only ever SPAWNS omp sessions, so a live session under the
|
|
177
|
+
// same id that belongs to another harness is a collision the caller must
|
|
178
|
+
// resolve — adopting it here would hand back the wrong transport.
|
|
179
|
+
const existing = asOmpSession(registry.get(sessionId));
|
|
123
180
|
if (existing?.isAlive()) {
|
|
124
181
|
// The child's OWN id, not the one asked for: after a forked resume the two
|
|
125
182
|
// differ, and `realSessionId` means the former. Callers that persist it (the
|
|
@@ -201,6 +258,18 @@ async function spawnOnce(
|
|
|
201
258
|
|
|
202
259
|
const realSessionId = created.sessionId;
|
|
203
260
|
registerSpawnedSession(registry, created, sessionId, realSessionId);
|
|
261
|
+
claimHarness(created, 'omp-rpc');
|
|
262
|
+
// Persist the ownership too, so the sidebar's mark does not depend on the
|
|
263
|
+
// fallback: a row is only `omp` by DEFAULT because nothing wrote the row, and
|
|
264
|
+
// a default is a guess where a record is a fact.
|
|
265
|
+
void saveHarnessSession({
|
|
266
|
+
sessionId: realSessionId,
|
|
267
|
+
harness: 'omp-rpc',
|
|
268
|
+
agentSessionId: '',
|
|
269
|
+
cwd,
|
|
270
|
+
}).catch((cause: unknown) => {
|
|
271
|
+
console.error(`[harness] could not record omp-rpc for session ${realSessionId}:`, cause);
|
|
272
|
+
});
|
|
204
273
|
// A session's cwd may sit outside every registered workspace, and omp
|
|
205
274
|
// resolves project skills from it all the same — so the discovery watcher
|
|
206
275
|
// has to learn this directory. AWAITED, not fired and forgotten: the
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The sidebar rows for chats that ran on another harness.
|
|
8
|
+
*
|
|
9
|
+
* An ACP agent writes no session file of its own, so omp's JSONL discovery cannot
|
|
10
|
+
* see those chats: before this module they existed in the live registry and in no
|
|
11
|
+
* list at all, and vanished from the sidebar the moment their tab closed.
|
|
12
|
+
*
|
|
13
|
+
* They come from `harness_sessions`, and each one is filed by resolving ITS OWN
|
|
14
|
+
* cwd to a project root — the same resolution the scan applies — so a chat
|
|
15
|
+
* started in a subdirectory lands in the repository that owns it, and a chat
|
|
16
|
+
* whose cwd is outside every registered workspace lands in none rather than
|
|
17
|
+
* inflating the first folder.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import { canonicalPath } from '@/server/lib/fs/canonical';
|
|
21
|
+
import { resolveProjectRoot } from '@/server/lib/omp/core/worktree';
|
|
22
|
+
import type { HarnessSessionRow } from '@/server/lib/harness/session-store.server';
|
|
23
|
+
import { knownHarness } from '@/server/lib/harness/session-store.server';
|
|
24
|
+
import { HARNESS_IDS } from '@/shared/lib/harness/catalog';
|
|
25
|
+
import { deriveSessionTitle } from '@/shared/lib/omp/session/sidebar';
|
|
26
|
+
import type { SessionItemData } from '@/shared/types';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The ACP rows that belong to one folder.
|
|
30
|
+
*
|
|
31
|
+
* A chat's folder is decided by ITS OWN cwd resolved to a project root, exactly
|
|
32
|
+
* as omp's discovered sessions are — so a chat started in `packages/app` is filed
|
|
33
|
+
* under the repository that owns it, and a chat whose cwd sits outside every
|
|
34
|
+
* registered workspace is filed under none (rather than inflating the first
|
|
35
|
+
* folder in the list).
|
|
36
|
+
*
|
|
37
|
+
* The resolution is cached per cwd for the duration of one sidebar build: the
|
|
38
|
+
* scan walks the filesystem, and a folder loop re-resolving the same handful of
|
|
39
|
+
* directories once per folder is the kind of cost that only shows up on an
|
|
40
|
+
* install with many workspaces.
|
|
41
|
+
*/
|
|
42
|
+
export async function acpRowsFor(
|
|
43
|
+
sessions: readonly HarnessSessionRow[],
|
|
44
|
+
folderRootKey: string,
|
|
45
|
+
folderId: number,
|
|
46
|
+
archivedIds: Set<string>,
|
|
47
|
+
resolvedRoots: Map<string, string> = new Map(),
|
|
48
|
+
): Promise<SessionItemData[]> {
|
|
49
|
+
const rows: SessionItemData[] = [];
|
|
50
|
+
for (const row of sessions) {
|
|
51
|
+
if (!row.cwd) continue;
|
|
52
|
+
let root = resolvedRoots.get(row.cwd);
|
|
53
|
+
if (root === undefined) {
|
|
54
|
+
root = await resolveProjectRoot(row.cwd).catch(() => '');
|
|
55
|
+
resolvedRoots.set(row.cwd, root);
|
|
56
|
+
}
|
|
57
|
+
if (!root || (await canonicalPath(root)) !== folderRootKey) continue;
|
|
58
|
+
const harness = knownHarness(row.harness, HARNESS_IDS);
|
|
59
|
+
rows.push({
|
|
60
|
+
id: row.sessionId,
|
|
61
|
+
folder_id: folderId,
|
|
62
|
+
// The chat's own name, or its first prompt. An ACP agent publishes no
|
|
63
|
+
// session file for omp's scan to read, so the two facts `sessionTitleFor`
|
|
64
|
+
// reads for an omp row are stored beside the record instead (see
|
|
65
|
+
// `harness/session-title.server.ts`) and the SAME precedence is applied —
|
|
66
|
+
// before it, every recorded chat drew `Untitled` for its whole life.
|
|
67
|
+
title: deriveSessionTitle({ name: row.title, created: row.createdAt }),
|
|
68
|
+
...(harness ? { harness } : {}),
|
|
69
|
+
created_at: new Date(row.createdAt).toISOString(),
|
|
70
|
+
updated_at: new Date(row.updatedAt).toISOString(),
|
|
71
|
+
is_active: 0,
|
|
72
|
+
is_archived: archivedIds.has(row.sessionId) ? 1 : 0,
|
|
73
|
+
hasSubagents: false,
|
|
74
|
+
cwd: row.cwd,
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return rows;
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -10,18 +10,24 @@
|
|
|
10
10
|
* The ORDER is the contract and it is enforced here, not by the callers:
|
|
11
11
|
* 1. refuse a pending `new-…` chat and an id that is not one path segment —
|
|
12
12
|
* both name something other than the session they appear to;
|
|
13
|
-
* 2. refuse a session whose
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* 2. refuse a session whose child is mid-turn (a run, a live subagent, or a
|
|
14
|
+
* dialog the agent is blocked on) — the delete would kill work the user can
|
|
15
|
+
* still see, and omp would flush the file back on shutdown anyway. ANY
|
|
16
|
+
* harness: an ACP chat is live in the same registry and is just as much in
|
|
17
|
+
* the middle of something;
|
|
18
|
+
* 3. destroy the child and AWAIT its exit;
|
|
18
19
|
* 4. purge side questions, then the transcript, artifacts and Kabmo rows.
|
|
19
20
|
*
|
|
21
|
+
* Step 2/3 read `getLiveSession`, not the omp-only view: an ACP session has no
|
|
22
|
+
* `AgentSessionWrapper`, so the old `getRpcSession` lookup answered "nothing is
|
|
23
|
+
* live" for every non-omp chat — the delete then removed its rows while the
|
|
24
|
+
* agent process kept the conversation aliased in the registry.
|
|
25
|
+
*
|
|
20
26
|
* A batch that re-implemented any of this would drift from the single delete,
|
|
21
27
|
* and the drift would be silent: the route answers per-id verdicts either way.
|
|
22
28
|
*/
|
|
23
29
|
|
|
24
|
-
import {
|
|
30
|
+
import { getLiveSession } from '@/server/lib/omp/rpc/session-registry';
|
|
25
31
|
import { purgeSessionData } from '@/server/lib/omp/session/delete.server';
|
|
26
32
|
import { purgeBtwForSession } from '@/server/lib/btw/purge.server';
|
|
27
33
|
import { isSinglePathSegment } from '@/server/lib/fs/path-segment';
|
|
@@ -61,8 +67,9 @@ export async function removeSession(sessionId: string): Promise<SessionRemoval>
|
|
|
61
67
|
|
|
62
68
|
try {
|
|
63
69
|
// A live child is the only other writer of the transcript. Busy means a
|
|
64
|
-
// turn, a live subagent, or a dialog
|
|
65
|
-
|
|
70
|
+
// turn, a live subagent, or a dialog the agent is parked on — omp's child
|
|
71
|
+
// and an ACP agent's alike.
|
|
72
|
+
const live = getLiveSession(sessionId);
|
|
66
73
|
if (live?.isAlive()) {
|
|
67
74
|
if (live.isBusy()) {
|
|
68
75
|
return {
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
* - its sibling artifacts directory, which holds the subagent transcripts;
|
|
19
19
|
* - the `archived_sessions`, `session_ui_state`, `session_stream_state`,
|
|
20
20
|
* `queued_messages` and `chat_sessions` rows for that id;
|
|
21
|
+
* - the `harness_sessions`, `harness_goal_state` and `harness_usage_state`
|
|
22
|
+
* rows, which are the WHOLE record of a chat that ran on an ACP agent (its
|
|
23
|
+
* transcript is written by nobody Kabmo can read) and its resume id, goal
|
|
24
|
+
* and token usage besides;
|
|
21
25
|
* - in mock mode the demo `sessions` row and its `files` tree.
|
|
22
26
|
*
|
|
23
27
|
* The caller owns the process: a live omp child MUST be destroyed before this
|
|
@@ -62,6 +66,14 @@ const SESSION_ROW_DELETES: readonly (readonly [string, string])[] = [
|
|
|
62
66
|
['queued_messages', 'session_id'],
|
|
63
67
|
['chat_sessions', 'session_id'],
|
|
64
68
|
['files', 'session_id'],
|
|
69
|
+
// An ACP chat has no transcript for the scan to lose: `harness_sessions` IS
|
|
70
|
+
// its row, so leaving it behind both refused the delete as "not found" (nothing
|
|
71
|
+
// else matched) and, for `omp-acp` whose JSONL did exist, re-listed the chat
|
|
72
|
+
// from the record the moment the file was gone. The goal and usage rows are
|
|
73
|
+
// keyed to the same id and would otherwise outlive the chat they describe.
|
|
74
|
+
['harness_sessions', 'session_id'],
|
|
75
|
+
['harness_goal_state', 'session_id'],
|
|
76
|
+
['harness_usage_state', 'session_id'],
|
|
65
77
|
];
|
|
66
78
|
|
|
67
79
|
async function purgeKabmoRows(db: DbClient, sessionId: string): Promise<number> {
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A sidebar row names the agent that ACTUALLY ran the chat.
|
|
8
|
+
*
|
|
9
|
+
* The bug this pins: every row reported `omp-rpc`, because the sidebar filled
|
|
10
|
+
* `harness` from `DEFAULT_HARNESS_ID` and nothing ever wrote a record. The mark
|
|
11
|
+
* beside a session name was therefore decorative — it said `omp` for a chat that
|
|
12
|
+
* ran on `opencode2`, and a chat spawned over ACP did not appear in the list AT
|
|
13
|
+
* ALL (its agent writes no session file, so omp's JSONL discovery cannot see it).
|
|
14
|
+
*
|
|
15
|
+
* Three properties are load-bearing:
|
|
16
|
+
*
|
|
17
|
+
* - an ACP chat is listed from the persisted record, not from omp's scan;
|
|
18
|
+
* - it is filed under the folder that owns its cwd, resolved the same way the
|
|
19
|
+
* scan resolves a discovered session's;
|
|
20
|
+
* - the list is ordered as ONE sequence. Appending the ACP rows after omp's
|
|
21
|
+
* already-sorted bucket put a just-spawned chat below 240 older ones, behind
|
|
22
|
+
* "Show more".
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, setDefaultTimeout, test } from 'bun:test';
|
|
26
|
+
import fs from 'node:fs';
|
|
27
|
+
import { tmpdir } from 'node:os';
|
|
28
|
+
import { join } from 'node:path';
|
|
29
|
+
|
|
30
|
+
import { getDb } from '@/server/db.server';
|
|
31
|
+
import { loadSidebarStructure } from '@/server/lib/omp/session/sidebar-data.server';
|
|
32
|
+
import { invalidateOmpSidebarData } from '@/server/lib/omp/session/reader';
|
|
33
|
+
import { clearSessionFileCaches } from '@/server/lib/omp/session/files';
|
|
34
|
+
import { saveHarnessSession } from '@/server/lib/harness/session-store.server';
|
|
35
|
+
import { noteAgentTitle, notePromptTitle } from '@/server/lib/harness/session-title.server';
|
|
36
|
+
import { isolateDb, releaseDb } from '@/test-support/isolated-db';
|
|
37
|
+
import { removeDir } from '@/test-support/remove-dir';
|
|
38
|
+
|
|
39
|
+
/** The same budget the canonical suite states: `loadSidebarStructure` spawns
|
|
40
|
+
* `git worktree list` for any folder that has a session. */
|
|
41
|
+
setDefaultTimeout(30_000);
|
|
42
|
+
|
|
43
|
+
const saved = {
|
|
44
|
+
agentDir: Bun.env.PI_CODING_AGENT_DIR,
|
|
45
|
+
xdg: Bun.env.XDG_DATA_HOME,
|
|
46
|
+
mock: Bun.env.MOCK,
|
|
47
|
+
sync: Bun.env.SYNC_WORKSPACE,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
let root = '';
|
|
51
|
+
let sessionsRoot = '';
|
|
52
|
+
let project = '';
|
|
53
|
+
|
|
54
|
+
beforeAll(async () => {
|
|
55
|
+
root = await fs.promises.mkdtemp(join(tmpdir(), 'omc-sidebar-harness-'));
|
|
56
|
+
const agent = join(root, 'agent');
|
|
57
|
+
sessionsRoot = join(agent, 'sessions');
|
|
58
|
+
await fs.promises.mkdir(sessionsRoot, { recursive: true });
|
|
59
|
+
project = join(root, 'project');
|
|
60
|
+
await fs.promises.mkdir(project, { recursive: true });
|
|
61
|
+
|
|
62
|
+
Bun.env.PI_CODING_AGENT_DIR = agent;
|
|
63
|
+
delete Bun.env.XDG_DATA_HOME;
|
|
64
|
+
Bun.env.MOCK = 'false';
|
|
65
|
+
Bun.env.SYNC_WORKSPACE = 'false';
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
afterAll(() => {
|
|
69
|
+
if (saved.agentDir === undefined) delete Bun.env.PI_CODING_AGENT_DIR;
|
|
70
|
+
else Bun.env.PI_CODING_AGENT_DIR = saved.agentDir;
|
|
71
|
+
if (saved.xdg === undefined) delete Bun.env.XDG_DATA_HOME;
|
|
72
|
+
else Bun.env.XDG_DATA_HOME = saved.xdg;
|
|
73
|
+
if (saved.mock === undefined) delete Bun.env.MOCK;
|
|
74
|
+
else Bun.env.MOCK = saved.mock;
|
|
75
|
+
if (saved.sync === undefined) delete Bun.env.SYNC_WORKSPACE;
|
|
76
|
+
else Bun.env.SYNC_WORKSPACE = saved.sync;
|
|
77
|
+
removeDir(root);
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
beforeEach(async () => {
|
|
81
|
+
await isolateDb();
|
|
82
|
+
await fs.promises.rm(join(sessionsRoot, 'project'), { recursive: true, force: true });
|
|
83
|
+
invalidateOmpSidebarData();
|
|
84
|
+
clearSessionFileCaches();
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
afterEach(async () => {
|
|
88
|
+
await releaseDb();
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
/** One omp session file, timestamped so ordering between cases is explicit. */
|
|
92
|
+
async function writeOmpSession(id: string, timestamp: string): Promise<void> {
|
|
93
|
+
const dir = join(sessionsRoot, 'project');
|
|
94
|
+
await fs.promises.mkdir(dir, { recursive: true });
|
|
95
|
+
const lines = [
|
|
96
|
+
JSON.stringify({ type: 'session', id, cwd: project, timestamp }),
|
|
97
|
+
JSON.stringify({
|
|
98
|
+
type: 'message', id: `${id}-m1`, parentId: null, timestamp,
|
|
99
|
+
message: { role: 'user', content: `prompt for ${id}` },
|
|
100
|
+
}),
|
|
101
|
+
];
|
|
102
|
+
await Bun.write(join(dir, `${id}.jsonl`), `${lines.join('\n')}\n`);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
async function registerFolder(projectPath: string): Promise<number> {
|
|
106
|
+
const db = await getDb();
|
|
107
|
+
await db.run('INSERT INTO workspace_folders (name, project_path) VALUES (?, ?)', ['ws', projectPath]);
|
|
108
|
+
const row = await db.get<{ id: number }>('SELECT id FROM workspace_folders ORDER BY id DESC LIMIT 1');
|
|
109
|
+
return Number(row?.id);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** The folder row and its sessions, by folder id. */
|
|
113
|
+
async function folderSessions(folderId: number) {
|
|
114
|
+
const structure = await loadSidebarStructure();
|
|
115
|
+
const folder = structure.folders.find((entry) => Number(entry.id) === folderId);
|
|
116
|
+
return folder?.sessions ?? [];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
describe('a sidebar row names its harness', () => {
|
|
120
|
+
test('an ACP chat is listed, with its own harness', async () => {
|
|
121
|
+
const folderId = await registerFolder(project);
|
|
122
|
+
await saveHarnessSession({
|
|
123
|
+
sessionId: 'ses_acp', harness: 'opencode', agentSessionId: 'ses_acp', cwd: project,
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
const sessions = await folderSessions(folderId);
|
|
127
|
+
const row = sessions.find((entry) => String(entry.id) === 'ses_acp');
|
|
128
|
+
expect(row).toBeDefined();
|
|
129
|
+
// The mark's own key: `opencode2` draws opencode's art, and the label names
|
|
130
|
+
// which of the two it is.
|
|
131
|
+
expect(row?.harness).toBe('opencode');
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
test('a recorded chat is named by its first prompt, not left Untitled', async () => {
|
|
135
|
+
const folderId = await registerFolder(project);
|
|
136
|
+
await saveHarnessSession({
|
|
137
|
+
sessionId: 'ses_named', harness: 'claude', agentSessionId: 'ses_named', cwd: project,
|
|
138
|
+
});
|
|
139
|
+
// The agent writes no session file, so this stored name is the ONLY thing
|
|
140
|
+
// that can name the row — before it, every recorded chat read `Untitled`
|
|
141
|
+
// for its whole life (measured an hour after a claude chat's first prompt).
|
|
142
|
+
await notePromptTitle('ses_named', 'explain the release process');
|
|
143
|
+
|
|
144
|
+
const row = (await folderSessions(folderId)).find((entry) => String(entry.id) === 'ses_named');
|
|
145
|
+
expect(row?.title).toBe('Explain the release process');
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
test('the agent’s own title outranks the stored prompt', async () => {
|
|
149
|
+
const folderId = await registerFolder(project);
|
|
150
|
+
await saveHarnessSession({
|
|
151
|
+
sessionId: 'ses_agent_named', harness: 'claude', agentSessionId: 'ses_agent_named', cwd: project,
|
|
152
|
+
});
|
|
153
|
+
await notePromptTitle('ses_agent_named', 'a raw first prompt');
|
|
154
|
+
await noteAgentTitle('ses_agent_named', 'release planning');
|
|
155
|
+
|
|
156
|
+
const row = (await folderSessions(folderId)).find((entry) => String(entry.id) === 'ses_agent_named');
|
|
157
|
+
expect(row?.title).toBe('Release planning');
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
test('a recorded chat with no name at all falls back to its creation stamp', async () => {
|
|
161
|
+
const folderId = await registerFolder(project);
|
|
162
|
+
await saveHarnessSession({
|
|
163
|
+
sessionId: 'ses_nameless', harness: 'claude', agentSessionId: 'ses_nameless', cwd: project,
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
const row = (await folderSessions(folderId)).find((entry) => String(entry.id) === 'ses_nameless');
|
|
167
|
+
// The same default an omp session with no name gets — and it is derived from
|
|
168
|
+
// the row's `created_at`, never from `new Date()`, so a revalidation does not
|
|
169
|
+
// re-stamp the title (`pendingSessionTitle`'s documented reason).
|
|
170
|
+
expect(row?.title.startsWith('New Session - ')).toBe(true);
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
test('an omp session keeps the omp default, and does not appear twice', async () => {
|
|
174
|
+
const folderId = await registerFolder(project);
|
|
175
|
+
await writeOmpSession('omp-1', '2026-11-06T00:00:00.000Z');
|
|
176
|
+
// omp rows are persisted too (their resume id lives there), so the ACP
|
|
177
|
+
// listing must exclude them or one chat would draw two rows.
|
|
178
|
+
await saveHarnessSession({
|
|
179
|
+
sessionId: 'omp-1', harness: 'omp-rpc', agentSessionId: '', cwd: project,
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
const sessions = await folderSessions(folderId);
|
|
183
|
+
const matches = sessions.filter((entry) => String(entry.id) === 'omp-1');
|
|
184
|
+
expect(matches).toHaveLength(1);
|
|
185
|
+
expect(matches[0].harness).toBe('omp-rpc');
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
test('an omp (ACP) chat is listed ONCE, though the record and the scan both know it', async () => {
|
|
189
|
+
const folderId = await registerFolder(project);
|
|
190
|
+
// `omp-acp` launches `omp acp`: the same agent, so it writes a `.jsonl` file
|
|
191
|
+
// the scan finds AND a `harness_sessions` row the ACP listing reads. Both
|
|
192
|
+
// producers answering for one chat drew TWO sidebar rows under one id
|
|
193
|
+
// (reported: `01a1af9c-…` listed twice after a send on `omp (ACP)`).
|
|
194
|
+
await writeOmpSession('omp-acp-1', '2026-11-06T00:00:00.000Z');
|
|
195
|
+
await saveHarnessSession({
|
|
196
|
+
sessionId: 'omp-acp-1', harness: 'omp-acp', agentSessionId: 'omp-acp-1', cwd: project,
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
const sessions = await folderSessions(folderId);
|
|
200
|
+
const matches = sessions.filter((entry) => String(entry.id) === 'omp-acp-1');
|
|
201
|
+
expect(matches).toHaveLength(1);
|
|
202
|
+
// The SCAN's row wins: it carries the title the transcript gave it, and the
|
|
203
|
+
// record's row only holds what Kabmo stored (the first prompt or the agent's
|
|
204
|
+
// own title — see `session-title.server.ts`).
|
|
205
|
+
expect(matches[0].title).not.toBe('Untitled');
|
|
206
|
+
expect(matches[0].harness).toBe('omp-acp');
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
test('the ACP row is interleaved by time, not appended to the end', async () => {
|
|
210
|
+
const folderId = await registerFolder(project);
|
|
211
|
+
await writeOmpSession('old-1', '2026-01-01T00:00:00.000Z');
|
|
212
|
+
await writeOmpSession('old-2', '2026-01-02T00:00:00.000Z');
|
|
213
|
+
// Newer than both omp files: it belongs at the TOP, which is what "Show
|
|
214
|
+
// more" hid when the ACP rows were concatenated after the sorted bucket.
|
|
215
|
+
await saveHarnessSession({
|
|
216
|
+
sessionId: 'ses_new', harness: 'claude', agentSessionId: 'ses_new', cwd: project,
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
const sessions = await folderSessions(folderId);
|
|
220
|
+
expect(String(sessions[0]?.id)).toBe('ses_new');
|
|
221
|
+
expect(sessions).toHaveLength(3);
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
test('a chat whose cwd is outside every folder is filed under none', async () => {
|
|
225
|
+
const folderId = await registerFolder(project);
|
|
226
|
+
await saveHarnessSession({
|
|
227
|
+
sessionId: 'ses_elsewhere', harness: 'pi', agentSessionId: 'ses_elsewhere',
|
|
228
|
+
cwd: join(root, 'somewhere-else'),
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
const sessions = await folderSessions(folderId);
|
|
232
|
+
expect(sessions.map((entry) => String(entry.id))).not.toContain('ses_elsewhere');
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
test('a harness this build no longer knows draws no mark, not a wrong one', async () => {
|
|
236
|
+
const folderId = await registerFolder(project);
|
|
237
|
+
await saveHarnessSession({
|
|
238
|
+
sessionId: 'ses_gone', harness: 'some-future-agent', agentSessionId: 'ses_gone', cwd: project,
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
const sessions = await folderSessions(folderId);
|
|
242
|
+
const row = sessions.find((entry) => String(entry.id) === 'ses_gone');
|
|
243
|
+
expect(row).toBeDefined();
|
|
244
|
+
// Absent, not fabricated: `HarnessGlyph` renders nothing for an unknown id.
|
|
245
|
+
expect(row?.harness).toBeUndefined();
|
|
246
|
+
});
|
|
247
|
+
});
|