[Bug] Fork command uses parent session's cwd instead of current working directory

Status Open
Reported on v2.1.238
Maintainer reply None cached
Activity 0 comments · opened Aug 21, 2026

Bug Description
repro steps:

  1. start a session in /A
  2. run /cd /B
  3. run /fork

expected: the fork's cwd is /B
actual: the fork's cwd is /A

Environment Info

  • Platform: darwin
  • Terminal: xterm-256color
  • Version: 2.1.238
  • Feedback ID: bbe74807-ae17-4abd-94f5-c160adb329cb

View original on GitHub ↗