Skip to content

Add/improve prompts to encourage filing bugs - #5848

Merged
DanTup merged 3 commits into
masterfrom
add-prompts
Dec 17, 2025
Merged

DanTup merged 3 commits into
masterfrom
add-prompts

Conversation

@DanTup

@DanTup DanTup commented Dec 17, 2025

Copy link
Copy Markdown
Member

This adds/tweaks prompts to encourage users to file bugs for:

  • Config changes < 1s after activation (this causes all services to be restarted and is not expected)
  • Flutter daemon terminations (upgrade from info to warn, and explicitly suggest filing in the text)

This is one of the top reasons for an extension restart.
…ers a restart

In the past we had a lot of failed startups because flags intended for `flutter run` were added to `flutterAdditionalArgs` and passed here (instead of going in `flutterRunAdditionalArgs`). This will help identify if that's happening here without leaking those args.
@DanTup DanTup added this to the v3.126.0 milestone Dec 17, 2025
@DanTup DanTup added the is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix. label Dec 17, 2025
@DanTup
DanTup requested a review from Copilot December 17, 2025 18:54
@DanTup

DanTup commented Dec 17, 2025

Copy link
Copy Markdown
Member Author

@codex review

/gemini review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@gemini-code-assist

Copy link
Copy Markdown

Thanks for invoking /gemini review! I'm starting the code review now. Please note that for future interactions, you can tag me directly using @gemini-code-assist.

@DanTup

DanTup commented Dec 17, 2025

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds prompts to encourage users to file bug reports for two scenarios that indicate potential issues: Flutter daemon terminations and SDK path changes during startup.

Key Changes:

  • Upgraded Flutter daemon termination notifications from info to warning level with explicit bug filing instructions
  • Added detection for SDK path changes within 1 second of startup, prompting users to file bugs about this performance-impacting behavior
  • Tracked whether the Flutter daemon spawned with additional arguments to provide better diagnostic context

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/extension/flutter/flutter_daemon.ts Added tracking of additional args at spawn time, upgraded termination prompt to warning severity with explicit bug filing request, and included additional args status in restart data
src/extension/extension.ts Added import for os and showLogAction, fixed spelling error in comment, and implemented SDK path change detection during startup with user prompt to file bugs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Please file an issue at https://github.com/Dart-Code/Dart-Code/issues/new?template=BLANK_ISSUE&title=SDK%20path%20changed%20during%20startup

${ringLogContents.split("\n").filter((l) => l.includes("[General]") || l.includes("[Warn]") || l.includes("[Error]")).join("\n")}
`.trim();

Copilot AI Dec 17, 2025

Copy link

Choose a reason for hiding this comment

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

The logContents string has inconsistent indentation. The template literal starts with proper indentation, but the body content has excessive leading whitespace that will be preserved in the output. This makes the log file harder to read and looks unprofessional.

Suggested change
`.trim();
`.trim();

Copilot uses AI. Check for mistakes.
@DanTup

DanTup commented Dec 17, 2025

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@DanTup

DanTup commented Dec 17, 2025

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@DanTup
DanTup merged commit 6f75846 into master Dec 17, 2025
24 checks passed
@DanTup
DanTup deleted the add-prompts branch December 17, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

is enhancement An enhancement or improvement that should be listed in release notes but is not a bug fix.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants