Redundant upgrade checks for an upgrade
segment if the version is the latest
#5825
Closed
lewis-yeung
started this conversation in
General
Replies: 1 comment 1 reply
-
@lewis-yeung the fix is to add the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since v24, the upgrade check is always truly performed for an
upgrade
segment, so if OMP is on the latest version, the segment will be disabled and will not be cached, thus causing redundant upgrade checks and increasing the latency significantly when spawning new prompts.Related code:
oh-my-posh/src/segments/upgrade.go
Lines 26 to 38 in 472bd6f
oh-my-posh/src/config/segment.go
Lines 127 to 142 in 472bd6f
Beta Was this translation helpful? Give feedback.
All reactions