• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / neokai / 25617095228

10 May 2026 01:58AM UTC coverage: 82.689% (-0.009%) from 82.698%
25617095228

push

github

web-flow
feat: add SpaceWorkflowSummary and listWorkflowSummaries to reduce payload size (#1840)

* feat: add SpaceWorkflowSummary and listWorkflowSummaries to reduce payload size

- Add SpaceWorkflowSummary type (lightweight: id, name, description, tags,
  templateName, templateHash, disabled, nodeCount, completionAutonomyLevel,
  createdAt, updatedAt — no nodes/channels/gates/layout).
- Implement listWorkflowSummaries() in repository + manager with node-count
  subquery instead of SELECT * + N+1 fetchNodes.
- Update spaceWorkflow.list RPC to return summaries; revert
  spaceWorkflow.listBuiltInTemplates to full workflows (only 5 items).
- Update space-agent-tools, neo-query-tools, and web spaceStore to use
  summaries. Add fetchWorkflowDetail() with deduplication + caching for
  on-demand full workflow retrieval.
- Fix stale hardcoded workflow ID in space-agent-tools schema.
- Update all affected components (SpaceTaskPane, useRuntimeCanvasData,
  use-run-gate-summaries, SpaceConfigurePage, SpaceAgentList, etc.) to
  fetch full workflows on demand.
- Update tests: add fetchWorkflowDetail mocks, async waitFor patterns,
  remove obsolete workflow-reference blocking modal assertions.

* fix: address review feedback P1-P3

- P1: Add templateHash to workflowToSummary() so event-driven summaries
  preserve the hash field.
- P2: Evict workflowDetailCache on spaceWorkflow.updated and
  spaceWorkflow.deleted events to prevent stale cached data.
- P3: Add stale-cancellation guards to all four fetchWorkflowDetail
  useEffect hooks (SpaceConfigurePage, useRuntimeCanvasData,
  use-run-gate-summaries, SpaceTaskPane).

* fix: address review feedback round 2

- Reset workflowEditId/editingWorkflow when space changes in
  SpaceConfigurePage to prevent editing stale cross-space data.
- Update E2E space-happy-path-pipeline to use spaceWorkflow.list for
  ID lookup + spaceWorkflow.get for full node data, since list now
  returns summaries without nodes.

* fix: clear stale state ... (continued)

8232 of 11438 branches covered (71.97%)

Branch coverage included in aggregate %.

130 of 165 new or added lines in 12 files covered. (78.79%)

1 existing line in 1 file now uncovered.

64208 of 76167 relevant lines covered (84.3%)

289.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.74
/packages/web/src/components/MessageInput.tsx


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc