Skip to content

Fall back to help when MRU picker cannot run interactively#36

Merged
kzu merged 1 commit into
mainfrom
fix/mru-noninteractive-help
Jul 22, 2026
Merged

Fall back to help when MRU picker cannot run interactively#36
kzu merged 1 commit into
mainfrom
fix/mru-noninteractive-help

Conversation

@kzu

@kzu kzu commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

  • Zero-arg dnx go with existing history no longer errors when stdin is redirected or the console is non-interactive.
  • Same path as empty history: show help instead of logging "Interactive selection requires a terminal."
  • Document the interactive-only picker behavior in the readme and help text.

Test plan

  • dnx go in an interactive terminal with history still opens the MRU picker
  • dnx go < /dev/null (or Windows equivalent) with history shows help and exits successfully (no error message)
  • Empty history still shows help
  • CI green

@kzu kzu added the bug Something isn't working label Jul 22, 2026
@kzu
kzu enabled auto-merge (rebase) July 22, 2026 03:33
Zero-arg go with history still needs a real terminal for the Spectre
picker. Redirected stdin or non-interactive consoles now take the same
path as empty history and show help, instead of logging an error and
exiting 1. Document the behavior in the readme and help text.
@kzu
kzu force-pushed the fix/mru-noninteractive-help branch from e1c6c1a to 03a5e53 Compare July 22, 2026 03:33
@kzu

kzu commented Jul 22, 2026

Copy link
Copy Markdown
Member Author

85 passed 85 passed

🧪 Details on Ubuntu 24.04.4 LTS

from retest v1.1.0 on .NET 10.0.10 with 💜 by @devlooped

@kzu
kzu merged commit aa73a4d into main Jul 22, 2026
4 checks passed
@kzu
kzu deleted the fix/mru-noninteractive-help branch July 22, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant