Web UI - Terminal no longer sources .bashrc which doesn't load colors/aliases/history settings/etc #8235

Open
opened 2026-02-16 18:09:29 -05:00 by yindo · 1 comment
Owner

Originally created by @jeremyakers on GitHub (Feb 1, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

I noticed that one of the updates killed the color codes in the Web UI terminal. I don't remember exactly which version this changed, but I think it was somewhere around 1.1.40 (It was initially working as expected on 1.1.3x versions. I think the last version I remember this working correctly was 1.1.36)

Image

Doing some digging, I also noticed that the aliases I have configured in my ~/.bashrc file are also not being loaded, so I suspect something changed in a recent update that caused the Web Terminal to not source ~/.bashrc

When I manually source ~/.bashrc - the colors are back again.

Plugins

None

OpenCode version

1.1.48

Steps to reproduce

  1. Open WebUI
  2. Open Terminal pane
  3. Notice no colors. Check aliases, history settings, notice nothing from ~/.bashrc was loaded.

Screenshot and/or share link

See above

Operating System

Ubuntu 22.04

Terminal

Web UI

Originally created by @jeremyakers on GitHub (Feb 1, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description I noticed that one of the updates killed the color codes in the Web UI terminal. I don't remember exactly which version this changed, but I think it was somewhere around 1.1.40 (It was initially working as expected on 1.1.3x versions. I think the last version I remember this working correctly was 1.1.36) <img width="800" height="326" alt="Image" src="https://github.com/user-attachments/assets/d9d79af2-0854-4e19-96ad-d826a6154d8a" /> Doing some digging, I also noticed that the aliases I have configured in my `~/.bashrc` file are also not being loaded, so I suspect something changed in a recent update that caused the Web Terminal to not source `~/.bashrc` When I manually source `~/.bashrc` - the colors are back again. ### Plugins None ### OpenCode version 1.1.48 ### Steps to reproduce 1. Open WebUI 2. Open Terminal pane 3. Notice no colors. Check aliases, history settings, notice nothing from `~/.bashrc` was loaded. ### Screenshot and/or share link See above ### Operating System Ubuntu 22.04 ### Terminal Web UI
yindo added the bugweb labels 2026-02-16 18:09:29 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 1, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #4968: Shell sessions losing $PATH value from parent shell (MOST LIKELY - same root cause of unloaded shell initialization files)
  • #6936: [FEATURE]: Pass agents bash env variables OR pass agents bashrc files
  • #9334: How to make OpenCode load environment variables from a file when executing commands in skills
  • #11582: Buggy colors and misformatting all over screen making it impossible to use (similar symptoms, reported same day)
  • #10945: [Windows] Raw ANSI escape codes flooding console & "Unable to connect" errors (related color code issues around v1.1.36-1.1.40 timeframe)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 1, 2026): This issue might be a duplicate of existing issues. Please check: - #4968: Shell sessions losing $PATH value from parent shell (MOST LIKELY - same root cause of unloaded shell initialization files) - #6936: [FEATURE]: Pass agents bash env variables OR pass agents bashrc files - #9334: How to make OpenCode load environment variables from a file when executing commands in skills - #11582: Buggy colors and misformatting all over screen making it impossible to use (similar symptoms, reported same day) - #10945: [Windows] Raw ANSI escape codes flooding console & "Unable to connect" errors (related color code issues around v1.1.36-1.1.40 timeframe) Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8235