Skip to content

Fix config grep silent failure under pipefail#3

Open
Abeansits wants to merge 1 commit intomainfrom
fix/config-grep-pipefail
Open

Fix config grep silent failure under pipefail#3
Abeansits wants to merge 1 commit intomainfrom
fix/config-grep-pipefail

Conversation

@Abeansits
Copy link
Owner

Summary

  • grep for missing config keys returns exit 1, which kills the script silently under set -euo pipefail
  • Added || true to all 4 config-parsing grep lines in query.sh
  • Missing keys now gracefully fall back to hardcoded defaults as intended

Test plan

  • Verified with config containing only provider=codex (no model keys) — script runs end-to-end
  • Verified with full config — all values parsed correctly
  • Codex returns response successfully after fix

🤖 Generated with Claude Code

grep returns exit 1 when a key isn't found in the config file,
which kills the script under set -euo pipefail. Added || true to
all 4 config-parsing grep lines so missing keys gracefully fall
back to defaults.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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