Make proxy config writing idempotent - #110
Conversation
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
Hapi reproduction: pre-seeded proxy configuration still causes a duplicate keyHapi recently encountered a related failure after applying a workaround for the protected Hapi PR #1667 was merged with a workaround that writes this configuration to a trusted [model_providers.codex-action-responses-proxy]
stream_max_retries = 10
stream_idle_timeout_ms = 600000The next Hapi PR, #1668, failed with: The workflow run is available here: https://github.com/tiann/hapi/actions/runs/32555286205
This is not a second Action invocation. The existing provider section was written by the calling workflow before the Action started. Would PR #110’s Related reports: |
Summary
config.tomlwrite-proxy-configtwice against the samecodex-homeand verifies only one provider selector/table remainsWhy
Running
openai/codex-action@v1twice in the same job can currently append duplicate generated TOML keys to$CODEX_HOME/config.toml, causing the secondcodex execinvocation to fail withduplicate key model_provider.Verification
pnpm test./node_modules/.bin/tsc --noEmitnode --test test/*.test.mjs