mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-06 00:18:38 -05:00
[GH-ISSUE #597] [Bug] Action: onFinish exit code is always 0, even when command exits with non-zero code #2301
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @adriankirchner on GitHub (Jun 10, 2025).
Original GitHub issue: https://github.com/moghtech/komodo/issues/597
The onFinish callback of komodo.execute_terminal always receives code = 0, regardless of the actual exit code of the executed command.
Example
Action code
Output
Expected Behavior
onFinish should be called with the actual exit code of the command executed in the terminal (in this example: 1).
Actual Behavior
onFinish is always called with code = 0, even when the command fails with a non-zero exit code.
Impact
Error handling in automation or scripts relying on komodo.execute_terminal is currently not possible, since all commands appear to succeed.
Environment:
@ndejong commented on GitHub (Jul 27, 2025):
Worth a note - getting this resolved looks like it would have an impact on https://github.com/moghtech/komodo/issues/538 that is a feature-request to support one-shot / exiting containers too.
@mbecker20 commented on GitHub (Aug 28, 2025):
Linked commit should fix. Will be included in 1.19.2

@adriankirchner commented on GitHub (Sep 1, 2025):
The issue is fixed in 1.19.2