Skip to content

Commit a89daa6

Browse files
reid-spencerclaude
andcommitted
Fix duplicate message logging in from and repeat commands
`Commands.runFromConfig` was calling `handleCommandResult(result)` internally and also returning the same result to its caller. The outer driver (`handleCommandRun`) then logged the result a second time, producing every message twice. Verified on the reactive-bbq model: 8 completeness warnings became 4 after the fix — exactly halved, confirming uniform doubling. The peer helpers `runCommandWithArgs` and `runCommandNamed` already follow the convention that the outer driver owns logging; `runFromConfig` was the outlier. Removing the internal call aligns them. Affects both `FromCommand` and `RepeatCommand` (the latter also calls `runFromConfig`). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3d8769d commit a89daa6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • commands/shared/src/main/scala/com/ossuminc/riddl/commands

commands/shared/src/main/scala/com/ossuminc/riddl/commands/Commands.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ object Commands:
157157
end if
158158
}
159159
}
160-
handleCommandResult(result)
161160
result
162161
end runFromConfig
163162

0 commit comments

Comments
 (0)