Did you see what HP recommends? ...
Plenty of good references online versus asking random strangers. Batteries and chargers are not all the same, some chargers protect batteries better than others. ....
Agreed, OP really needs to check the specifics not only for his brand,
but the specific model. They are not all the same hardware and capabilities.
.... Personally I don't see the advantage to leaving battery powered devices plugged in all the time, but to each his/her own. ...
Well, in the case of a laptop, unplugging it often means it will be going through an extra charge/discharge cycle each time, and Lithium-type batteries do have lifespans that are at least partially defined by the number of those cycles (and going from 50% to 100% counts as one-half of a cycle, etc).
Keeping it plugged in means that the laptop is running from the external power, not the battery. So the battery is charged, and discharges very slowly, as it is not supplying power, it's just the self-discharge and monitoring currents that are drawing it down over time. So very few charge/discharge cycles in that mode.
I'm not saying this means instant death or anything, there are many factors at play - but it
is a factor and a reason for keeping it plugged in. It may be "to each their own" as to what they decide to do, but the advantages/disadvantages are a matter of fact, not subject to opinion.
Whenever my Surface Pro is sitting in its dock, which is probably 12 hours/day, it is "plugged in." I have never worried about this. Optimizing the power supply and the battery is not a difficult engineering problem and it is hardly a new one. I'm confident that Microsoft is taking care of me on this. ...
If running Windows, battery management should be on. which helps lengthen the battery life. I would not worry about being plugged in most of the time. ...
But Microsoft and the laptop manufacturer have constraints and priorities. The laptop maker wants to advertise
maximum hours on a charge, so the default is going to be "charge to 100%", not "charge for maximum lifespan of the battery".
For a real life example, I just checked what the ASUS laptop I purchase at the end of 2021 is capable of. Turns out it does have the hardware capability to limit charging to 80, 60, or 40% - with 100% being the default out of the box. So sure, MS/mfg has provided the capability, but they can't optimize for lifespan,
and provide max hours on a charge at the same time.
That's up to you to choose/act.
So I'm trying this on my ASUS now, I wiped Windows from it when I got it and am running on Linux/Xubuntu, and the capabilities to control the charge levels are built in there too, so we'll see how that goes.
From the ASUS FAQ (again, note that this can be brand/model specific):
https://www.asus.com/support/FAQ/1032726/
-ERD50