fix(init): create start.prompt.md and fix next steps panel (#603)#649
Open
sergio-sisternes-epam wants to merge 3 commits intomicrosoft:mainfrom
Open
fix(init): create start.prompt.md and fix next steps panel (#603)#649sergio-sisternes-epam wants to merge 3 commits intomicrosoft:mainfrom
sergio-sisternes-epam wants to merge 3 commits intomicrosoft:mainfrom
Conversation
…#603) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes the apm init -> apm run start onboarding flow by ensuring a runnable starter prompt exists and updating the printed Next Steps to match the intended workflow.
Changes:
- Create
start.prompt.mdduringapm initfor non-plugin projects (without overwriting existing files). - Update the Next Steps panel to remove the unrelated
apm compilestep and direct users to editstart.prompt.md. - Update and add unit tests, and add a changelog entry for the fix.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
src/apm_cli/commands/init.py |
Creates start.prompt.md, updates Created Files output, and fixes Next Steps messaging. |
tests/unit/test_init_command.py |
Updates existing init tests and adds new coverage for the starter prompt and next-steps output. |
tests/unit/test_init_plugin.py |
Adds coverage ensuring plugin mode does not create start.prompt.md. |
CHANGELOG.md |
Adds an Unreleased “Fixed” entry describing the init onboarding fix. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #603 —
apm initshowed a Next Steps panel that directed users through an incorrect workflow. Following the instructions led to a dead end becausestart.prompt.mdwas never created andapm compilewas referenced incorrectly.Changes
1. Create
start.prompt.mdduring initstart.prompt.mdwith frontmatterstart.prompt.mdfiles are never overwritten--plugin) does NOT createstart.prompt.mdencoding="utf-8"for Windows compatibility2. Fix Next Steps panel
Compile agent context: apm compile(unrelated toapm run)Edit your prompt: start.prompt.md3. Updated Created Files table
start.prompt.mdnow appears in the Created Files table when generatedFiles Changed
src/apm_cli/commands/init.py— Createstart.prompt.md, fix next steps, update files tabletests/unit/test_init_command.py— 5 new tests + 4 updated teststests/unit/test_init_plugin.py— 1 new test (plugin mode doesn't create start.prompt.md)CHANGELOG.md— Add fix entryTesting
All 3795 tests pass (39/39 init-specific tests pass).