Skip to content

Review mode for agent edits: accept, reject, or request changes #9075

Open

Description

@CaroFernando

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

Activity

  1. CaroFernando commented on Oct 21, 2026

    @CaroFernando
    ContributorAuthor

    /take

  2. github-actions commented on Oct 21, 2026

    @github-actions
    Contributor

    👋 Thanks for your first contribution to Texera, @CaroFernando!

    If you're looking for a good place to start, browse issues labeled starter-task; they're scoped to be approachable for newcomers.

    You can drive common housekeeping yourself by commenting one of these commands on its own line:

    • Issues. Comment /take to assign an open issue to yourself, or /untake to release it. You can find unclaimed work with the search filter is:issue is:open no:assignee.
    • Sub-issues. To link issues into a parent/child hierarchy, comment /sub-issue #5166 #5222 on the parent to attach those children (or /unsub-issue #5166 #5222 to detach them). From a child issue, comment /parent-issue #5166 to set its parent, or /unparent-issue to clear it (the current parent is detected automatically). References may be written as #5166 or as a bare 5166; cross-repository references are not supported.
    • Pull requests (author only). Comment /request-review @user to request a review from someone, or /unrequest-review @user to withdraw that request.

    Each command must match exactly: /take this will not work, only /take does. For the full contribution flow, see CONTRIBUTING.md.

  3. github-actions commented on Oct 21, 2026

    @github-actions
    Contributor

    👋 Thanks for opening this issue, @CaroFernando!

    It looks like the issue description doesn't quite follow our template yet:

    • This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.

    Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.

    You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions