CaroFernando opened a new issue, #9075:
URL: https://github.com/apache/texera/issues/9075
### Feature Summary
The agent applies every workflow edit (`addOperator`, `modifyOperator`,
`deleteOperator`) as soon as it makes it: the change is saved and shown on the
canvas mid-run. Users can only react after several edits have stacked up, and
there is no way to undo a run as a unit or tell the agent what to fix
(requested in #8682).
This adds an optional **review mode**: the agent runs as today, and when a
run ends with the workflow changed, the user reviews the change and chooses
**Accept all**, **Reject all**, or **Request changes**.
Design discussion: #8931
### Proposed Solution or Design
| Aspect | Decision |
|---|---|
| Setting | Per agent: `editApprovalMode: "auto" \| "review"`, default
`auto` (today's behavior) |
| Granularity | One review per run, all or nothing (edits depend on each
other) |
| Request changes | A normal chat message sent while a review is pending;
the review always compares to the last accepted workflow |
| While pending | Canvas editing is locked; stopped or failed runs that left
edits are reviewable too |
| Reject | Restores and saves the workflow from before the review |
| Canvas | Added / modified / removed operators and links are highlighted;
"Show original" previews the pre-edit workflow read-only |
```
agent run ──► edits applied ──► run ends ──► [review pending]
│ │ │
Accept all ◄──┘ │ └──► Request
changes ──► agent run (same baseline)
(keep) ▼
Reject all (restore + save
baseline)
```
Planned PRs (each keeps CI green; the first two change nothing visible until
the UI lands):
| PR | Scope |
|---|---|
| 1 | agent-service: setting, review baseline, accept / reject |
| 2 | agent-service: WebSocket events and commands for reviews |
| 3 | frontend: "Review edits" toggle, review card, canvas lock |
| 4 | frontend: readable diff, canvas highlights, "Show original" |
Related: #8682 (origin), #8931 (design discussion), #6039 (revert/redo agent
turns), #5267 (agent state persistence).
### Affected Area
Workflow UI, Other
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]