Hello,
The hidden messages should not be considered by the autonumber functionnaility. In my case, I am using them to end a lifeline at specific point of my sequence diagram.
Example:
@startuml
autonumber
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
Alice -[hidden]> Bob: Another authentication Request
Alice <-- Bob: Another authentication Response
note over Bob: Should be 3 instead of 4
@enduml
PlantUML Web Server
Thank you in advance for your help