Skip to content

fix: add a plan execution workflow for gemini-invoke workflow#465

Open
cynthialong0-0 wants to merge 5 commits intomainfrom
refactor/invoke-396-triage
Open

fix: add a plan execution workflow for gemini-invoke workflow#465
cynthialong0-0 wants to merge 5 commits intomainfrom
refactor/invoke-396-triage

Conversation

@cynthialong0-0
Copy link
Collaborator

Overview

This PR adds a plan execution workflow which will execute the approved plans generated from gemini-invoke workflow. The new workflow will have content write permission which resolve the permission issues in the invoke workflow. This workflow will be triggered when /approve is mentioned in the comments, and should refuse to execute if no plan being found in the issue comments.

Changes

  • Update gemini-invoke workflow to only have steps for action planning.
  • Add gemini-plan-execute workflow for plan execution: trigger on /approve comment. If no plan of action exist in the issue, nothing with be executed. If there is a plan of action found, it will be executed. If there are multiple plan of action, it will execute the latest one.
  • Update evals to include plan-execute workflow

Fixes #382
Fixes #396

@gemini-cli
Copy link
Contributor

gemini-cli bot commented Feb 17, 2026

🤖 Hi @cynthialong0-0, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

Copy link
Contributor

@gemini-cli gemini-cli bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

## 📋 Review Summary

This PR successfully implements a two-stage workflow (plan vs. execute) to improve security and control over the Gemini agent's actions. The architectural separation is sound and the new plan-execute workflow is well-structured with appropriate permissions. However, there are critical configuration issues pointing to a personal fork that must be resolved before merging.

🔍 General Feedback

  • Critical Configuration: Ensure all uses directives point to the canonical google-github-actions/run-gemini-cli repository, not a personal fork.
  • User Experience: The instructions provided by the agent in the invoke phase must match the commands expected by the dispatch workflow (e.g., @gemini-cli /approve).
  • Context Handling: Consider capturing additional context provided during the approval step to allow users to provide final instructions or caveats to the execution agent.

@cynthialong0-0 cynthialong0-0 requested review from alpoz11 and removed request for R2wenD2, alpoz11, benw307, haroonc and leehagoodjames February 17, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

gemini-cli fails to create PR after approval gemini-invoke workflow contents permission issue

2 participants

Comments