[PR #6515] fix: windows fallback for "less" cmd in session list #11953

Closed
opened 2026-02-16 18:16:53 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6515

State: closed
Merged: Yes


Since Bun.Shell doesn't natively implement less, we use fallbacks to determine the best option on Windows -

We try to locate less.exe from:

  • Existing installations (via choco) by checking PATH
  • The OPENCODE_GIT_BASH_PATH custom location
  • The Git installation directory (found via git in PATH)

if less cannot be located, we finally fall back to the built-in more command.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6515 **State:** closed **Merged:** Yes --- Since `Bun.Shell` doesn't natively implement `less`, we use fallbacks to determine the best option on Windows - We try to locate `less.exe` from: - Existing installations (via `choco`) by checking PATH - The `OPENCODE_GIT_BASH_PATH` custom location - The Git installation directory (found via git in PATH) if `less` cannot be located, we finally fall back to the built-in `more` command.
yindo added the pull-request label 2026-02-16 18:16:53 -05:00
yindo closed this issue 2026-02-16 18:16:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11953