gemini-cli - ✅(Solved) Fix Agent fails to show plan content in chat when requesting informal agreement [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#25042Fetched 2026-04-10 03:45:03
View on GitHub
Comments
0
Participants
1
Timeline
10
Reactions
0
Author
Participants
Assignees
Timeline (top)
labeled ×4added_to_project_v2 ×1assigned ×1cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #25058: feat(plan): update plan mode prompt to allow showing plan content

Description (problem / solution / changelog)

Summary

Updates the Plan Mode system prompt to explicitly allow and instruct the agent to output full plan content when seeking informal agreement or when requested by the user.

Details

This change overrides the "Minimal Output" guideline in specific planning scenarios to ensure better transparency and collaboration during the research and strategy phases. It ensures that users can see the full implementation plan before it is finalized, facilitating earlier feedback.

  • Added instruction to Plan Mode prompt regarding plan presentation.
  • Updated core prompt snapshots to reflect the change.

Related Issues

Fixes #25042

How to Validate

  1. Enter Plan Mode.
  2. Request a plan for a task.
  3. Verify the agent provides a strategy summary and offers to show (or shows) the full plan content.
  4. Run tests: npm test -w @google/gemini-cli-core -- src/core/prompts.test.ts

Pre-Merge Checklist

  • Updated relevant documentation and README (if needed)
  • Added/updated tests (if needed)
  • Noted breaking changes (if any)
  • Validated on required platforms/methods:
    • MacOS
      • npm run

Changed files

  • packages/core/src/core/__snapshots__/prompts.test.ts.snap (modified, +6/-0)
  • packages/core/src/prompts/snippets.ts (modified, +2/-1)
RAW_BUFFERClick to expand / collapse

What would you like to be added?

When the agent is in Plan Mode and seeks informal agreement on a strategy or plan, it often fails to display the actual content of the plan in the chat response. Even when the user explicitly asks to "see the plan," the agent may provide a high-level summary instead of dumping the content of the drafted plan file.

This behavior makes it difficult for the user to review the plan in the terminal and provide informed feedback or approval.

Why is this needed?

  1. The agent creates a plan file.
  2. The user asks "let me see the plan" or agent is asking for informal agreement.
  3. The agent reads the file and outputs its full content in the chat response.

Additional context

  • The agent is bound by strict Operational Guidelines such as "Minimal Output" (aim for fewer than 3 lines of text output whenever practical).
  • The Planning Workflow instructions did not explicitly mandate that the agent must print the plan content when presenting it for discussion or when requested.

extent analysis

TL;DR

The agent should be modified to output the full content of the plan file when the user requests to "see the plan" or when seeking informal agreement, despite the "Minimal Output" guideline.

Guidance

  • Review the Planning Workflow instructions to determine if there's an implicit expectation for the agent to display the plan content in certain situations.
  • Consider adding an exception to the "Minimal Output" guideline for cases where the user explicitly requests to see the plan or when the agent is seeking informal agreement.
  • Update the agent's logic to prioritize displaying the plan content over providing a high-level summary when the user asks to "see the plan".
  • Evaluate the potential impact of displaying the full plan content on the user experience and adjust the output formatting as needed to maintain clarity.

Example

No code snippet is provided due to the lack of technical details in the issue.

Notes

The solution may require balancing the "Minimal Output" guideline with the need to provide sufficient information to the user. The agent's behavior should be adjusted to prioritize clarity and user experience.

Recommendation

Apply workaround: Modify the agent's logic to display the plan content when requested, while considering the "Minimal Output" guideline and potential user experience implications. This approach allows for a more informed and interactive planning process.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - ✅(Solved) Fix Agent fails to show plan content in chat when requesting informal agreement [1 pull requests, 1 participants]