Skip to content

ssh: give the VM's shell TERM=xterm-256color - #1268

Merged
cdalar merged 1 commit into
mainfrom
ssh-term-fallback
Oct 27, 2026
Merged

cdalar merged 1 commit into
mainfrom
ssh-term-fallback

Conversation

@cdalar

@cdalar cdalar commented Oct 27, 2026

Copy link
Copy Markdown
Owner

What

onctl ssh (and the TUI's ssh action) now runs ssh with TERM=xterm-256color, as onctl claude's attach already does (cmd/claude.go:853).

Why

From Ghostty, tmux a on a box failed with missing or unsuitable terminal: xterm-ghostty: the image has no terminfo for it.

Testing

  • TestSSHIntoVM_UsesACommonTERM runs a fake ssh with TERM=xterm-ghostty set; it fails without the change.
  • go test ./... passes and golangci-lint is clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ba6Vc6KwaV9dTWbzYVKA78

The VM has no terminfo for xterm-ghostty (or xterm-kitty), so tmux
refused to start in an onctl ssh shell from Ghostty. onctl claude's
attach already sets TERM this way.
@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.92%. Comparing base (0027c86) to head (c02b9fa).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1268      +/-   ##
==========================================
+ Coverage   49.75%   49.92%   +0.17%     
==========================================
  Files          83       83              
  Lines        9706     9708       +2     
==========================================
+ Hits         4829     4847      +18     
+ Misses       4877     4861      -16     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cdalar
cdalar merged commit 1db95d4 into main Oct 27, 2026
14 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

⌂ 换网址