Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: support Codex auth env and AUQ fallback#1978

Open
hsuperman wants to merge 2 commits into
garrytan:main from
hsuperman:fix/codex-auth-auq-fallback
Open

fix: support Codex auth env and AUQ fallback #1978
hsuperman wants to merge 2 commits into
garrytan:main from
hsuperman:fix/codex-auth-auq-fallback

Conversation

@hsuperman

@hsuperman hsuperman commented Jun 11, 2026

Copy link
Copy Markdown

Summary

  • load Codex auth env for non-interactive gstack Codex automation from .env, .env.local, machine-local ~/.config/recruitmagic/cli.env, and Codex env_key config
  • preserve caller shell state when sourcing bin/gstack-codex-probe
  • keep upstream AUQ failure fallback behavior after merging current main, with test coverage adjusted for interactive prose fallback vs headless blocking

Why

Codex can be installed and still fail gstack automation when the auth key only exists in a repo .env file. codex exec / codex -p need auth in the process environment, and Codex can also use a configured Azure/OpenAI env_key from ~/.codex/config.toml. The probe should mirror that reality.

This also keeps the new AskUserQuestion fallback behavior compatible with Codex-style interactive chat hosts: no AUQ tool means render the decision as prose and wait, while headless sessions still block.

Tests

  • ALL PASSED: bun test test/codex-hardening.test.ts test/resolver-ask-user-format.test.ts test/preamble-compose.test.ts test/gen-skill-docs-idempotency.test.ts
  • ALL PASSED: bun run gen:skill-docs --dry-run

hsuperman added 2 commits June 11, 2026 14:10
...llback
# Conflicts:
#	SKILL.md
#	autoplan/SKILL.md
#	benchmark-models/SKILL.md
#	benchmark/SKILL.md
#	browse/SKILL.md
#	canary/SKILL.md
#	codex/SKILL.md
#	context-restore/SKILL.md
#	context-save/SKILL.md
#	cso/SKILL.md
#	design-consultation/SKILL.md
#	design-html/SKILL.md
#	design-review/SKILL.md
#	design-shotgun/SKILL.md
#	devex-review/SKILL.md
#	document-generate/SKILL.md
#	document-release/SKILL.md
#	health/SKILL.md
#	investigate/SKILL.md
#	ios-clean/SKILL.md
#	ios-design-review/SKILL.md
#	ios-fix/SKILL.md
#	ios-qa/SKILL.md
#	ios-sync/SKILL.md
#	land-and-deploy/SKILL.md
#	landing-report/SKILL.md
#	learn/SKILL.md
#	make-pdf/SKILL.md
#	office-hours/SKILL.md
#	open-gstack-browser/SKILL.md
#	pair-agent/SKILL.md
#	plan-ceo-review/SKILL.md
#	plan-design-review/SKILL.md
#	plan-devex-review/SKILL.md
#	plan-eng-review/SKILL.md
#	plan-tune/SKILL.md
#	qa-only/SKILL.md
#	qa/SKILL.md
#	retro/SKILL.md
#	review/SKILL.md
#	scrape/SKILL.md
#	scripts/resolvers/preamble/generate-ask-user-format.ts
#	scripts/resolvers/preamble/generate-completion-status.ts
#	setup-browser-cookies/SKILL.md
#	setup-deploy/SKILL.md
#	setup-gbrain/SKILL.md
#	ship/SKILL.md
#	skillify/SKILL.md
#	spec/SKILL.md
#	sync-gbrain/SKILL.md

trunk-io Bot commented Jun 11, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /