Skip to content

Please provide a way to delay updates #6726

Closed

Description

Description of the new feature/enhancement

I keep Windows Terminal open all the time. I also check for Microsoft Store updates daily. When an update to Windows Terminal is installed, it kills dozens of tabs I have open.

Proposed technical implementation details (optional)

It would be better for me to know that an update has been downloaded and is pending to be installed. I could then close all instances of Windows Terminal myself and when opening it the next time it would update before running. This is how Google Chrome works.

Activity

  1. added
    Issue-Feature
    on Jun 30, 2020
  2. ghost added
    Needs-Tag-Fix
    on Jun 30, 2020
  3. ghost added
    Needs-Triage
    on Jun 30, 2020
  4. WSLUser commented on Jun 30, 2020

    @WSLUser
    Contributor

    It would be better for me to know that an update has been downloaded and is pending to be installed.

    Terminal has no control over that. That is entirely dependent on how your settings are configured for the Store.

  5. jr-lillard commented on Jun 30, 2020

    @jr-lillard
    Author
  6. DHowett commented on Jun 30, 2020

    @DHowett
    Member

    So, I asked the application packaging and deployment team about this. Their answer was fairly direct: when you click get updates, you’re considered a “seeker”. People who actively seek updates get a different behavior than people who let the passive auto-updater update apps for them. Seekers’ applications are forcibly terminated, because they told the OS “no, give me updates, right now.”

  7. jr-lillard commented on Jun 30, 2020

    @jr-lillard
    Author
  8. electronic-dk commented on Jun 30, 2020

    @electronic-dk

    Probably something along the lines of how Edge, for example, handles the updates would be cool i.e. show that there's a new version available but not force restart the app right away. I understand that that's probably not the easiest issue to solve and there's probably no single solution that would satisfy everyone but maybe that's something the MS store could move to in the future.
    That would probably be somewhat solved with the winget once it learns how to show the apps/packages that are ready to be updated.

  9. factormystic commented on Jun 30, 2020

    @factormystic

    So, I asked the application packaging and deployment team about this. Their answer was fairly direct: when you click get updates, you’re considered a “seeker”. People who actively seek updates get a different behavior than people who let the passive auto-updater update apps for them. Seekers’ applications are forcibly terminated, because they told the OS “no, give me updates, right now.”

    Thanks for checking into this Dustin L. Howett (@DHowett) and so if there's nothing that the Terminal team can do about this I guess that's that.

    HOWEVER:

    This response from them is ultra lame. Yeah, I'm clicking around to see what's up, or maybe because I want to see what's updated, or maybe because I know some other app got updated.

    But what I'm saying with those clicks isn't "please kill my terminal instances, which close/secretly detach my various terminal panes, and the web server(s), logs tails, etc running inside of them, thus essentially resetting my active development environment from some other app, on some other virtual desktop".

    To hear me say this and think "yeah, that's certainly what the user intended when they were clicking around the store app" is foolishness. Whoever is holding on to this foolishness on the store team needs to have their thinking updated.

    What can we do to get this scenario into the store team mindset? Is there someone from that team we can get onto this thread? Is there someone we should complain to? Can you take this feedback and send it back to them?


    Another lens here is, what will it take to make this into a pleasant experience instead of a disappointing experience? Certainly getting the store team to up their game would be nice, but if that's not going to happen then I wonder what else can be done.

    For example, hypothetically, could each terminal instance record it's current pane layout, detach from running processes that it started, allow the store to kill it & bring it back (somehow), detect that this is what happened, restore its pane layout, then reattach each child process?

    The thinking here is that the store can kill the app, but the damage is now avoided because everything is restored.

  10. WSLUser commented on Jun 30, 2020

    @WSLUser
    Contributor

    Feedback Hub is the official way to communicate concerns about the Store to the Store team. I would say it's likely to be ignored but with the Store now being the only way to purchase products directly from MS, theres a higher than normal chance this feedback will get attention but not necessarily resolution.

  11. changed the title [-]Delay new version update[/-] [+]Please provide a way to delay updates[/+] on Jul 22, 2020
  12. unpinned this issue on Jul 28, 2020
  13. qm2k commented on Aug 21, 2020

    @qm2k

    My issue was marked as duplicate so I will repeat my suggestion here: update the app, but keep the state. It would be really cool and different. At least on my system the subprocesses are not really getting killed, so I believe it must be technically possible to attach them back (e.g. add some intermediate process controlled through a pipe that survives).

    And yes, I totally agree with factormystic about the response that users somehow want this behaviour: it is superb lame and arrogant to claim this. It's worse than the Clippy was. In no system ever was my command-line session was terminated because the terminal package needed an update. Sooner or later it will happen while someone updates a mission-ciritical system remotely without tmux, or do a multi-month calculation or rendering, or mine/save bitcoins, and it will all be in the news.

  14. removed
    Needs-Triage
    on Aug 25, 2020
  15. 34 remaining items

  16. removed
    Resolution-Fix-Available
    on May 3, 2023
  17. mikehearn commented on May 19, 2023

    @mikehearn

    Mike Griese (@zadjii-msft) For those of us who would like to adopt the same fix in other apps, could you let us know what this uwp16 property is going to be? Unfortunately AppxManifest.xml changes aren't centrally logged or announced anywhere so the only other alternative is to poll the docs looking for new uap16 namespace items.

  18. zadjii-msft commented on May 19, 2023

    @zadjii-msft
    Member

    Would you mind if I wait till it's out of the Preview SDK? As we've seen in the past (literally in this thread), preview features sometimes have to be backed out before release, and I don't want to promise something to 3p devs that might not land. I'd be less reluctant if it was some preview feature our team owned, but I'd rather err on the side of caution with another team's stuff.

    I'm setting up some time (soonTM, I'll be OOF for June) to test this out in the Terminal with the Preview SDK and the folks who wrote the API - when I do, I'll surely link the dev branch here if you're really curious

  19. mikehearn commented on May 19, 2023

    @mikehearn

    Mike Griese (@zadjii-msft) Of course, that's perfectly understandable. I mostly just didn't want to forget this thread :-)

  20. zadjii-msft commented on May 31, 2023

    @zadjii-msft
    Member

    Spoke more with that team yesterday. They said it's cool to share.

    <Package
      ...
      xmlns:uap17="http://schemas.microsoft.com/appx/manifest/uap/windows10/17"
      IgnorableNamespaces="uap uap17 uap16 mp">
    
      <Properties>
        <uap17:UpdateWhileInUse>defer</uap17:UpdateWhileInUse>
      </Properties>
      
    </Package>

    That property should be in the current Insiders preview SDK. For reasons we (the Terminal) can't use that till it gets released as part of the stable SDK, later this year.

  21. mikehearn commented on May 31, 2023

    @mikehearn

    Thanks man! When you say "insiders preview SDK", I'm not quite sure what that means. I know what Windows Insiders is (a preview build you can opt in to), but don't understand the relation between the SDK and Windows here. My company makes a tool that builds MSIX files and AppxManifests itself, without using any MS tooling. We can start emitting this XML tomorrow, no problem, and maybe we should. The real question is when Windows itself will start to recognize it.

  22. zadjii-msft commented on May 31, 2023

    @zadjii-msft
    Member

    Ah, by "Insiders Preview SDK", I mean this: https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewSDK

    Appxmanifest entries are a little weird sometimes. The tooling needs to be updated to know about this new manifest entry, separately from the OS actually supporting the feature. So the tooling will reject this flag if you try to build it using an SDK version before at least 25362. That's half the picture. The other half is the OS itself needs to recognize this flag, which again I think is only in builds >=25362. The Insiders -> Stable build numbers are a little weird these days, so I don't know what OS version that will ultimately become when it's officially released in fall. 22000.something, probably.

    If you're building msix's without the official tooling, then I dunno how your tooling will react to "unrecognized" properties. I know the version from the SDK will explicitly reject things it doesn't know about, hence why we can't just add it to the Terminal today 😕

  23. mikehearn commented on May 31, 2023

    @mikehearn

    Got it, thanks. Conveyor (see https://hydraulic.dev/) uses the official AppxManifest XSD schemas to validate, so I guess we'd need to patch those schemas or wait until a new set is released. It probably makes sense to start using it immediately, as people don't rebuild their apps instantly.

    BTW, do you know why it's optional? What's the scenario that breaks if everyone is opted into this? I'm head scratching trying to think of when you'd want the store to kill the app whilst it's in use, and I can't come up with one but clearly something went wrong with the first attempt and there's a reason it's now optional. I worry if we opt in our users automatically, we'll hit the same issue.

  24. added a commit that references this issue on Nov 1, 2023
    1f48cd9
  25. added
    In-PR
    on Nov 1, 2023
  26. added a commit that references this issue on Nov 7, 2023
    077d63e
  27. added a commit that references this issue on Nov 13, 2023
    2ac5e86
  28. mikehearn commented on Dec 2, 2023

    @mikehearn

    Mike Griese (@zadjii-msft) Looks like we're nearly there. I'm trying to work out what versions of Windows 11 support UAP17 and not having much luck. The PR says it shipped in the September 2023 "OS release". As far as I can tell UAP17 (and therefore this fix) requires build >=25936, but the latest version of Win11 available is 22631.2715

    So is this still stuck in insiders/preview mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

In-PRTracking-External

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions