Make currentArg always part of header

This commit is contained in:
Pierre Jacquier
2025-06-16 13:06:13 -04:00
parent e8ab2ccbe3
commit 7e578f6d57

View File

@ -104,8 +104,9 @@ function CommandBarHeader({ children }: React.PropsWithChildren<object>) {
</p>
{Object.entries(nonHiddenArgs || {})
.filter(
([_, argConfig]) =>
([argName, argConfig]) =>
isReviewing ||
argName === currentArgument?.name ||
argConfig.skip === false ||
(typeof argConfig.required === 'function'
? argConfig.required(commandBarState.context)