mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 12:37:04 -04:00
[PR #268] [CLOSED] feat: queue input for running automation flows #283
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/268
Author: @mason5052
Created: 4/15/2026
Status: ❌ Closed
Base:
feature/next-release← Head:codex/issue-192-automation-queue📝 Commits (4)
395d02cfeat: queue automation input while runningda627b5fix: harden queued automation stop handlingc17fde4fix: stop queued input before task registration2c28818fix: clarify queued input cancellation📊 Changes
5 files changed (+630 additions, -57 deletions)
View changed files
📝
backend/pkg/controller/flow.go(+116 -28)➕
backend/pkg/controller/flow_test.go(+471 -0)📝
frontend/src/features/flows/flow-form.tsx(+30 -23)📝
frontend/src/features/flows/messages/flow-automation-messages.tsx(+11 -3)📝
frontend/src/providers/flow-provider.tsx(+2 -3)📄 Description
Summary
RunningStopavailable in the UI and add queue-focused backend testsProblem
Issue #192 asks for tighter assistant and automation integration. A smaller but immediately useful part of that request is use case 2: submit new instructions while automation is already running without interrupting the current task.
Today PentAGI blocks that path in two places.
Runningand only offersStopSolution
Implement the queueing path for running automation flows without expanding scope into assistant handoff or file injection yet.
Runningand showsStopalongsideSubmitThis intentionally targets use case 2 from #192. Assistant-generated plans, structured handoff, and file or data-source injection can still follow in later work.
User Impact
Users can add follow-up instructions to a running automation flow without interrupting the active task. The current task continues, the new instruction is queued for the next handoff point, and
Stopremains available when they do want to cancel execution.Test Plan
go test ./pkg/controller/...npx eslint src/features/flows/flow-form.tsx src/features/flows/messages/flow-automation-messages.tsx src/providers/flow-provider.tsxnpm run buildgit diff --checkNotes
npm run lintstill fails on this Windows host because of pre-existing unrelated frontend lint errors in files such assrc/components/shared/markdown.tsx,src/components/ui/textarea.tsx, and several existing flow/search components. The files changed in this PR pass the targetedeslintcommand above.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.