Skip to content

fix(cli): preserve requested cwd for runner-spawned sessions#315

Merged
tiann merged 1 commit intotiann:mainfrom
ROOOO:pr/runner-spawn-cwd
Mar 19, 2026
Merged

fix(cli): preserve requested cwd for runner-spawned sessions#315
tiann merged 1 commit intotiann:mainfrom
ROOOO:pr/runner-spawn-cwd

Conversation

@ROOOO
Copy link
Contributor

@ROOOO ROOOO commented Mar 19, 2026

Summary

  • let runner-spawned sessions keep the directory explicitly requested by the user
  • stop an inherited HAPI_INVOKED_CWD value from overriding an explicit spawn cwd
  • cover the precedence rule with tests

Testing

  • bunx vitest run src/utils/spawnHappyCLI.test.ts

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings

  • None.

Summary
Review mode: initial. No issues found in modified lines. Residual risk: bun-compiled path not exercised here; unit coverage only.

Testing

  • Not run (automation)

@tiann tiann merged commit 397ef35 into tiann:main Mar 19, 2026
2 checks passed
@ROOOO ROOOO deleted the pr/runner-spawn-cwd branch March 19, 2026 13:17
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