Repository navigation
feat(ui): add workflow sessions, editor, and prompt links to the config tab - #263
alexinthesky wants to merge 7 commits into
Conversation
…ailures in the editor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ab8fedb. Configure here.
| return | ||
| } | ||
| hours := 30 * 24 | ||
| share, err := p.shareStore.CreateShare(run.SessionID, data, orgID, synthetic, &hours) |
There was a problem hiding this comment.
Share snapshot omits live run transcript
High Severity
handleWorkflowRunShare snapshots the stored session and reuses the first unexpired share for that session. Assistant output and tool results are only appended after the loop finishes, so an Open during a running run (or reuse of an early share_session link) freezes a prompt-only transcript for 30 days. The existing share_session path already merges workflowRunTranscript for this reason; this handler does not.
Reviewed by Cursor Bugbot for commit ab8fedb. Configure here.


Summary
Sessions and editor increment for the Workflows feature (#260, #261): the config tab now shows each workflow's execution sessions, opens them in the chat, edits full workflow configs, and jumps to the prompt editor. Also drops the redundant
orgIdentry field — Grafana provisions app settings per org, so a workflow always runs in the org that owns its settings.What this adds
GET /api/workflows/{name}/runs, Admin only, newest first: status, time, terminal error) with an Open button that deep-links the chat (?sessionId=).GET /api/sessions/{id}allows Admins to readworkflow-conversation sessions in their own org (the synthetic owner would otherwise make them invisible); interactive sessions stay owner-scoped — an Admin still gets 404 on another user's chat.GetSessionUnscopedadded to both stores, used only by this path.focusSkill).orgIdremoved from entries, the status API, and the editor: the workflow runs in the owning org's instance; the instance identity (org, URL, SA token) seeds from that org's requests (OrgIdentityStoreis now the single-org instance binding). The tenant payload in Consensys/w3f-observability#810 drops the field in the same change.provisioning/plugins/app.yamltoprovisioning/apps/asko11y.yaml— the legacy plugins path silently dropssecureJsonData, so the redisURL never reached the plugin in dev.RBAC statement (constitution III)
GET /api/workflowsand/api/workflows/{name}/runsisAdmin,pkg/plugin/workflow_status.goGET /api/sessions/{id})handleSessionRouter, testTestAdminMayReadWorkflowSessionsOnlyGates
go test ./pkg/...golangci-lint run ./pkg/...npm run test:cinpm run typecheck/lint/lint:standardsnpm run build/build:backend/validate:openapi/validatenpm run e2enode scripts/verify-retro-specs.mjsSpec 002 amended (Stories 9 and 10, FR-019 to FR-026, FR-001 org note); retro 111 (admin read rules 33-34), 110/114/125 (provisioning path move) updated.
Note
Medium Risk
New admin-only share endpoints expose read-only session transcripts, and org identity is now instance-scoped—workflow scheduling behavior changes for multi-org config that relied on per-entry
orgId.Overview
Adds admin APIs to inspect and open workflow runs:
GET /api/workflows/{name}/runslists recent runs (session id, status, errors), andPOST .../runs/{runId}/shareget-or-creates a read-only share for the run’s session so the Workflows tab can navigate to the shared-session view without cross-owner session reads.Org semantics are simplified:
WorkflowEntryno longer carriesorgId;OrgIdentityStoreholds a single per-instance org/URL/service-account binding seeded from the first request, and schedulers/sessions use that org everywhere.Durability fixes: Redis session blobs now round-trip
conversationTypeandworkflow; workflow list status counters are rebuilt from the run store (timeouts counted separately) so they match the runs panel after restarts.The Workflows config tab grows a full entry editor (create/edit/delete), expandable Sessions rows with Open-via-share, Edit prompt jumping to the Skills tab (
focusSkill), and surfaced errors when run listing fails. OpenAPI and specs/tasks are updated to match share-based opening and the droppedorgIdfield.Reviewed by Cursor Bugbot for commit ab8fedb. Bugbot is set up for automated code reviews on this repo. Configure here.