diff --git a/hermes_cli/main.py b/hermes_cli/main.py index 8bda836623d..5d7fec8253f 100644 --- a/hermes_cli/main.py +++ b/hermes_cli/main.py @@ -8928,6 +8928,11 @@ def _cmd_update_impl(args, gateway_mode: bool): if commit_count == 0: _invalidate_update_cache() + + # Even if origin is up to date, the fork may be behind upstream + if is_fork and branch == "main": + _sync_with_upstream_if_needed(git_cmd, PROJECT_ROOT) + # Restore stash and switch back to original branch if we moved if auto_stash_ref is not None: _restore_stashed_changes(