Skip to content

Switch from FOUNDRY_FF_ENHANCED_UI to FOUNDRY_UI_HEADLESS_MODE - #5

Merged
mraible merged 1 commit into
mainfrom
switch-to-headless-mode
Apr 15, 2026
Merged

Switch from FOUNDRY_FF_ENHANCED_UI to FOUNDRY_UI_HEADLESS_MODE#5
mraible merged 1 commit into
mainfrom
switch-to-headless-mode

Conversation

@mraible

@mraible mraible commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Per Josh Marlow (Foundry CLI team), FOUNDRY_FF_ENHANCED_UI is a temporary feature flag that will be removed. FOUNDRY_UI_HEADLESS_MODE=true is the correct long-term env var for disabling TUI features in headless/CI environments.

Added a SessionStart hook (hooks/set-foundry-env.sh) that auto-injects FOUNDRY_UI_HEADLESS_MODE=true via CLAUDE_ENV_FILE at session start. Users no longer need to prefix deploy/release/list-deployments commands manually. The guard hook is kept as a fallback.

Updated hook logic, skills docs, use cases, and scripts. Removed all inline FOUNDRY_UI_HEADLESS_MODE=true prefixes from command examples.

174 hook tests passing. A/B tested: 5/5 deployed, avg ~5.3M tokens/run.

@mraible
mraible requested a review from a team April 15, 2026 16:13
prvn
prvn previously approved these changes Apr 15, 2026

@prvn prvn 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.

Much better env var!

@mraible
mraible enabled auto-merge (squash) April 15, 2026 22:28
Per Josh Marlow (Foundry CLI team), FOUNDRY_FF_ENHANCED_UI is a temporary
feature flag that will be removed. FOUNDRY_UI_HEADLESS_MODE=true is the
correct long-term env var for disabling TUI features in headless/CI
environments.

Added a SessionStart hook (hooks/set-foundry-env.sh) that auto-injects
FOUNDRY_UI_HEADLESS_MODE=true via CLAUDE_ENV_FILE at session start. Users
no longer need to prefix deploy/release/list-deployments commands manually.
The guard hook is kept as a fallback.

174 hook tests passing. A/B tested: 5/5 deployed.
@mraible
mraible force-pushed the switch-to-headless-mode branch from c9b9921 to e7475d9 Compare April 15, 2026 22:30
@mraible
mraible requested a review from prvn April 15, 2026 22:30
@mraible
mraible merged commit faab429 into main Apr 15, 2026
4 checks passed
@mraible
mraible deleted the switch-to-headless-mode branch April 15, 2026 22:32
mraible added a commit that referenced this pull request Apr 24, 2026
* Switch from FOUNDRY_FF_ENHANCED_UI to FOUNDRY_UI_HEADLESS_MODE

Per Josh Marlow (Foundry CLI team), FOUNDRY_FF_ENHANCED_UI is a temporary
feature flag that will be removed. FOUNDRY_UI_HEADLESS_MODE=true is the
correct long-term env var for disabling TUI features in headless/CI
environments. Updated hook, tests (171 passing), skills, use cases,
and scripts.

* Add SessionStart hook to auto-inject FOUNDRY_UI_HEADLESS_MODE

The plugin now sets FOUNDRY_UI_HEADLESS_MODE=true automatically at
session start via CLAUDE_ENV_FILE, so users never need to prefix
deploy/release/list-deployments commands manually.

- New hooks/set-foundry-env.sh (SessionStart hook)
- Updated hooks.json with SessionStart entry
- Removed FOUNDRY_UI_HEADLESS_MODE=true prefix from all docs/examples
- Guard hook kept as fallback for edge cases
- 174 hook tests passing (3 new for SessionStart)
- A/B tested: 5/5 deployed
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.

2 participants