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> </p>
{Object.entries(nonHiddenArgs || {}) {Object.entries(nonHiddenArgs || {})
.filter( .filter(
([_, argConfig]) => ([argName, argConfig]) =>
isReviewing || isReviewing ||
argName === currentArgument?.name ||
argConfig.skip === false || argConfig.skip === false ||
(typeof argConfig.required === 'function' (typeof argConfig.required === 'function'
? argConfig.required(commandBarState.context) ? argConfig.required(commandBarState.context)