fix(desktop): claim TERM_PROGRAM=kitty in v1 terminal

Merged
KI
6mo ago
+3-3

Mirrors the host-service v2 path so chat TUIs (claude-code et al.) parse kitty CSI-u sequences from xterm.js. v1 already enables kittyKeyboard in the renderer; the env claim makes consumers honor it.

Description

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Refactor
  • Other (please describe):

Testing

Screenshots (if applicable)

Additional Notes


Summary by cubic

Set TERM_PROGRAM to kitty in the desktop v1 terminal so TUIs correctly parse kitty CSI‑u keyboard sequences from xterm.js. Aligns v1 behavior with the host-service v2 path.

  • Bug Fixes
    • Export TERM_PROGRAM=kitty in buildTerminalEnv.
    • Update test to expect TERM_PROGRAM as kitty.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed terminal environment configuration to correctly identify the terminal program as "kitty" in spawned shell processes.