Skip to content

Commit 577c982

Browse files
suryaiyer95claude
andcommitted
fix: guard against double-submit during credential validation
Check `validating()` state before calling `submit()` on Enter keypress to prevent concurrent validation requests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7be166f commit 577c982

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/opencode/src/cli/cmd/tui/component/dialog-altimate-login.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export function DialogAltimateLogin() {
4444
evt.preventDefault()
4545
}
4646
if (evt.name === "return") {
47+
if (validating()) return
4748
submit()
4849
}
4950
})

0 commit comments

Comments
 (0)