Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 20, 2025

Prompts were displayed as removable tags mixed with tools in the EnabledToolsIndicator, making it unclear which was selected and cumbersome to switch between them. Users had to click X to deselect, then navigate to the Tools panel to select a different prompt.

Changes

New Component: PromptSelector.jsx

  • Dropdown positioned left of file upload button in chat input area
  • Lists all available prompts with descriptions
  • Shows currently selected prompt with checkmark
  • "Clear Selection" option at top
  • Opens upward (bottom-full) to avoid obscuring input

Updated ChatArea.jsx

  • Added PromptSelector component to form layout

Updated EnabledToolsIndicator.jsx

  • Removed prompts (now shows tools only)
  • Changed label to "Active Tools:" for clarity
  • Removed selectedPrompts, togglePrompt logic

UI

Dropdown open showing available prompts:
Dropdown

Closed state with selected prompt:
Selected

Prompts are now completely separated from tools with dedicated UI for easy selection and switching.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • astral.sh
    • Triggering command: curl -LsSf REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>add a drop down or selection box near the chat input to select a custom prompt</issue_title>
<issue_description>This is different than the current setup where the the prompt looks like a tool and can be Xed out. This disabling of the prompt is not a great user experience and it would be better if there is a drop down menu showing all loaded prompts. The current one showing on top is the one that is used. </issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add dropdown menu for selecting custom prompts Add dropdown selector for custom prompts near chat input Nov 20, 2025
Copilot AI requested a review from garland3 November 20, 2025 01:32
Copilot finished work on behalf of garland3 November 20, 2025 01:32
@github-actions
Copy link

🔒 Security Scan Results

Security Scan Summary

Scan Results

Python SAST (Bandit)

⚠️ Security issues found in Python code

Recommendations

  • Review all SARIF files uploaded to GitHub Security tab
  • Address high and critical severity vulnerabilities immediately
  • Run npm audit fix and pip-audit locally to fix dependencies
  • Consider implementing additional security controls

- Refactored PromptSelector component to replace togglePrompt with removePrompts for clearing selected prompts.
- Added tests for PromptSelector to ensure correct behavior with new removePrompts functionality, including edge cases for missing functions.
- Enhanced dropdown interaction tests to cover various user scenarios.
@github-actions
Copy link

🔒 Security Scan Results

Security Scan Summary

Scan Results

Python SAST (Bandit)

⚠️ Security issues found in Python code

Recommendations

  • Review all SARIF files uploaded to GitHub Security tab
  • Address high and critical severity vulnerabilities immediately
  • Run npm audit fix and pip-audit locally to fix dependencies
  • Consider implementing additional security controls

@github-actions
Copy link

🔒 Security Scan Results

Security Scan Summary

Scan Results

Python SAST (Bandit)

⚠️ Security issues found in Python code

Recommendations

  • Review all SARIF files uploaded to GitHub Security tab
  • Address high and critical severity vulnerabilities immediately
  • Run npm audit fix and pip-audit locally to fix dependencies
  • Consider implementing additional security controls

1 similar comment
@github-actions
Copy link

🔒 Security Scan Results

Security Scan Summary

Scan Results

Python SAST (Bandit)

⚠️ Security issues found in Python code

Recommendations

  • Review all SARIF files uploaded to GitHub Security tab
  • Address high and critical severity vulnerabilities immediately
  • Run npm audit fix and pip-audit locally to fix dependencies
  • Consider implementing additional security controls

@garland3 garland3 marked this pull request as ready for review November 20, 2025 05:40
@garland3 garland3 merged commit df2191a into main Nov 20, 2025
9 checks passed
@garland3 garland3 deleted the copilot/add-custom-prompt-dropdown branch November 20, 2025 05:40
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.

add a drop down or selection box near the chat input to select a custom prompt

2 participants