Repository navigation
feat(mobile): support viewing workflow runs and history (#2032) - #2037
Merged
Merged
Conversation
PR quality triageChanged areas: area:server CLI core policy: No CLI-core policy block detected. Missing-test policy: No missing-test policy block detected. Coverage baseline policy: No coverage-baseline policy block detected. CLI core files:
Coverage policy files:
Required check plan:
Test coverage signals:
Risk notes:
Hard merge gates come from the deterministic GitHub Actions contract lanes above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #2032.
Adds mobile support for inspecting live Workflow runs and reviewing finished Workflow history:
GET /api/workflows/session-runs/:sessionId,GET /api/workflows/runs, andGET /api/workflows/runs/:sessionId/:runIdinsrc/server/publicAccess.tswhile keeping/api/workflows/:nameand all write operations desktop-only./api/workflows/runsand/api/workflows/runs/:sessionId/:runIdwith explicit allowlists insrc/server/remoteBrowserPolicy.tsso desktopscriptPath,script,logs, and unknown desktop-only fields stay on the desktop.taskType: 'local_workflow'for finished workflow notifications insrc/server/services/sessionBackgroundActivity.ts.system_notificationevents (task_started/task_progress/task_notification), reconcile stale running runs on reconnect / terminal server updates, and combine withGET /api/workflows/session-runs/:sessionId.ActivitySheet(grouped by phase heading + settled count, with agent rows for 运行中 / 已完成 / 失败 / 跳过 / 待开始, no per-workflow stop action).agent:<agentId>to/api/sessions/:id/subagents/by-agent/:agentId, reusing the existingSubagentRundetail screen.local_workflowfrom 「后台命令」 andstopTask/stopAll, and keep the main composer Stop button active while a background workflow continues after its launch turn ends.Feature Quality Contract
mobile,serversrc/server/publicAccess.test.ts,src/server/services/sessionBackgroundActivity.test.tsmobile/src/core/workflows.test.ts,mobile/src/ui/activity/workflowHistoryView.test.ts,mobile/src/core/operations.test.ts,mobile/src/core/sessionActivityModel.test.ts,mobile/src/ui/activity/subagentView.test.ts,mobile/src/ui/team/teamPlanWiring.test.ts, plus chat wiring sheet mockspublicAccess.ts,remoteBrowserPolicy.ts,sessionBackgroundActivity.ts) viabun test --coverage src/server/publicAccess.test.ts src/server/services/sessionBackgroundActivity.test.ts(81/81 pass on integrated HEAD).agent-e2e(34 mock-llm + 21 replay),chat-contract,agent-flow,server,policy, andmobilechecks run without live models; live-model smoke not run.Verification
bun run check:impact; if I claim PR-ready/full validation, I also ranbun run verify.Risk
allow-cli-core-change.allow-missing-tests.allow-coverage-baseline-change.