Skip to content

[Bug] Terminal PTY sessions missing TERM, COLORTERM, and LANG when hub is started via launchd/systemd/Docker #498

@GeT-LeFt

Description

@GeT-LeFt

Description

When the hub process is started via launchd (macOS), systemd (Linux), or Docker, the spawned terminal PTY sessions inherit a stripped-down environment that is missing critical terminal variables.

Expected behavior

Terminal sessions should have sensible defaults for TERM, COLORTERM, and LANG so that colors, cursor movement, and Unicode rendering work out of the box.

Actual behavior

Variable Missing behavior
TERM Programs fall back to dumb mode — no colors, no cursor movement
COLORTERM Shell prompts (e.g. Powerlevel10k) skip truecolor output
LANG Non-ASCII glyphs (powerline symbols, emoji, CJK characters) render as replacement characters

Steps to reproduce

  1. Start the hub via Docker or launchd (not from an interactive terminal)
  2. Open a terminal session in the web UI
  3. Observe broken colors, missing glyphs, and degraded prompt rendering

Environment

  • macOS (launchd) and Linux (Docker/systemd)
  • Shell: zsh with oh-my-zsh / Powerlevel10k

Fix

PR #495 adds defaults (xterm-256color, truecolor, en_US.UTF-8) only when not already set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions