Skip to content

Sync 1: Isolate Bun startup #37

Closed

Description

@thisguymartin

Priority 1 of 5 runner fixes.

The current pstack-runner starts Bun directly. Project .env files, Bun configuration, and inherited startup options can affect it before its routing and credential checks run.

Port upstream's startup isolation: clear BUN_OPTIONS and NODE_OPTIONS, disable automatic env-file loading, and start Bun without project configuration. Preserve normal parent-provided variables, including provider keys and parent identity. Keep the existing explicit-deadline semantics and cancellation behavior.

Cover individual and combined startup inputs with synthetic fixtures. Verify that project preloads never execute, project dotenv values do not reach the runner, and intentionally exported variables still reach the right child.

Sources:

Files: runner/pstack-runner, the new entry module if needed, and launcher regression tests. These paths are under plugins/pstack/skills/poteto-mode/scripts/.

Done when

  • The focused regression checks pass, along with bash scripts/check.sh.
  • The exact candidate is installed and the changed behavior passes from each affected parent app. Record the version, action, and observed result in the PR. Keep it draft until that evidence is complete.

Activity

  1. added
    in syncUpstream changes selected to sync into pstack-flex
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in syncUpstream changes selected to sync into pstack-flex

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions