fix: require content to create workspace — no more empty submissions

Replace allowEmptySubmit/emptySubmitLabel with hasExternalContent prop
that treats GitHub items the same as text and images in submit gating.
This commit is contained in:
Mohamed Boudra
2026-04-14 17:28:31 +07:00
parent 89db6d3187
commit c80d7a8165
5 changed files with 17 additions and 46 deletions
@@ -287,7 +287,6 @@ export function WorkspaceDraftAgentTab({
serverId={serverId}
isInputActive={isPaneFocused}
onSubmitMessage={handleCreateFromInput}
allowEmptySubmit={false}
isSubmitLoading={isSubmitting}
blurOnSubmit={true}
value={draftInput.text}