Skip to content

is_foreground=true does not set environment variables #427

@uri

Description

@uri

Defect

Make sure that these boxes are checked before submitting your issue -- thank you!

  • Included the relevant configuration snippet
  • Included the relevant process-compose log (log location: process-compose info)
  • Included a [Minimal, Complete, and Verifiable example] (https://stackoverflow.com/help/mcve)

Version of process-compose:

Process Compose
Version:        v1.85.0
Commit:         5c346e3
Date (UTC):     2025-12-05T22:49:46Z
License:        Apache-2.0
Discord:        https://discord.gg/S4xgmRSHdC
Author:         Eugene Berger

OS environment:

macOS Sequoia 15.5

Steps or code to reproduce the issue:

  1. Run process-compose with the linked configuration.
  2. F7 to execute the foreground process (test_foreground)

Expected result:

λ process-compose
global is hello
local is world

Actual result:

λ process-compose
global is
local is

process-compose.yaml minimal reproduction:

environment:
  - "ENVGLOBAL=hello"

processes:
  test_foreground:
    command: |
      echo global is "$$ENVGLOBAL"
      echo local is "$$ENVLOCAL"
      sleep 60
    environment:
      - "ENVLOCAL=world"
    is_foreground: true
  test:
    command: |
      echo global is "$$ENVGLOBAL"
      echo local is "$$ENVLOCAL"
      sleep 60
    environment:
      - "ENVLOCAL=world"
    is_foreground: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdoneDone, awaiting release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions