Skip to content

Comments

Fix host provider terminal prompt in desktop app#273

Merged
Mng-dev-ai merged 1 commit intomainfrom
fix/desktop-host-terminal-prompt
Feb 22, 2026
Merged

Fix host provider terminal prompt in desktop app#273
Mng-dev-ai merged 1 commit intomainfrom
fix/desktop-host-terminal-prompt

Conversation

@Mng-dev-ai
Copy link
Owner

Summary

  • Configure sandbox .bashrc with custom PS1 (user@sandbox-id:\w$) and .bash_profile to source it on macOS login shells
  • Set USER=user and HOSTNAME=sandbox-id in PTY and command environments instead of leaking host macOS username
  • Desktop terminal now shows user@a79f63d6:~$ instead of bare bash-3.2$

Test plan

  • Launch desktop app, create a chat with host provider
  • Open terminal — verify prompt shows user@<id>:~$
  • Run whoami — should show user
  • Run pwd — should show ~ or the sandbox home
  • Verify web app host provider terminal still works as before

The host provider's PTY on desktop exposed the raw macOS bash-3.2 prompt
and host username instead of a sandbox-like environment. Configure proper
PS1, .bash_profile, USER, and HOSTNAME so the terminal shows
"user@sandbox-id:~$" consistent with the containerized web experience.
@Mng-dev-ai Mng-dev-ai merged commit 7dc0463 into main Feb 22, 2026
1 of 2 checks passed
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.

1 participant