[PR #17245] Clean up command history context passed to suggestions UI #31167

Closed
opened 2026-01-31 09:45:31 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/17245

State: closed
Merged: Yes


This is fallout from #16937.

  • Typing a command then backspacing the chars then asking for suggestions would think the current commandline ended with spaces, making filtering very hard.
  • The currently typed command would also appear in the command history, which isn't useful.

I actually did TDD for this and wrote the test first, then confirmed again running through the build script, I wasn't hitting any of the earlier issues.

Closes #17241
Closes #17243

**Original Pull Request:** https://github.com/microsoft/terminal/pull/17245 **State:** closed **Merged:** Yes --- This is fallout from #16937. * Typing a command then backspacing the chars then asking for suggestions would think the current commandline ended with spaces, making filtering very hard. * The currently typed command would _also_ appear in the command history, which isn't useful. I actually did TDD for this and wrote the test first, then confirmed again running through the build script, I wasn't hitting any of the earlier issues. Closes #17241 Closes #17243
claunia added the pull-request label 2026-01-31 09:45:31 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31167