Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to suppress ctfmon service notification (perhaps store in app state?) #8699

Closed
DHowett opened this issue Jan 3, 2021 · 14 comments · Fixed by #11139
Closed

Allow users to suppress ctfmon service notification (perhaps store in app state?) #8699

DHowett opened this issue Jan 3, 2021 · 14 comments · Fixed by #11139
Assignees
Labels
Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. Resolution-Fix-Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@DHowett
Copy link
Member

DHowett commented Jan 3, 2021

There are some users who have ctfmon disabled, but (inexplicably?) have a working system.

They are rightly annoyed that we pop up a warning that stops them from using Terminal properly. By the principle of "if it ain't broke, don't fix it" we have clearly done something wrong.

We need to balance the needs of #4448 and #8228 here. Perhaps we can offer light dismiss or a hard dismiss option that records the dismissal in app state (#8324).

How do we ensure that users who are having input issues are helped by this notice, but users who are not are not annoyed?

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Jan 3, 2021
@DHowett DHowett changed the title Allow users to suppress service notification (perhaps store in app state?) Allow users to suppress ctfmon service notification (perhaps store in app state?) Jan 4, 2021
@levicki
Copy link

levicki commented Jan 4, 2021

@DHowett Are you sure that those users who were complaining about lack of keyboard input actually have physical, USB or PS/2 attached, keyboards?

Perhaps all of them were using a Surface tablet with on-screen keyboard or even worse, handwriting using a pen, to enter text?

Do you have any other data point about their hardware except that the service was not running?

I consider keyboard input a hardware event at the core and I think submitting a bug report for it merits asking them for hardware configuration.

@zadjii-msft
Copy link
Member

I have a laptop with a physical keyboard. If I disable that service, then the input doesn't work. So my rudimentary due-diligence of the input team's assertion confirmed their theory.

I'm okay with storing this in app state, but only if we bump that feature's priority. Otherwise I'm gonna just throw experimental.iSolemnlySwearThatIAmUpToNoGood in later today.

@zadjii-msft zadjii-msft added this to the Terminal v1.7 milestone Jan 4, 2021
@levicki
Copy link

levicki commented Jan 4, 2021

@zadjii-msft I am not trying to be argumentative, I just want to figure out what is the real problem and solve that if possible. With that in mind, I really don't understand your hostility and snarkiness towards users who don't share your problem and who were all affected with a half-assed permanent warning "solution" that was implemented initially.

Can you please share more details? For example:

  • Does your input stop working in all applications or just modern ones when you disable the service?
  • Did you try restarting Windows with the service disabled to see if there is any change afterwards?
  • Do you have any upper or lower filter drivers for keyboard devices (apart from default kbdclass) installed (look in Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e96b-e325-11ce-bfc1-08002be10318})?
  • What happens if you attach external keyboard over USB while service is disabled?
  • What happens if you manually launch ctfmon.exe instead of enabling and starting the service?
  • What are your BIOS settings for legacy USB emulation?
  • What is your input language?

Finally, what are your tablet-related settings?

image

IMO, answering those questions should be the minimum required due-diligence before even trying to fix the problem.

@zadjii-msft
Copy link
Member

My apologies. I'm not trying to be snarky with you either - maybe my snark is best intended for our own internal input team who's led us off on this snipe hunt in the first place. First we're told on no uncertain terms that disabling that service will break keyboard input to the Terminal. Great - if that's true, then the warning is perfectly reasonable. However, in the month since shipping that warning, we've found out that there are users who disable the service for perfectly reasonable reasons. We've also learned from the input team that the real purpose of that service is to keep ctfmon.exe alive, and that process is the real thing that needs to be running for the Terminal to receive KB input. That's their latest stance on the issue. However, we've also clearly learned from community feedback that even that assumption is wrong, and somehow the Terminal can receive KB input even without ctfmon running.

So my real goal is twofold:

  1. Accurately warn users when the keyboard won't work for them. For 99% of users who have the aforementioned service disabled, the KB won't work in the Terminal, and the dialog is useful. It prevents an absolute flood of issues that we have regarding "keyboard no worky".
  2. Try and push on the input team to determine why they believe that ctfmon is absolutely necessary for the modern input stack (to XAML islands, and thus the Terminal). If this is their assumption, and that assumption is incorrect, then there's clearly some missing information in the equation. Figuring out what that is might lead both teams to a better understanding of different scenarios where the keyboard will or will not work. Unfortunately, there's a small minority of users that fall into this category, so finding repros is tricky - though the absolute vitriol to this warning has helped assemble good number of users who are reproing this case and willing to get to the root of the issue.

They're the real folks that will be able to better investigate this issue. Anyone here on the Terminal team, or even externally, is just going to be guessing. I'd really rather get the experts to help us with this investigation. Hopefully with people returning back after the long vacation, we'll get some traction. Should we find the real root cause of the issue here, then maybe we can fix it at an OS level, so users won't have broken KB input at all. Either that, or we can try and get a more accurate heuristic for what the root cause is.

@levicki
Copy link

levicki commented Jan 4, 2021

Should we find the real root cause of the issue here, then maybe we can fix it at an OS level, so users won't have broken KB input at all.

Hopefully that won't be "fixed" by enforcing service to enabled and removing the ability to disable it in the future without resorting to hacks such as RunAsTI.

Either that, or we can try and get a more accurate heuristic for what the root cause is.

That is what I wanted to help with, and why I asked all the questions above.

In any case, I believe that non-working keyboard input is not your team's responsibility to fix, especially not by showing permanent warnings.

If you as an application developer have to check whether a system service is running where does your responsibility end? Will you next have to check if DNS client service is running and show a warning because some users reported that ping cannot resolve DNS names in Windows Terminal?

though the absolute vitriol to this warning has helped assemble good number of users who are reproing this case and willing to get to the root of the issue.

You could have totally avoided the vitriol part.

Windows Terminal is an application often used by developers, system administrators and power users. Those three user classes are crucial for survival of any OS -- developers produce software for it which keeps it alive for end users, administrators maintain it for those end users, and power users evangelize its cool features to end users, bringing more of them to the OS.

By antagonizing those user classes you are hurting your own OS -- I sincerely hope more Microsoft developers and product managers would realize that before deciding to remove choices, gut existing settings or functionality, add non-dismissable warnings, and otherwise remove control from (and exert control upon) the users.

@zadjii-msft
Copy link
Member

As an application developer, it is my responsibility to ensure the best possible experience for our users. We got TONS of reports that the keyboard doesn't work, which is something that would silently break in the Terminal and seemingly no where else. We were told on no uncertain terms that disabling that service would break keyboard input. So that seemed like a good path to pursue. We're trying to provide info to users who have a broken experience for seemingly no reason.

Now clearly, that base assumption is wrong, and we're trying to get to the root cause here. We're Terminal developers first, but we're also Windows developers. Right now, we've found something mysterious about the OS, and we're using our experience with the Terminal to try and drive a more holistic solution to the problem.

You don't have to lecture us about developers being the lifeblood of the OS. Who do you think we are? We're developers too, who are pushing even harder than you to make Windows the best place for developers. We're not trying to antagonize our users, we're trying to get to the root cause of an issue and fix it for everyone. But you gotta be patient with us, there's like 5 of us on the Terminal team, and it's been a long holiday weekend.

We've made a call based on the best info we had at the time. It's turned out to be bad info. Hopefully, we can get to the root of all this.

@levicki
Copy link

levicki commented Jan 4, 2021

As an application developer, it is my responsibility to ensure the best possible experience for our users.

I agree, but you can't fix everything.

You don't have to lecture us about developers being the lifeblood of the OS.

That was not my intention -- I was just trying to remind you that sometimes on the other side of the issue report is not a clueless end user who disabled stuff because they used "free windows optimizer 13.0", but a fellow developer, system admin, or a power user who knows quite a bit about the OS, and definitely more than you about their own working environment.

We're not trying to antagonize our users, we're trying to get to the root cause of an issue and fix it for everyone.

Sorry, but it didn't look like that when you guys were talking about naming the setting iSolemnlySwearThatIAmUpToNoGood and iAmTheKindOfPersonWhoDisablesRandomSystemServicesAndAcceptThatThisIsNotASupportedConfigurationSoStopTellingMeAboutIt.

We've made a call based on the best info we had at the time.

Bad decision based on bad data wasn't the issue -- your and Dustin's overall attitude when people confronted you was, hence my response which you perceived, made hidden, and labeled as "rant" and "shit" then gone back and edited "shit" out.

I want to be perfectly clear -- I am here because I want to help.

@Don-Vito
Copy link
Contributor

Don-Vito commented Jan 5, 2021

@levicki - as an external contributor to this project, I just want to pay your attention that addition of every setting not only requires development, but also introduces code paths that require maintenance and increase time to market. So keeping the logic as simple as possible by always finding the root-cause (that Dustin and Mike mentioned above) is crucial, especially for a small team that builds a product with such levels of complexity and adoption.

Regarding the recent threads at this matter, I sometimes really hate the written communication - obviously everyone here is trying to help and I am sure that if this dialog was happening face to face it would look differently. Not that I ever talked with Dustin or Mike beyond GitHub 😊 But after 3 months of intensive collaboration, I am convinced that their only attitude is to make sure that the users are getting the best value the team can provide.. and that they are from the same breed as Raymond Chen or even Mark Russinovich (I guess this makes them divine creatures) 😊

@zadjii-msft - can I help somehow?

  • with pushing the app state effort (not sure what is the approach / status there)
  • to implement the short-term solution

@DHowett
Copy link
Member Author

DHowett commented Jan 5, 2021

@Don-Vito I appreciate you saying that, but I will totally admit that I was brusque and dismissive, and that I dug my heels in instead of working towards a solution. 😄

@Don-Vito
Copy link
Contributor

Don-Vito commented Jan 5, 2021

@Don-Vito I appreciate you saying that, but I will totally admit that I was brusque and dismissive, and that I dug my heels in instead of working towards a solution. 😄

OK.. then ignore my comment regarding Mark Russinovich - he is flawless 😄

In any case, let me know if I can assist somehow.

@zadjii-msft
Copy link
Member

As far as the app state thing goes, I think @DHowett already has a branch with that in progress. It's a bit of a slog, refactoring some of the setting model stuff to be reusable for that purpose.

From a strategic standpoint, @DHowett let's make sure to hold the warning & infobar back from the 1.5 release channel, and keep it in preview for now. That's what Preview is for, right 😝?

@zadjii-msft zadjii-msft added Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. labels Jan 8, 2021
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Jan 8, 2021
@DHowett DHowett removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Jan 22, 2021
ghost pushed a commit that referenced this issue Sep 10, 2021
## Summary of the Pull Request
* Introduces info bar shown upon session failure, 
that guides the user how to configure termination behavior
  * Allows this info bar to be dismissed permanently (choice stored in state) 
* Allows "keyboard service" info bar to be dismissed permanently

## PR Checklist
* [x] Closes #10798, #8699
* [x] CLA signed. 
* [ ] Tests added/passed
* [ ] Documentation updated. 
* [ ] Schema updated.
* [ ] I've discussed this with core contributors already.

## Detailed Description of the Pull Request / Additional comments
UI:
* Introduce an additional info bar for "close on exit" configuration tip
  * Stack this bar after "keyboard service" bar
* Add "Don't show again" button to both bars

Dismiss Permanently:
* Introduce a set of "dismissed messages" to the Application State
* Add verification the message is not dismissed before showing an info bar
* "Don't show  again" persists the choice under "dismissed messages"

Wiring the Info Bar:
* Register `TerminalPage` on `TermControl`'s `ConnectionStateChanged` event
* Once event is triggered check whether the state is failure
* If so and the message was not dismissed permanently, show the info bar
@ghost ghost added the Resolution-Fix-Committed Fix is checked in, but it might be 3-4 weeks until a release. label Sep 13, 2021
@zadjii-msft
Copy link
Member

This was added in #11139, but the bot didn't pick it up correctly the first time

@ghost
Copy link

ghost commented Oct 20, 2021

🎉This issue was addressed in #11139, which has now been successfully released as Windows Terminal v1.11.2921.0.:tada:

Handy links:

@ghost
Copy link

ghost commented Oct 20, 2021

🎉This issue was addressed in #11139, which has now been successfully released as Windows Terminal Preview v1.12.2922.0.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-UserInterface Issues pertaining to the user interface of the Console or Terminal Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. Resolution-Fix-Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants