From d6c039eed6404372e5013dc2dda4589027159ed0 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Mon, 11 May 2026 03:19:41 +0800 Subject: [PATCH] Focus compact IBKR 2FA input field --- 2fa_bot.py | 5 ++++- tests/test_docker_compose_ports.sh | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/2fa_bot.py b/2fa_bot.py index ed93ea0..a2c8ddf 100644 --- a/2fa_bot.py +++ b/2fa_bot.py @@ -58,7 +58,10 @@ IGNORED_TITLE_KEYWORDS = ( "authenticating", ) -INPUT_CLICK_POSITION = (0.50, 0.62) +# Current IBKR Gateway TOTP prompts place the code field in the upper half of +# the compact dialog. Keep the click centered on the text field instead of the +# button/link area below it. +INPUT_CLICK_POSITION = (0.50, 0.40) # ================================================= logging.basicConfig( diff --git a/tests/test_docker_compose_ports.sh b/tests/test_docker_compose_ports.sh index 5b35cca..9c43401 100644 --- a/tests/test_docker_compose_ports.sh +++ b/tests/test_docker_compose_ports.sh @@ -41,3 +41,5 @@ grep -Fq ' - JAVA_HEAP_SIZE=${JAVA_HEAP_SIZE:-512}' "$compose_file" grep -Fq ' - IB_GATEWAY_PARALLEL_GC_THREADS=${IB_GATEWAY_PARALLEL_GC_THREADS:-2}' "$compose_file" grep -Fq ' - IB_GATEWAY_CONC_GC_THREADS=${IB_GATEWAY_CONC_GC_THREADS:-1}' "$compose_file" grep -Fq ' - ACCEPT_API_FROM_IP=${ACCEPT_API_FROM_IP:?Set ACCEPT_API_FROM_IP to your Cloud Run egress subnet or connector CIDR}' "$compose_file" + +grep -Fq 'INPUT_CLICK_POSITION = (0.50, 0.40)' "$repo_dir/2fa_bot.py"