Repository navigation
Skip the desktop update restart prompt when nothing is running #28185
1337Crakker
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
Installing a downloaded desktop update always asks "Install update X and restart T3 Code? Any running tasks will be interrupted." This happens even when nothing is running. Most installs happen while idle, so the prompt becomes something people click through, which makes it worth less on the occasions when work really is running.
Proposal
Skip the prompt only when the app can show that nothing it's about to stop is working. Otherwise keep the prompt exactly as it is today.
A desktop install stops every backend the app runs: the local server and any WSL servers the app runs. Each one has to be known idle:
isLiveSubagentShellrule the shell stream uses so that it never drops live threads;hasRunningSubprocess).Anything unknown keeps the prompt: the catalog isn't ready, an environment is disconnected or disabled, terminals haven't loaded, or the desktop reports a running backend the client can't see.
Work started from a phone or app.t3.codes on this machine runs on its server, so it counts. SSH-launched servers run under
nohupand survive the restart, so they don't count.Prior art
The Codex desktop app does this more loosely. It warns only if a window reports an in-progress local conversation, it ignores terminals and background work, and on macOS it skips the warning when the state is unknown.
Out of scope and known limits
Implementation: #28187 (small, web-only, with before/after screenshots).
Is this direction and scope OK with a maintainer?
All reactions