Skip to content

Rephrase prompt for FastAPI tests planning - #224

Merged
FidelusAleksander merged 1 commit into
mainfrom
plan-prompt-update
Jul 31, 2026
Merged

Rephrase prompt for FastAPI tests planning#224
FidelusAleksander merged 1 commit into
mainfrom
plan-prompt-update

Conversation

@FidelusAleksander

Copy link
Copy Markdown
Contributor

Summary

Seems like there were frequent situations where the "Plan" mode prompt was stuck on some of the tool calls - quite often Get last terminal command. I don't know the root cause for sure but I suspect that Copilot may sometimes not realize it is in plan mode and is trying to perform actions which are not allowed there.

Here is a sped up video of me going through the exercise as normal and after ~3min I cancelled the prompt because I ran into the reported issue. I switched the prompt a bit to imply we want to be planning and it ran without an issue

copilot-plan-prompt.mov

Changes

Updated the plan mode prompt to be more explicit that we want to Plan the tests and not implement them immediately.

Closes: #214

Task list

  • For workflow changes, I have verified the Actions workflows function as expected.
  • For content changes, I have reviewed the style guide.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The new prompt is still not explicit about “plan only / do not implement yet,” which is the stated goal in the PR description for preventing Plan mode from attempting actions.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

Updates the Step 4 learning content to better steer learners to use Copilot Plan Agent for test planning (instead of attempting immediate implementation), addressing a reported “stuck in planning/tool loop” experience.

Changes:

  • Rephrases the initial Plan Agent prompt for the FastAPI tests activity to be more planning-oriented.
File summaries
File Description
.github/steps/4-step.md Adjusts the Plan Agent starter prompt to emphasize planning backend tests.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Comment thread .github/steps/4-step.md
@FidelusAleksander
FidelusAleksander merged commit 46d4968 into main Jul 31, 2026
1 check passed
@FidelusAleksander
FidelusAleksander deleted the plan-prompt-update branch July 31, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Plan Agent stuck in planning activity indefinitely

3 participants