Skip to content

Harden IBKR gateway login readiness#84

Merged
Pigbibi merged 1 commit into
mainfrom
codex/gateway-runtime-stability-20260704
Jul 3, 2026
Merged

Harden IBKR gateway login readiness#84
Pigbibi merged 1 commit into
mainfrom
codex/gateway-runtime-stability-20260704

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • avoid repeated IBC API UI configuration when default live settings should remain unchanged
  • require a short stable API readiness window with fresh healthcheck client IDs
  • dismiss small IBKR Gateway connection-failed dialogs during login recovery

Test Plan

  • bash tests/test_*.sh
  • python3 -m py_compile 2fa_bot.py
  • actionlint .github/workflows/main.yml
  • git diff --check

Live validation

  • Hotfixed u1660 gateway and verified stable IB API readiness plus active watcher timers.

Co-Authored-By: Codex <noreply@openai.com>
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

🤖 Codex PR Review

⚠️ Review skipped: The Codex review could not be completed.

No Codex service URL or API key configured. Set CODEX_AUDIT_SERVICE_URL, ANTHROPIC_API_KEY, or OPENAI_API_KEY.

Please ensure a human reviewer checks this PR before merging.

@Pigbibi Pigbibi merged commit 93d25c5 into main Jul 3, 2026
3 checks passed
@Pigbibi Pigbibi deleted the codex/gateway-runtime-stability-20260704 branch July 3, 2026 22:34

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 28c1653d50

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

local accept_incoming="${TWS_ACCEPT_INCOMING:-}"

if [ "${IB_GATEWAY_SKIP_IBC_READ_ONLY_API_CONFIG:-yes}" = "yes" ] && [ "${read_only_api,,}" = "no" ]; then
set_ibc_config_value "ReadOnlyApi" ""

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve write API setup on fresh containers

When READ_ONLY_API is left at the compose default no, this default skip=yes branch rewrites IBC's ReadOnlyApi back to blank, so fresh/recreated Gateway settings no longer clear the Read-Only API checkbox. In this repo the compose file does not mount a persistent TWS settings volume, and full deploys recreate the container, so the rollout can pass because the readiness probe connects with readonly=True while downstream order placement remains blocked until someone fixes the UI setting manually.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant