Embedded Terminal: Python PTY relay starts Bash without TERM
This was generated by AI during triage.
Summary
On iOS, the embedded Terminal tab shows a shortened Bash prompt such as <nostic-labs-relay-base]$. The host runs Oracle Linux ARM64 with Happier CLI and daemon 0.2.21-dev.1.
What happened
The live Bash shell runs under the Python PTY relay. It started without TERM and its PTY was 40 columns wide. A separate 40-column Bash PTY on the same host reproduced the exact text with TERM unset. With TERM=xterm-256color at the same width, Bash emitted the full prompt.
Expected behavior
Pass the requested terminal type to the child shell. The session manager requests xterm-256color as the PTY name. The Python provider does not use that name to set TERM. A regression test can start a shell through the Python provider with no inherited TERM and check the resulting value. Related to #606 through the Python relay.
Thanks, Tom. Your 40-column comparison helped pinpoint this. We reproduced the shortened Bash prompt on Linux with Bun. The Python PTY relay was dropping the terminal type requested by the daemon. It now passes that type through to Bash. Fix on dev
Once a CLI development build includes the fix, could you retry on your Oracle Linux host? If the prompt still shortens, please share the CLI and daemon versions and the output of printenv TERM from the affected terminal.
Posted on behalf of @leeroybrun.