Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up the "Ask Cody to Explain" functionality in terminal #7254

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

ykdojo
Copy link
Contributor

@ykdojo ykdojo commented Feb 26, 2025

Specifically, Process options should not be included if it's empty.

Before:
image

After:
image

Test plan

Manually test it.

@ykdojo ykdojo requested review from abeatrix and mrnugget February 26, 2025 17:49
@@ -46,7 +46,7 @@ export async function executeExplainOutput(

let prompt = template.replaceAll('{{PROCESS}}', promptArgs.name).replaceAll('{{OUTPUT}}', output)
const options = promptArgs.creationOptions
if (options) {
if (options && options.toString() !== '{}') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add the language code to the markdown block in the template below?

\n\`\`\`shell
{{OUTPUT}}
\`\`\`

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you clarify what you mean by the language code, exactly?

Copy link
Contributor

Choose a reason for hiding this comment

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

@ykdojo ykdojo requested review from kalanchan and unknwon February 26, 2025 20:17
@ykdojo ykdojo enabled auto-merge (squash) February 26, 2025 20:18
@ykdojo ykdojo merged commit b1dc271 into main Feb 26, 2025
21 checks passed
@ykdojo ykdojo deleted the clean-up-terminal-explanation-2 branch February 26, 2025 22: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.

3 participants