* fix(agent): guard against multiple rpty race for same id * fix(agent): ensure pty is closed on error
codersdk
agentsdk