Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@joelim-work
Copy link
Collaborator

@joelim-work joelim-work commented Nov 1, 2025

If a command runs, it should clear existing error messages, as described in #1807 (comment). However, the clearing is currently done after the command runs, which means if the command displays some kind of message then it will be wiped out.

For example:

cmd greet echo 'hello world'

This PR changes the behavior so that clearing is done before the command is actually run, so that any messages written as a result of running the command will be displayed.

Note that some commands run silently in the background and shouldn't clear messages in the UI (e.g. hook commands or commands that are generated internally).

@joelim-work joelim-work added the fix Pull requests that fix existing behavior label Nov 1, 2025
@joelim-work joelim-work added this to the r39 milestone Nov 1, 2025
@joelim-work joelim-work merged commit 5cdb6ed into gokcehan:master Nov 1, 2025
32 checks passed
@joelim-work joelim-work deleted the silent-cmds branch November 1, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Pull requests that fix existing behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant