I found the problem in the source code, the solution must be developed by C::B developers:
You are starting (osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script ""' -e 'end tell' sleep 80024506), then you run a ps to find the sleep number. That's wrong!
1. osascript executes the Terminal and activates
2. osascript executes the sleep outside the Terminal and without tty.
501 24425 1 0 4:10PM ?? 0:00.01 sleep 80023153
3. Execute a ps to find the sleep and get the tty fails.
I tried to change to change in Settings -> Environment -> Terminal to launch ... to a custom script that opens Terminal and attach correctly the sleep, but still C::B refuses to find/attach to the tty.
ttys007 24873 -bash
ttys007 24874 sleep 80024506
And now, what else I can do
?