mirror of
https://github.com/microsoft/terminal.git
synced 2026-09-25 00:15:10 +00:00
Terminal keeps disappearing after wake from sleep #16801
Closed
opened 2026-01-31 05:23:08 +00:00 by claunia
·
77 comments
No Branch/Tag Specified
main
dev/duhowett/stop-using-projection-for-control-innards
dev/duhowett/fhl-2026/remove-paste-hairpin-handler
dev/duhowett/win7-wpf-termcontrol-squash
dev/lhecker/20226-present-leaks
dev/duhowett/wpf-1-autoscroll-to-interactivity
dev/duhowett/wpf-3-swapchain-handle
dev/duhowett/wpf-2-midi-audio-timer
dev/migrie/overview-for-pr
dev/migrie/b/markdown-paste
dev/duhowett/padding-in-atlas
fix/german-split-pane-tooltip
release-1.25
dev/cazamor/sui-rejuv/fix-spaces
dev/migrie/per-window-final
dev/cazamor/selfhost/2026-08-31
dev/migrie/b/independent-animations
dev/pabhoj/wtcli
dev/cazamor/conhost/bugfix-a11y-find
dev/cazamor/conhost/bugfix-a11y-find-1.24
dev/lhecker/theme-quality-test
dev/lhecker/theme-quality
dev/cazamor/selfhost/sui-rejuv
dev/cazamor/fix/search-selection-off-by-one
dev/duhowett/even-more-builtin-glyphs
dev/crutkas/kitty-pr1
dev/cazamor/toast/activity
release-1.24
users/GitHubPolicyService/d8615b98-f5fa-4462-bf7f-c44a1cc12096
dev/cazamor/selfhost/2026-06-18
dev/migrie/f/new-profile-subcommand
dev/cazamor/sui-rejuv/profiles-v2
dev/duhowett/asan-for-all
dev/cazamor/sui-rejuv/profiles-new
dev/cazamor/sui-rejuv/expander-groups-new
dev/cazamor/auto-save/refresh-settings
feature/llm
dev/cazamor/auto-save/model/json-manager
dev/cazamor/auto-save/settings-model
dev/migrie/s/snippet-params
users/merlinbot/1es-pt-auto-baselining-pr
niels9001/inactive-tab-foreground
dev/cazamor/selfhost/2026-05-20-home
dev/duhowett/fzf-vcxproj
dev/cazamor/selfhost/2026-05-20
dev/cazamor/selfhost/2026-05-19
dev/cazamor/selfhost/2026-05-18
niels9001/fontweight-fixes
niels9001/page-transitions
dev/duhowett/fhl-2026/rewrite-paste-and-dragdrop-handling-writeinputstring
dev/migrie/f/overview-view
dev/cazamor/selfhost/2026-05-13
dev/cazamor/selfhost/2026-05-13-sui
dev/yeelam/f/BuildTest
dev/duhowett/hax/our-own-tabview
dev/cazamor/bugfix/close-scratchpad
dev/cazamor/selfhost/2026-05-05
dev/cazamor/selfhost/2026-05-04-workspaces
dev/cazamor/selfhost/2026-05-04
dev/lhecker/20149-hotfix
dev/lhecker/osc-7-wsl
dev/migrie/workspaces-real
dev/migrie/fhl-spring-2026/quake-4
dev/lhecker/pwsh-5.1
dev/cazamor/sui/dropdown-page
dev/cazamor/selfhost/2026-04-08
dev/cazamor/selfhost/2026-04-06
dev/migrie/fhl-spring-2026/confirmCloseOn
dev/cazamor/confirmCloseOn/dont-ask-me-again
dev/lhecker/inproc-conpty
dev/duhowett/powershell-module-supercharger
dev/cazamor/a11y/vt-seq-prototype
dev/migrie/fhl-spring26/osc777-2
dev/migrie/fhl-spring26/2/notification-infrastructure
dev/migrie/fhl-spring-2026/side-tabs
dev/cazamor/copilot/playground
dev/migrie/fhl-spring-2026/quake-3.5
dev/migrie/fhl-spring26/osc777
dev/migrie/fhl-spring26/unpackaged-notify
dev/migrie/fhl-spring26/bellStyle-notification
dev/migrie/fhl-spring26/activity-notifications
dev/migrie/fhl-spring-2026/x-open
dev/migrie/fhl-spring-2026/quake-5
dev/migrie/fhl-spring26/nextTab-filter
dev/duhowett/atlas-draw-d2d-dots-curlies-consistently
dev/lhecker/14165-conhost-font-size
dev/lhecker/ottosson-by-default
dev/duhowett/hax/unix-pty
dev/duhowett/hax/cmake
dev/lhecker/generate-256-colors
dev/lhecker/dcs-perf
dev/lhecker/1410-large-scrollback
dev/cazamor/selfhost/2026-02-10
dev/lhecker/11509-kitty-keyboard-protocol-wip
dev/cazamor/selfhost/2026-01-29
dev/lhecker/benchcat-fix
dev/duhowett/eoy-25/allow-set-foreground
release-1.23
dev/cazamor/bot/deprecate-area-atlasengine
dev/cazamor/selfhost/2026-01-20
dev/cazamor/selfhost/2026-01-12
dev/cazamor/spec/auto-save
dev/duhowett/fhl-2024/asciicast-recorder
dev/duhowett/eoy-25/underline-colors-in-atlas-bug
dev/duhowett/hax/serial-port-support
dev/duhowett/connection-utf8
dev/lhecker/fused-event
dev/lhecker/18928-wip
dev/duhowett/fhl-2024/clang
dev/duhowett/vt-cache-changes
dev/cazamor/uia-leak
release-1.22
dev/cazamor/selfhost/11-18-v3
dev/cazamor/selfhost/11-18
dev/duhowett/fhl-2025/bitmap-fonts
dev/duhowett/server-2025-vms
dev/duhowett/cant-believe-gotta-do-this-shit
dev/lhecker/dark-mode
dev/cazamor/sui/invert-cursor-color
dev/duhowett/fhl-2025/wt-command-palette-cmdpal-integration
dev/duhowett/fhl-2025/wt-json-relative-icons
dev/lhecker/fucking-service-locator
dev/duhowett/unicode-17
dev/duhowett/multi-blern
dev/lhecker/wellp2-alt
dev/duhowett/wellp2
dev/lhecker/1860-horizontal-scrollbar
dev/lhecker/fix-window-count
dev/cazamor/sui/tab-color-old
dev/duhowett/hax/conhost-icon
dev/duhowett/hax/sui-color-chip-border
dev/duhowett/hax/terminalsettings-as-a-lib-/with-types-merged-into-tsm
dev/pabhoj/page_control_input_cleanup
dev/duhowett/padding-in-atlas-rebase-20250729
dev/lhecker/attach-thread-input
dev/duhowett/portable-shader-members
msbuildcache-reenable
dev/cazamor/selfhost/1.24-2025-06-10
dev/cazamor/upgrade-settings-containers
dev/cazamor/sui/ext-page/powershell-stub
dev/cazamor/selfhost/1.24-2025-05-15
dev/pabhoj/sui_action_overhaul
dev/cazamor/selfhost/1.24-2025-05-06
dev/cazamor/selfhost/1.24-2025-04-29
dev/cazamor/sui/ext-page/lazy-load-objects
dev/cazamor/sui/ext-page/badge
dev/cazamor/selfhost/1.24
dev/lhecker/sdk-26100
dev/duhowett/testing
dev/jadelaga/VS-Pty.Net-1.22
dev/duhowett/fhl-2025/what-if-no-content-ids
dev/lhecker/18584-part2
dev/lhecker/get-lang-id
dev/duhowett/hax/clogs
release-1.21
dev/pabhoj/featurellm_fix_paste
dev/lhecker/grapheme-backup
dev/jadelaga/VS-Pty.netFixes
dev/lhecker/atlas-engine-compute-shader
dev/migrie/s/ai-providers
dev/lhecker/animated-cursor-wip
dev/pabhoj/featurellm_timeout
dev/lhecker/dark-mode-alt
dev/duhowett/osc-strided-table
dev/lhecker/bugbash
dev/pabhoj/featurellm_improve_parsing
dev/duhowett/coast-to-coast
dev/lhecker/curly-improvements
dev/duhowett/net8
dev/duhowett/onebranch-custom-pool
dev/lhecker/renderer-overhaul-2nd-attempt
dev/lhecker/cleanup
dev/cazamor/sui/confirmation-announcements
dev/lhecker/winconpty-cleanup
dev/duhowett/learn/rewrite-highlights
dev/migrie/b/no-nesting-when-searching
release-1.20
dev/duhowett/sel-2-spans
dev/lhecker/7118-cursor-color
dev/lhecker/remove-glyph-width
dev/lhecker/igfw-scroll-region
dev/lhecker/17656-win32im-double-encoding
dev/duhowett/fhl-2024/merge-idls
dev/duhowett/feed-forward-variables
dev/lhecker/remove-chrome-math
dev/duhowett/copylink
dev/duhowett/applicableactions
gh-readonly-queue/main/pr-17566-de50310295b7d92ed3d51f07974a2a945776bf9d
dev/lhecker/atlas-engine-stride-copy
dev/migrie/b/bump-nuget-in-c
dev/migrie/f/992-redux-redux
dev/migrie/f/filter-weight-input-too
dev/migrie/f/disable-nesting
dev/migrie/f/local-snippets-cleaner
dev/migrie/s/1553-mouse-bindings
selfhost-1.22-bugbash-2024-06-04
selfhost/1.22-bugbash-2024-06-04
dev/lhecker/15689-tab-drag-crash-fix
dev/migrie/f/sxnui-font-size-change
dev/migrie/f/local-snippets-on-action-refactor
dev/migrie/f/just-local-snippets
dev/migrie/save-input-patches
dev/migrie/f/md-pane-official
dev/migrie/base-pane
dev/migrie/fhl/tasks-pane
release-1.19
dev/migrie/b/17130-clear-marks-2
dev/migrie/b/17075-its-me-the-killer
dev/duhowett/i-figured-out-why-sometimes-the-publish-build-failed
dev/duhowett/nuget-publication-with-aad-app-id
selfhost-1.20
dev/duhowett/graph
dev/migrie/b/15803-activate-dont-copypasta
dev/duhowett/is-pgo-broken-because-of-sui-being-slower
dev/migrie/b/remove-terminaltab
dev/migrie/fhl/md-pane
dev/migrie/fhl/local-tasks-2024
dev/migrie/fhl/2024-inline-notebook
dev/duhowett/interface-projects
dev/duhowett/dead-loc
release-1.18
dev/migrie/fhl/2024-spring-merge-base
dev/duhowett/hax/l9
inbox
dev/migrie/14073-on-main
dev/duhowett/hax/conhost_dump_replay
user/lhecker/atlas-engine-srgb
dev/migrie/fhl/sxnui-tooltips-3
dev/migrie/7718-notifications-experiments
dev/migrie/fhl/7718-notifications
dev/migrie/fhl/7718-notifications-reboot
dev/lhecker/remove-gsl
dev/lhecker/16575-TerminateProcess
dev/lhecker/window-thread-climate-control
dev/lhecker/client-context-input-output-mode
dev/lhecker/ring-buffer-input-buffer
release-1.17
dev/lhecker/propsheet-fontdlg-refactor
dev/lhecker/renderer-overhaul
dev/pabhoj/test
dev/duhowett/chop
dev/lhecker/til-ulong-cleanup
dev/lhecker/til-env-cleanup
dev/migrie/f/16005-a11y-pane
dev/cazamor/a11y/fastpass
dev/migrie/b/15487-push-cwd
dev/migrie/b/15536-or-15219-idk
dev/duhowett/move-timers-down-into-core-interactivity-etc
dev/migrie/b/15812-broadcast-paste-two
dev/migrie/fhl-fall-2023/11162-quake-III-arena
dev/migrie/fhl-fall-2023/1620-automatic-tab-progress
dev/migrie/fhl-fall-2023/9992-quake-II
dev/migrie/fhl-fall-2023/9992-default-quake-settings
dev/migrie/fhl-fall-2023/9992-window-name-settings
dev/migrie/fhl-fall-2023/oceans
dev/lhecker/ColorScheme-improvements
dev/migrie/search-v2-v3
dev/migrie/pr-15717/its-dangerous-to-go-alone
dev/migrie/f/4768-taskbar-icons
dev/migrie/f/3121-tooltips
dev/duhowett/sticky-control
dev/duhowett/fix-tracing-2
dev/migrie/b/add-support-for-vsc-marks
dev/migrie/f/1860-this-is-literally-what-less-is-for
dev/migrie/s/5916-draft
dev/lhecker/tracy
dev/migrie/s/north-star
dev/cazamor/tag-youre-it
dev/migrie/f/12336-let-it-mellow
dev/migrie/f/now-with-more-compat-settings
dev/migrie/f/compatibility-sui
dev/duhowett/hax/wpf-atlas
dev/duhowett/fgb
dev/migrie/b/15487-relative-paths-are-hard
dev/lhecker/colrv1
loc-update
dev/migrie/fhl/dyndep-csharp
dev/migrie/fhl/dyndep
dev/migrie/fhl-clickable-send-input
dev/migrie/f/cwd-hijinks-5506-15173
dev/lhecker/openconsole-async-start
1.17
dev/migrie/bump-scratch
dev/migrie/f/3726-restartConnection
dev/migrie/b/cxn-restarting-attempt-1-backport
dev/migrie/b/9053-part-3-the-actual-doing-of-the-thing
dev/migrie/b/13388-focus-logger
dev/migrie/b/9053-part-4-i-guess-defterm
dev/migrie/oop/3/of-the-silmarils
of-the-darkening-of-valinor
dev/migrie/fhl/notebook-proto-000
dev/migrie/f/narrator-buddy
dev/migrie/mux-2.8.2-march-2023
dev/migrie/f/roast-mutton
dev/migrie/f/12861-preview-input
dev/lhecker/clang-tidy
dev/migrie/f/3121-wE-dOnT-hAvE-dEv-DaYs
dev/duhowett/compiler-compliance
dev/duhowett/i-have-a-burning-hatred-for-ntstatus-of-later-so-why-not-fix-it
dev/duhowett/shorthand-namespaces
dev/duhowett/rename-all-dlls
dev/duhowett/errordialog
dev/lhecker/gsl-narrow
dev/migrie/b/11522-dumb-idea
release-1.16
dev/miniksa/env
dev/duhowett/hax/embed-everything
dev/migrie/b/13388-attempt-003
dev/migrie/b/14512-test-research
dev/migrie/b/13388-attempt-002
dev/migrie/b/14464-copyOnSelect-moving-text
dev/migrie/s/thema-schema-for-1.16
dev/migrie/s/theme-pair-schema
dev/migrie/b/13388-experiments-1
dev/cazamor/spec/a11y-vt-seq
dev/migrie/b/14557-empty-folder-dropdown
dev/cazamor/spec/a11y-vt-seq-v2
release-1.15
dev/migrie/f/process-model-v3-test-0
dev/lhecker/vsconfig
dev/migrie/s/5000-presentation
dev/lhecker/5907-startup-perf
dev/lhecker/winrt-file-api-benchmark
dev/duhowett/128-bit-compiler
dev/migrie/fhl/more-shell-integration
dev/migrie/b/13388-experiments-0
dev/lhecker/til-to-ulong-improvements
dev/migrie/s/markdown-notebooks
dev/cazamor/a11y/nav-by-page
dev/cazamor/a11y/system-menu-support
dev/duhowett/no-private-registry-keys
dev/cazamor/wpf/uia-expose-enable-events
dev/cazamor/wpf/uia-events
extendAISpec
dev/migrie/fhl/clickSendInput
dev/migrie/fhl/save-command
dev/migrie/b/theme.profile
dev/migrie/b/13943-a-test-for-this
dev/migrie/oop/2/endgame
dev/duhowett/hax/merge_idl
dev/migrie/oop/2/infinity-war
dev/migrie/spellbot-cve
dev/cazamor/a11y-sev3/new-profile-announcement
dev/migrie/fhl/upside-down-mode
release-1.14
dev/migrie/f/9458-startupInfoToTerminal
dev/migrie/fhl/5916-triggers
dev/migrie/b/13523-context-menu
dev/migrie/b/6523-endpaint-outside-lock
dev/migrie/b/12413-OnUnhandledException
dev/lhecker/render-snapshot
dev/cazamor/1.15/scroll-to-point
dev/migrie/mux-2.8-aug-2022
dev/lhecker/lock-console-guard
dev/migrie/f/1504-final
dev/pabhoj/sui_follow_ups
dev/migrie/f/til-winrt.h
dev/cazamor/color-picker-redesign
dev/migrie/fhl/vscode-autocomplete-prototype
dev/migrie/f/1504-prototype
dev/migrie/oop/2/loki
dev/migrie/oop/2/wandavision
dev/migrie/b/8698-YOURE-OUT-OF-ORDER
fabricbot-configuration-migration
dev/migrie/b/12788-did-it-work
dev/migrie/b/localtests-ci-2022
dev/cazamor/1.14/replace-compareInBounds
dev/pabhoj/preview_string
dev/cazamor/ks/switchSelectionEndpoint
dev/migrie/oop/2/COM-ISwapChainProvider-attempt-1
dev/migrie/b/dxd-marker
release-1.13
dev/migrie/b/13066-for-defterm
dev/cazamor/revert-dwm
dev/migrie/b/13066-sw_flash_repeatedly
dev/migrie/b/no-cloaky-cloak
dev/migrie/f/apples-to-oranges
dev/migrie/f/no-custom-caption-btns
dev/migrie/f/10509-mica-and-transparent-titlebars
dev/migrie/b/12911-wpf-focus-fg
dev/migrie/titebar-colors
dev/lhecker/4015-cursor
dev/migrie/fhl/rgb-rainbow-window-frame
dev/migrie/fhl/scroll-marks-prototype
release-1.12
dev/miniksa/compliance
dev/migrie/f/default-icons
dev/migrie/fhl/10175-web-search-for-text
dev/migrie/fhl/menu-complete-prototype
dev/migrie/b/2988-merged-prototypes
dev/migrie/b/2988-niksa-msgs-prototype
dev/migrie/fhl/9583-colorSelection
dev/migrie/b/10609-sui-leak
dev/migrie/b/32-attempt-3
dev/migrie/release-1.12-rejuv-attempt-2
dev/migrie/demo-for-presentation
dev/migrie/b/32-but-im-here-for-12567
dev/duhowett/conpty_first_frame_blug
dev/migrie/b/11092-unfocused-acrylic-settings
dev/migrie/localtests-in-ci
dev/migrie/b/12356-attempt-2
dev/migrie/b/12353-with-null
dev/migrie/b/12387-trim-spaces
dev/migrie/b/5033-bad-start
dev/lhecker/12351-broken-locales
dev/migrie/b/8663-input-to-oem-crash
dev/migrie/b/11743-win10-opacity-is-hard
dev/migrie/f/ctrl-click-elevate
dev/migrie/b/12196-shim-localization
dev/lhecker/issue-4015-til-rect
dev/cazamor/eim/mvvm
dev/migrie/f/--elevate
dev/migrie/b/11668-i-think
dev/migrie/b/11994-wsl-mangline
dev/migrie/eim/3475-action-xmacros
dev/migrie/eim/incremental-build-000
dev/cazamor/a11y/fake-uia-data
dev/migrie/f/non-terminal-content-elevation-warning
dev/migrie/f/632-on-warning-dialog
dev/lhecker/rgba
dev/migrie/b/8480-keybindings-in-tabs
release-1.11
dev/migrie/b/11561-dead-ends
dev/migrie/oct-21-roadmap-update
dev/migrie/fhl/adaptive-card-extension
dev/cazamor/test/11440
dev/migrie/f/warning-dlg-automation
dev/migrie/b/1.12-crash-on-exit
dev/migrie/b/11146-next-tab-in-cmdpal
release-1.10
dev/migrie/5ff9a24-and-75e2b5f
dev/duhowtt/hax/cpal-jumplist-async
dev/lelian/actionid/1
dev/migrie/f/just-elevated-state
dev/lhecker/terminal-settings-cleanup
dev/migrie/gh-10824
dev/pabhoj/cursor_light
dev/migrie/oop/wandavision
dev/migrie/oop/endgame
dev/migrie/oop/infinity-war
dev/lhecker/app-state-actually-hidden
dev/migrie/b/6160-dynamic-default-warning
dev/mgirie/b/more-nchhittest-ideas
dev/migrie/b/9320-interfacial-separation
cinnamon/fhl/find-contextmenu
dev/lhecker/wsl-distro-generator-cleanup
dev/migrie/b/10875-but-more-clever
dev/migrie/b/broken-globalsummon-overloading
dev/duhowett/hax/rle-row
dev/migrie/fhl-2021/cmdpal-select-list
dev/migrie/fhl-2021/differential-pixel-shading
dev/duhowett/hax/no-writable-glyphat
dev/migrie/fhl-2021/more-shader-variables
dev/migrie/titlebar-shenannigans
dev/miniksa/win10_font_matching
dev/lhecker/conhost-oom
dev/migrie/b/10332-less-snappy-scrolling
dev/migrie/b/7422-1px-top-border
release-1.9
dev/cazamor/move-scratch
release-1.8
dev/miniksa/manifest_2
release-1.6
release-1.7
dev/migrie/oop/the-whole-thing
dev/migrie/oop/connection-factory
dev/migrie/f/quake-dropdown-2
dev/miniksa/rle2
dev/migrie/f/quake-toCurrent-experiments-2
dev/migrie/f/quake-toCurrent-experiments
dev/migrie/f/quake-dropdown
dev/cazamor/actions-page/template
dev/duhowett/hax/cursor_stamp_foreground_background
dev/migrie/f/1860-hey-might-was-well-hack-during-a-hackathon
dev/migrie/oop-terminal.control-split-control
dev/duhowett/hax/build-with-wholearchive
dev/cazamor/spec/tsm-actions-temp
dev/migrie/oop-tear-apart-control
dev/migrie/oop-scratch-3
dev/cazamor/sui/bugfix-reload-crash
dev/migrie/f/xmacro
dev/cazamor/sui/proto/profile-nav-view
dev/migrie/f/name-windows
dev/migrie/dol/messing-with-shaders-take-1
release-1.5
dev/cazamor/sui/inheritance-hyperlinks-test
dev/migrie/r/commandline-lib-002
dev/migrie/f/com.fabrikam.toaster
dev/cazamor/adaptive-cards-prototype
dev/migrie/f/commandline-lib
dev/miniksa/zipzoom2
dev/migrie/f/remote-commandlines
dev/migrie/f/632-elevated-profiles
dev/migrie/oop-broker-000
dev/migrie/fix-pr-7015
dev/duhowett/clang
dev/miniksa/input_tests_2
dev/miniksa/input2
dev/migrie/oop-rpc-000
release-1.4
dev/migrie/oop-mixed-elevation-1
dev/migrie/oop-window-content-1
cinnamon/open-json
dev/miniksa/input_tests
dev/duhowett/hax/tsm-graphviz
dev/miniksa/input
dev/duhowett/hax/caption_buttons
release-1.3
dev/cazamor/a11y/expand-line-under-viewport
dev/cazamor/acc/ch/word-nav-perf
dev/cazamor/spec/settings-ui-architecture-draft
dev/duhowett/hax/tap_upgrade
dev/migrie/f/pane-exit-animation
release-1.2
dev/migrie/move-lib-up-and-dll-down
release-1.1
dev/migrie/f/branch-2-backup
dev/migrie/f/settings-getters-only
dev/duhowett/hax/command_palette_search
dev/migrie/f/6856-let-terminalpage-expandcommands
dev/migrie/f/theming-2020
dev/migrie/oop-scratch-4
dev/duhowett/hax/punchout
dev/migrie/s/action-ids
dev/migrie/f/lets-just-generate-these
dev/migrie/oop-scratch-2
dev/miniksa/dcomp
dev/miniksa/gotta_go_fast_spsc
dev/miniksa/gotta_go_fast
dev/miniksa/perf_skip_checks
dev/miniksa/perf_buffer_dig
dev/migrie/s/1203-cursorTextColor
dev/migrie/f/fix-intellisense-i-guess-backup
release-1.0
dev/migrie/f/execute-commandlines
dev/migrie/f/2046-Command-Palette-v2
dev/migrie/b/6421-passthrough-alt
dev/migrie/b/moving-focus-is-hard
dev/miniksa/set
dev/migrie/f/1203-phase-1
dev/migrie/f/get-localtests-in-ci
dev/cazamor/drag-panes
dev/cazamor/tile-background
release-0.11
dev/duhowett/dev/duhowett/hax/appstate_remember
dev/duhowett/hax/wpf_win_8_hax
dev/migrie/b/3088-weird-exact-wrap-resize
release-0.10
dev/migrie/b/4591-custom-scaling-bug
dev/duhowett/hax/attr_smuggling
dev/migrie/b/5161-mingw-vim-fix
dev/miniksa/dx_bitmap
dev/migrie/b/1503-try-messing-with-cooked-read
dev/duhowett/eyebeam
dev/migrie/b/5113-experiments
dev/duhowett/hax-selection-exclusive
dev/migrie/f/more-vt-renderer-tracing
dev/miniksa/bitmap
dev/duhowett/wprp
dev/miniksa/bitmap-mad-with-power
dev/migrie/f/resize-quirk
dev/migrie/f/reflow-buffer-on-resize-002
wpf-renderer-revert
dev/miniksa/draw
release-0.9
dev/miniksa/tabs-color-fix
dev/miniksa/4309
dev/migrie/f/just-wrapping
dev/migrie/b/3490-try-another-resize-algo
release-0.8
dev/migrie/b/3490-a-simpler-resize
dev/migrie/b/3490-resize-down
dev/miniksa/4254
dev/migrie/f/conpty-wrapped-lines-2
dev/migrie/b/be-better-at-hiding
dev/migrie/f/3327-xaml-theming-proto
dev/miniksa/gardening2
release-0.7
dev/duhowett/conpty-flags
dev/migrie/f/603-vintage-opacity
dev/migrie/PR#3181-comments
dev/duhowett/font-64
release-0.5
dev/migrie/b/663-paste-lf-always
dev/migrie/b/2011-reordered-fallthrough-strings
dev/migrie/b/411-init-tab-stops
dev/migrie/b/json-patching-is-hard
dev/migrie/b/2455-try-getting-tests-working
dev/migrie/b/1223-change-256-table
dev/migrie/f/2171-openterm.cmd
dev/migrie/f/drag-panes
dev/migrie/f/2046-command-palette
release-0.3
dev/miniksa/manager
dev/migrie/f/non-terminal-panes
dev/migrie/f/passthrough-2019
dev/miniksa/shared_pch
dev/migrie/f/1897-less-duplicated-work
release-0.2
dev/cazamor/mcs/viewport-selection
dev/duhowett/version_hack
v1.25.1912.0
v1.24.11911.0
v1.25.1322.0
v1.24.11321.0
v1.25.1241.0
v1.25.1171.0
v1.25.923.0
v1.24.10921.0
v1.25.622.0
v1.24.10621.0
v1.24.10212.0
v1.23.20211.0
v1.24.3504.0
v1.23.13503.0
v1.24.2812.0
v1.23.12811.0
v1.24.2682.0
v1.23.12681.0
v1.24.2372.0
v1.23.12371.0
v1.23.12102.0
v1.22.12111.0
v1.23.11752.0
v1.22.11751.0
v1.22.11141.0
v1.23.11132.0
v1.23.10732.0
v1.22.10731.0
v1.21.10351.0
v1.22.10352.0
v1.23.10353.0
v1.22.3232.0
v1.21.3231.0
v1.22.2912.0
v1.21.2911.0
v1.22.2702.0
v1.21.2701.0
v1.22.2362.0
v1.21.2361.0
v1.21.1772.0
v1.20.11781.0
v1.21.1382.0
v1.20.11381.0
v1.21.1272.0
v1.20.11271.0
v1.20.11215.0
v1.19.11213.0
v1.20.10822.0
v1.19.10821.0
v1.20.10572.0
v1.19.10573.0
v1.20.10303.0
v1.19.10302.0
v1.18.10301.0
v1.20.10293.0
v1.19.10292.0
v1.18.10291.0
v1.18.3181.0
v1.19.3172.0
v1.19.2831.0
v1.18.2822.0
v1.19.2682.0
v1.18.2681.0
v1.18.1462.0
v1.17.11461.0
v1.18.1421.0
v1.17.11391.0
v1.17.11043.0
v1.16.10261.0
v1.17.1023
v1.16.10231.0
v1.15.3465.0
v1.16.3463.0
v1.15.2712.0
v1.15.2874.0
v1.16.2641.0
v1.16.2523.0
v1.15.2524.0
v1.15.2282.0
v1.14.2281.0
v1.14.1962.0
v1.15.2002.0
v1.15.2001.0
v1.15.1862.0
v1.14.1861.0
v1.14.1451.0
v1.14.1432.0
v1.13.11431.0
v1.13.10983.0
v1.12.10982.0
v1.13.10733.0
v1.12.10732.0
v1.13.10395.0
v1.12.10393.0
v1.13.10336.0
v1.12.10334.0
v1.12.3472.0
v1.11.3471.0
v1.12.2931.0
v1.12.2922.0
v1.11.2921.0
v1.11.2731.0
v1.10.2714.0
v1.11.2421.0
v1.10.2383.0
v1.10.1933.0
v1.9.1942.0
v1.9.1523.0
v1.8.1521.0
v1.9.1445.0
v1.8.1444.0
v1.8.1092.0
v1.7.1091.0
v1.8.1032.0
v1.7.1033.0
v1.7.572.0
v1.6.10571.0
v1.5.10411.0
v1.6.10412.0
v1.6.10272.0
v1.5.10271.0
v1.5.3242.0
v1.4.3243.0
v1.5.3142.0
v1.4.3141.0
v1.4.2652.0
v1.3.2651.0
v1.3.2382.0
v1.2.2381.0
v1.1.2233.0
v1.2.2234.0
v1.1.2021.0
v1.2.2022.0
v1.1.1812.0
v1.0.1811.0
v1.1.1671.0
v1.0.1401.0
v0.11.1333.0
v0.11.1251.0
v0.11.1191.0
v0.11.1111.0
v0.11.1121.0
v0.10.781.0
v0.10.761.0
v0.9.433.0
v0.8.10261.0
v0.8.10091.0
v0.7.3451.0
v0.7.3382.0
v0.7.3291.0
v0.7.3252.0
v0.6.3181.0
v0.6.2951.0
v0.6.2911.0
v0.5.2762.0
v0.5.2761.0
v0.5.2681.0
v0.5.2661.0
v0.3.2321.0
v0.4.2342.0
v0.4.2382.0
v0.3.2171.0
v0.3.2142.0
v0.2.1831.0
v0.2.1715.0
v0.2.1703.0
v0.1.1621.0
v0.1.1581.0
v0.1.1502.0
v0.1.1431.0
v0.1.1361.0
v0.1.1093.0
v0.1.1161.0
v0.1.1204.0
experiment-master
v0.1.1025.0
experiment-OutsideBuild
broken-tabstops
RS2-final
v0.1.1002.0
experiment-rel-windows-inbox
experiment-f-ServerApp
v0.1.1211.0
1904.29002
1810.02002
1708.14008
Labels
Clear labels
⛺ Reserved
A11yCO
A11yMAS
A11ySev1
A11ySev2
A11ySev3
A11yTTValidated
A11yUsable
A11yVoiceAccess
A11yWCAG
Area-Accessibility
Area-AtlasEngine
Area-AzureShell
Area-Build
Area-Build
Area-Chat
Area-CmdPal
Area-CodeHealth
Area-Commandline
Area-CookedRead
Area-DefApp
Area-Extensibility
Area-Fonts
Area-GroupPolicy
Area-i18n
Area-Input
Area-Interaction
Area-Interop
Area-Localization
Area-Output
Area-Performance
Area-Portable
Area-Quality
Area-Remoting
Area-Rendering
Area-Schema
Area-Server
Area-Settings
Area-SettingsUI
Area-ShellExtension
Area-ShellExtension
Area-ShellExtension
Area-Suggestions
Area-Suggestions
Area-TerminalConnection
Area-TerminalControl
Area-Theming
Area-UserInterface
Area-VT
Area-Windowing
Area-WPFControl
AutoMerge
Blocking-Ingestion
Culprit-Centennial
Culprit-WinUI
Disability-All
Disability-Blind
Disability-LowVision
Disability-Mobility
External-Blocked-WinUI3
Fixed
Gathering-Data
good first issue
HCL-E+D
HCL-WindowsTerminal
Help Wanted
Impact-Compatibility
Impact-Compliance
Impact-Correctness
Impact-Visual
In-PR
InclusionBacklog
InclusionBacklog-Windows TerminalWin32
InclusionCommitted-202206
Issue-Bug
Issue-Docs
Issue-Feature
Issue-Feature
Issue-Question
Issue-Samples
Issue-Scenario
Issue-Task
Needs-Attention
Needs-Author-Feedback
Needs-Bisect
Needs-Discussion
Needs-Repro
Needs-Tag-Fix
Needs-Tag-Fix
Needs-Triage
No-Recent-Activity
Priority-0
Priority-1
Priority-2
Priority-3
Product-Cmd.exe
Product-Colortool
Product-Colortool
Product-Colortool
Product-Conhost
Product-Conpty
Product-Meta
Product-Powershell
Product-Terminal
Product-WSL
pull-request
Resolution-Answered
Resolution-By-Design
Resolution-Duplicate
Resolution-External
Resolution-Fix-Available
Resolution-Fix-Committed
Resolution-No-Repro
Resolution-Won't-Fix
Severity-Blocking
Severity-Crash
Severity-DataLoss
spam
this-will-be-a-breaking-change
Tracking-External
WindowsTerminal_Win32
Work-Item
zAskModeBug
zInbox-Bug
Mirrored from GitHub Pull Request
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/terminal#16801
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Eryx5502 on GitHub (Feb 17, 2022).
Windows Terminal version
1.11.3471.0
Windows build number
10.0.22000.493
Other Software
No response
Steps to reproduce
Open a Windows Terminal, unplug the power suply, close the lid of the laptop so that it sleeps. Then, when reopening the and singing in, the Windows Terminal has disappeared.
Expected Behavior
The terminal should be there when waking up
Actual Behavior
First, I'm aware of some issues which look the same (e.g. #11611, #7183) but they are closed, and also some similar ones which are related with Microsoft Store updates. This shouldn't be the case since I have automatic updates set to off and also the app wasn't updated for some time while the clossing has happened more than 3times today.
The behaviour is the following: everytime my laptop goes back from sleep mode, any open terminal has disappeared. I usually work with WSL2 on the Windows Terminal, most of the time using tmux. When it closes, sometimes I can still find and re-attach my old tmux session when I open a new WSL terminal, some other times the session is closed. It also happens with Powershell instead of wsl and, I guess, any other terminal.
I noticed this happens only when the laptop is not plugged to power, so it might be something related with power settings, but I couldn't find any related option.
@zadjii-msft commented on GitHub (Feb 17, 2022):
Weird. Can you try following the steps in this post to set up automatic crash dumps? (For more info, see this link) If that works, then you should be able to automatically get a
.dmpof the terminal when it crashes. Then, can you zip that dump up and send it to us, so we can investigate? Thanks!Another question from a related thread:
It's possible the Store is using that as an opportunity to update PowerShell, and when pwsh exits it takes the Terminal with it.
You're on 1.11.3471.0 which would seem to suggest you haven't just been unlucky and hit with an update twice in a row.
That's super weird. Hopefully we can get to the root cause here.
@Eryx5502 commented on GitHub (Feb 17, 2022):
I have followed the steps for setting up automatic crash dumps and triggered the bug several times, but no dump file has been generated.
About closeOnExit, I have set it to never and it makes no difference. I don't think it makes a difference, but I use wsl2 with Ubuntu 20.04. The bug also happens with Powershell.
@zadjii-msft commented on GitHub (Feb 18, 2022):
Interesting. So, something is taking the Terminal down "gracefully". And not just the shell, but the actual Terminal itself. Hmm. I'm not sure we could even add good logs for this. Even if we added a message when we're requested to close, then like whoever's coming through and killing us - we won't know that. I wonder if we're being subjected to some PLM rules or something (which we definitely shouldn't be). I know it's a long stretch, but any chance there's anything being logged in Event Viewer when this happens? I know that's a needle in a haystack, I just have no idea where to even begin with this 😕
@Eryx5502 commented on GitHub (Feb 18, 2022):
Ok, I've tried to do experiment a bit and look at the Event Viewer. It is indeed like looking for a needle in a haystack. I haven't got any record directly related with Windows Terminal. But I have noticed 2 things (which might be unrelated with the problem, but have happened consistently on my tries). Everytime I close the lid with the laptop unplugged both the terminal disappears and I get couple of events whose info is pasted below. Also, the pc goes to sleep mode fairly quickly. Whenever the pc is plugged to the power, I don't get those events, it takes some time for the pc to enter sleep mode and the terminal doesn't disappear.
I'm quite lost here. Let me know if you think I should look for events in some particular folder in the Event Viewer.
@zadjii-msft commented on GitHub (Feb 18, 2022):
"The power manager has not requested the deletion of all entries" / "The power manager has requested the deletion of all entries"
Hmm.
Do any other apps close? Something like, calculator? or MsPaint?
I've never seen sucha crazy thing so I'm just collecting links as I go.
Those seem to suggest that there's something in your power settings you might be able to change, but that also seems to imply that all apps would close when the laptop enters sleep mode.
@Eryx5502 commented on GitHub (Feb 18, 2022):
Ok, I just check and it does happen to other apps, I just didn't notice before. It happens at least with Calculator and also with Windows Configuration. I will watch if it happens to more apps, but there are other apps which never close such as Firefox, Thunderbird, pdf readers, etc. I tried to follow the suggestions on the links you sent and those options ("hybrid sleep" and "hibertate after") don't appear on the "Change plan settings" dialog. The Power Troubleshooter didn't solve it.
Also, since it looks that it is not a Windows Terminal thing, should I also report it anywhere else?
@vietor commented on GitHub (Feb 25, 2022):
Try close the "Hide TitleBar".
"showTabsInTitlebar": true
@Eryx5502 commented on GitHub (Feb 25, 2022):
I do have that
showTabsInTitlebarset totrue. I've tried with bothtrueandfalseand it makes no difference.@vietor commented on GitHub (Feb 25, 2022):
"showTabsInTitlebar": false,
"showTerminalTitleInTitlebar": false
It's successed in my case. Windows 11.
@Eryx5502 commented on GitHub (Feb 25, 2022):
I just tried and didn't make a diference for me. Perhaps our problems wasn't the same.
@zadjii-msft commented on GitHub (Feb 28, 2022):
Honestly, your best bet might just be the feedback hub at this point. That's not really a great option for getting answers, but it should at least get some traces to people who might be able to fix it. I'm not sure there's much else we'll be able to do on our end :/
If you do file feedback, share the
aka.mslink here and I can make sure it gets promoted and follow-up with whatever the results are ☺️@Eryx5502 commented on GitHub (Feb 28, 2022):
I did fill the feedback form: https://aka.ms/AAfza6a
Thanks for the help and let's see if i'm lucky and something comes out of the Feedback Hub.
@zadjii-msft commented on GitHub (Feb 28, 2022):
(this was promoted internally to MSFT:38334285, and I'll follow that for updates)
@puhazh commented on GitHub (Apr 20, 2022):
Having the same issue, but noted this is happening even if my laptop is left connected to the power supply. No clues in the windows event viewer log of any crash.
@zadjii-msft commented on GitHub (Apr 20, 2022):
@puhazh Does this happen to you frequently? It's also possible that the Store may have noticed that there was an update available for the Terminal, and chose to update it for you right as it was going to sleep / resuming from sleep. The timing of your report does seem like it might be related to the latest build that we just pushed out.
@Eryx5502 commented on GitHub (Apr 20, 2022):
@puhazh, now its also happening when connected to the power supply in my case. Something changed and now Terminal always go away when waking up. However, the same happens to other (all?) apps also (windows 10 apps from the Microsoft Store).
I'm not hoping for a solution any time soon, but if you're using Windows Terminal with wsl, what is working for my is to use tmux with an automatic session saver/loader pluggin so that I can recover everything I had running before it disapeared.
@puhazh commented on GitHub (Apr 20, 2022):
@zadjii-msft It happens every time I put my system to sleep and wake up after sometime, this doesn't happen if I wake up back in a short time, but if its more than 2 hours (the one I see is after 2 hours, not sure of the exact duration). Since the issue is consistent, let me know if I there is a debug flag that I can set to capture information that might be of help to debug the issue. I use terminal with WSL, not sure if its only when using WSL.
@riteshkr54 commented on GitHub (Apr 22, 2022):
I'm seeing same behavior since last few days. Not sure about other windows app, but I have multiple chrome profiles with multiple tabs open and and all profiles but one closes down.
@drew-codes commented on GitHub (Apr 27, 2022):
Hey there, I'm also having a similar issue, with Ubuntu (via WSL2) running on Windows Terminal. Whether I am connected to power or not, when I close the lid of my laptop and then go back in, the Terminal is closed. I do not have any issues with other apps such as calculator.
Another interesting thing is that this does not happen to other command-line apps (Command Prompt, Windows Powershell) that run on Windows Terminal.
@drew-codes commented on GitHub (Apr 27, 2022):
Update: I've turned off "Launch on Machine Startup" and it no longer seems to be closing on wake from sleep.
@R4cOOn commented on GitHub (May 12, 2022):
I'm experiencing the same issue with my Terminal (I've got it set up as Powershell).
Every time I put my laptop to sleep overnight, I come back the next morning to a missing Terminal window.
That happens also if I leave the laptop connected to the mains.
I can't see anything in the Event Viewer related to that.
@conoro commented on GitHub (Aug 26, 2022):
Same problem here. Huawei Matebook 14S running latest Windows 11. Also happened before upgrading to Windows 11 from 10.
Every time laptop goes to sleep and I wake it up, all Terminal sessions are gone. It's basically unusable for me on a laptop.
@zadjii-msft commented on GitHub (Aug 26, 2022):
If this happens 100% consistently, then can you follow the steps in: https://github.com/microsoft/terminal/issues/12513#issuecomment-1042998769 to send us a dump?
It's also 100% possible that there's a correlation with the Store force-killing the Terminal to install an update. We did just push out a 1.14 servicing build, so that probably just arrived. If it happens 100% of the time though, it's probably not the Store update situation.
(There hasn't been any progress on the internal bug to report)
@conoro commented on GitHub (Aug 26, 2022):
Thanks. It happens on every sleep/wake.
Running Terminal 1.14.2282.0
Laptop is always on mains power with external USB-C monitor and external mouse/keyboard. Power setting is Balanced with Screen off after 10 minutes and Sleep after 30 mins.
I just set up the DumpFolder key and left the laptop with Terminal running both a CMD tab and a Powershell tab. I let it go to sleep and then woke it up. Terminal was gone but no dmp file was created unfortunately.
As a test I also had separate standalone Powershell and CMD windows. They were unaffected.
@R4cOOn commented on GitHub (Aug 30, 2022):
I set up the dump folder and got some dump files.
The Terminal always disappears when the laptop goes to sleep.
I see 2 crash dumps (I had 2 sessions running).
CrashDumps.zip
@zadjii-msft commented on GitHub (Aug 30, 2022):
Huh. Weird. Those are both
pwsh.exedumps, not Terminal ones. Can you try setting"closeOnExit": "never"in the settings? Maybepwsh.exeis crashing, exiting, causing the Terminal to "crash".@R4cOOn commented on GitHub (Aug 30, 2022):
@zadjii-msft I've added the setting, I'll see what happens tomorrow.
@R4cOOn commented on GitHub (Aug 31, 2022):
Exact same outcome: Terminal is gone and pwsh dump file.
pwsh.exe.44676.dmp.zip
@DHowett commented on GitHub (Aug 31, 2022):
Sorry -- it looks like you're referring to the "Windows Powershell" (
powershell.exe) profile in your screenshot, but the dump you've provided is from a different version of PowerShell (pwsh.exe). Is that intentional? :)@R4cOOn commented on GitHub (Sep 1, 2022):
@DHowett I changed the command line to run PowerShell 7.
What the terminal executes is
C:\Program Files\PowerShell\7\pwsh.exe -noe -c "&{Import-Module """C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"""; Enter-VsDevShell 39a14bae}"So the dumps are coming from the running (and crashing Terminal).
Plase find attached yet another dump pwsh.exe.224.dmp.zip
@zb140 commented on GitHub (Oct 4, 2022):
I'm seeing this now too; I first noticed it a couple of days ago. I'm happy to try to collect some more dumps if it would help.
Edit: come to think of it, this may have started when I updated PSReadline -- that was also a few days ago. Unfortunately I no longer recall what issue I was encountering that made me do that 😁 I've changed my
closeOnExitsetting; if I'm still seeing this tomorrow, I'll look into downgrading PSReadline and see if that changes anything.@conoro commented on GitHub (Oct 18, 2022):
Very happy to see that it has suddenly stopped happening this week after being 100% consistent in disappearing before that.
Windows: 11 Home, 22H2, 22623.746
Terminal: Preview Version: 1.16.2642.0
@MichalStrehovsky commented on GitHub (Oct 31, 2022):
For anyone else hitting this, I was getting a 100% repro of terminal disappearing after sleep. This One Weird Trick fixed it for me (run within PowerShell under a normal conhost (not Terminal), or it will complain that you have to close Terminal first):
Find the path to Terminal's AppxManifest through this if that AppxManifest doesn't exist:
The weird trick is from https://answers.microsoft.com/en-us/windows/forum/all/window-11-closes-my-apps-when-my-computer-goes-to/bd2e212c-a9b3-4bcb-8fe1-f1f95a72336e?page=2. Apparently this affects pretty much all apps installed from Store and has been a problem for almost a year.
@pixiekat commented on GitHub (Nov 4, 2022):
Came here to say this suddenly happened to me too. Windows Terminal Preview.
I'll walk away for five minutes and the system will be in sleep mode. Wake it up, log back in, and Terminal is closed. It seems to be terminating WSL sessions too as I'll have to log back in to an Ubuntu window and start mysql and apache again.
I tried the steps in https://github.com/microsoft/terminal/issues/12513#issuecomment-1232502074 to make sure that wasn't the issue but we'll see.
Following.
@AravindhKumarSivaramakrishnan commented on GitHub (Nov 12, 2022):
I am also facing the same issue after the recent windows update. Any solutions that worked ?
@MichalStrehovsky commented on GitHub (Nov 14, 2022):
Did you try https://github.com/microsoft/terminal/issues/12513#issuecomment-1297821109?
@Simran-B commented on GitHub (Dec 27, 2022):
Today, I noticed for the first time that my PowerShell (pwsh) sessions are gone after energy saving. The processes that these terminals were attached to still run in the background and hog the CPU for some reason (each 15% as per the Task manager even though they should be idling).
Other apps like Calculator are also affected, as others mentioned. It's a Lenovo laptop, and it doesn't make a difference whether it's plugged in or not.
Windows-Terminal, Version: 1.15.3466.0 (last change was on the 15th of December). PowerShell Core (pwsh) v7.3.1. Both installed via the Microsoft Store.
Registering the AppxManifest.xml (https://github.com/microsoft/terminal/issues/12513#issuecomment-1297821109) did not help.
The latest Windows 11 update was apparently
version 22H2 on the 17th of November, but as I wrote above, I just noticed this behavior for the first time today.//edit: Between Nov 17 and Dec 27, there were actually several other updates:
@IlayyaJohanson commented on GitHub (Dec 28, 2022):
Created thread with same problem here. https://answers.microsoft.com/en-us/windows/forum/windows_11-performance/win-11-microsoft-stores-apps-close-on-while-on/7afc907d-0ba8-4334-96ab-c5b9eec5b88a?page=2
Microsoft Store apps are closing. Started after last win11 updates. Any advices appreciated.
@zadjii-msft commented on GitHub (Jan 3, 2023):
This came up in another thread[1], and was something I noticed myself after a clean reinstall. This might be something that the OS is doing itself, as a power-saver feature.
This is just a theory, but if you're encountering this regularly, go look in the Settings app for the Advanced Options for the Terminal.
Make sure that setting is set to Always. That might help here. Not sure when that ever changed - I was under the impression that win32 apps defaulted to always.
[1]: I think? I coulda swore I saw that mail while skimming emails over the holidays, but can't find it now.
@Simran-B commented on GitHub (Jan 5, 2023):
@zadjii-msft Thanks for the suggestion. I ran into some oddities when I tried the advanced app settings. I set the background apps permissions to Always and noticed that the paging of Git no longer works. The terminal responded to keyboard input fine in general, but running e.g.
git logand then using the arrow down or page down keys had no effect, even after restarting Terminal. This problem disappeared after a reboot, so I guess it was unrelated. I then opened Terminal and Calculator and clicked the energy save option in the start menu. The screen turned black, but my laptop did not enter energy save mode. I reverted the background permissions option, but it would still not go to sleep. I installed a pending update for the Synaptics touchpad via Lenovo Commercial Update (a program that installs device-specific firmware etc.) and rebooted. Since then, the laptop enters energy save mode again without problems. No matter the background permissions setting, both the Terminal and Calculator app stay open?! It's fine now even if I unplug the power and activate the battery saver mode. Aside from the touchpad driver update, the only installed update in the meantime was Realtek Semiconductor Corp. - Extension - 10.0.22000.1 (2023-01-04) via Windows Update. I'll keep an eye on it and see if the Terminal begins to disappear again.@nikitakot commented on GitHub (Jan 10, 2023):
The issue doesn't seem to be related to Terminal but to all MS Store apps. For me the same "auto-close during sleep" behavior happens to all apps I have from the store (Slack, Terminal, Spotify...). Is there a way to report it to the MS Store team somehow? I have a stable repro.
I've also tried the following command:
It helped but the issue is back after 2 weeks.
@zadjii-msft commented on GitHub (Jan 10, 2023):
@nikitakot That would seem to confirm my suspicions that this is By-Design, as a part of the "Background App Permissions" settings.
@nikitakot commented on GitHub (Jan 10, 2023):
@zadjii-msft I just tried to change these
Background App Permissionsfor Terminal toAlwaysand put my laptop into sleep. It didn't help, the terminal was closed when I woke up the laptop. Other Store apps also shut down itself (Slack and Spotify).The repro on my machine is constant and I remember it first appeared after
2022-11 Cumulative Update for Windows 11 for x64-based Systems (KB5019157).Couple weeks ago I run this PowerShell command
Get-AppxPackage -AllUsers| Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}and it helped. But today the issue started to happen again.You're not aware how can I submit it to Store/Windows team? I've tried Feedback Hub but got no reply.
@zadjii-msft commented on GitHub (Jan 10, 2023):
If it's a consistent repro, then try the following: /feedback
(I was mostly optimistic that this wasn't a crash of any sort, but was just a "Store doin Store things" issue.)
If there's anything in Event Viewer that looks sus, that might be helpful too.
@ghost commented on GitHub (Jan 10, 2023):
Hi there!



Can you please send us feedback with the Feedback Hub with this issue? Make sure to click the "Start recording" button, then reproduce the issue before submitting the feedback. Once it's submitted, paste the link here so we can more easily find your crash information on the back end?
Thanks!
@nikitakot commented on GitHub (Jan 11, 2023):
@zadjii-msft Well...the Feedback Hub app also shut down itself during sleep together with all other MS Store apps. Feedback Hub is also a MS Store application. So I wasn't able to record traces.
upd
the recording actually happened - https://aka.ms/AAj6ums
@nikitakot commented on GitHub (Jan 13, 2023):
@zadjii-msft did you have a chance to take a look at the traces?
@zadjii-msft commented on GitHub (Jan 13, 2023):
Huh. All the dumps are for conhost. There's no terminal dumps at all. So either the OS is cleanly closing Terminal (causing conhost to crash) or something else is going on.
I did find a couple error reports of pwsh crashing, but presumably, that's just what was in the tabs on the Terminal, and they "crashed" when their underlying conhosts died. All I could get out of those was a
ExceptionCode=3762504530,FACILITY_SECUREBOOT,EXCEPTION_COMPLUS, not super useful.The machine I'm on right now doesn't have access to pull the actual dumps themselves, but historically conhost dumps for something like this haven't been super useful. Maybe the tracing would have something?
@nikitakot commented on GitHub (Jan 13, 2023):
@zadjii-msft which tracing? If you mean Event Viewer I didn't find anything suspicious there.
The script bellow doesn't solve the issue anymore btw.
@Simran-B commented on GitHub (Jan 17, 2023):
I wrote earlier that the problem fixed itself. Well, it's broken again. I set the background app permissions to Always, and tried re-registering and repairing the app, but to no avail. Store apps just vanish. Interestingly, the one time the Calculator window was still there for a few seconds after waking (I don't have a recording of that, though). Another time I had Spotify play music, while also having Calc, Notepad, and Terminal open. None of them disappeared the first two tries. Then I went AFK for a few minutes and when I returned, they were also gone after waking including Feedback Hub.
Calc: https://aka.ms/AAj9bnw (did not appear under My feedback, second attempt: https://aka.ms/AAj7nfd)
Spotify: https://aka.ms/AAj7neo
Terminal: https://aka.ms/AAj7nf4
Notepad et al.: https://aka.ms/AAj7ft7
FWIW, the integrated terminal of VSCode reported this after wake:
The terminal process "C:\Users\<Username>\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe" terminated with exit code: 1.@nikitakot commented on GitHub (Jan 31, 2023):
@zadjii-msft is there a way to propagate it somehow to the MS Store team? I know this bug is most probably not Terminal related but the issue seems to affect a lot of users - for ex. https://answers.microsoft.com/en-us/windows/forum/windows_11-performance/win-11-microsoft-stores-apps-close-on-while-on/7afc907d-0ba8-4334-96ab-c5b9eec5b88a.
I still have a stable repro.
@DHowett commented on GitHub (Feb 1, 2023):
Ah, sorry. We're tracking this internally and it has gotten a lot of attention. 😄
@notuntoward commented on GitHub (Feb 2, 2023):
@DHowett, I hope MS fixes this soon. Where I work, quick responses are expected on Slack, but it is sometimes hours before I realize that Slack has been silently killed, and all the while, somebody has been trying to get in touch.
@zadjii-msft commented on GitHub (Feb 6, 2023):
Heyo look at that, there was progress on the internal bug report:
@rodrigolourencofarinha commented on GitHub (Feb 8, 2023):
I also have this issue, and the problem occurs with all Windows Store apps (e.g., Phone Link, WhatsApp, Killer Intelligence Center).
In my case, the apps are closed only when the computer wakes from sleep when using battery power. When the laptop is plugged in, this problem does not occur. Maybe others can test to see if there is a relationship between battery/AC power with this issue.
If it is related, maybe it is a problem with Modern Standby?
@jnzd commented on GitHub (Feb 16, 2023):
For me this issue happens no matter if the laptop is plugged in or not.
For me the most annoying thing about this is that WSL/ubuntu are store apps. Actually I am not sure if WSL closes or if just Ubuntu shuts down, because I have to go into task manager and shut down WSL separately before I can restart Ubuntu (and Docker, which relies on WSL for what it's worth)
I am happy to see that this issue is getting attention
@wisemanny commented on GitHub (Feb 17, 2023):
I had reported a similar problem before, tried various approaches, nothing turned out to be working. It seems to be now, that the root of problem is TextInputHost.exe. I see that this process disappears and restarts when the computer goes off the sleep mode and, in my case, both WT and Skype crashes. I see that Skype does not remove the icon from the notification's taskbar area, which happens when an app crashes.
Though in my case of WT - I constantly see pwsh.exe dmp files being generated. It seems to me like TextInputHost somehow causes pwsh.exe to crash on input, here is the clr stack:
Here is another one from today's morning:
And here is what Event Log says from .NET, that is why I link the problem to TextInputHost.exe:
TextInputHost.exe is a part of this appx:
C:\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy
I tried using procdump -t to capture its dump on exit. Indeed, it terminates when computer goes off the sleep (at least dump is generated then). But the reason was not clear from the dumps.
This is all I have so far. Hopefully it may help someone to track this down. For me it seems like something cause .net to crash, pwsh is done, WT is closing because there is nothing left. But I think I tried having tabs with cmd and not matter what, it is gone anyway. At the same time, I have Alacritty and wezterm open - they survive sleep just fine. Another idea was that this may be caused by something that impacts only apps installed from windows store. Both WT and Skype are such apps.
@jnzd commented on GitHub (Feb 17, 2023):
Okay, so I may have found a viable fix to this problem in an answer by user ZupperClarke here: https://answers.microsoft.com/en-us/windows/forum/all/microsoft-stores-apps-close-on-while-on-sleeping/52e9c038-fa91-46b4-b3e8-d3f52ddf9811?page=3
and user troglo23 here: https://answers.microsoft.com/en-us/windows/forum/all/window-11-closes-my-apps-when-my-computer-goes-to/bd2e212c-a9b3-4bcb-8fe1-f1f95a72336e?page=2
They suggest running the following command in administrator mode in PowerShell:
I have tried it yesterday, it didn't seem to work initially, but after a restart I could close my lid and the apps stayed open. Further, when I opened my laptop in the morning the apps were also still open.
I haven't restarted since and so I don't know how long term this fix is. (And as a disclaimer I have tried other things, like stopping the my phone app, and disabling auto start for it. This was suggested somewhere. I have since re-enabled it, but not restarted my laptop yet. I am far more confident that the above command was the fix and not changing something about a single app).
@wisemanny commented on GitHub (Feb 18, 2023):
@jnzd, FYI- I saw that trick some time ago and tried it, but for me it did not work. I did it for both WT and Skype. Both are still crashing/closing.
@rodrigolourencofarinha commented on GitHub (Feb 21, 2023):
Today apps started closing whether the computer is plugged in or not.
It's really hard to pinpoint what changed since last week
@graymatter00 commented on GitHub (Feb 26, 2023):
The problem may be related to the Microsoft Phone Link app.
See [Win 11] Microsoft store's Apps close on while on sleeping
@wisemanny commented on GitHub (Feb 26, 2023):
@graymatter00 I had it disabled and not running for a long time and crashes have happen every time during sleep, but decided to uninstall it completely. Will see how it changes the situation.
@wisemanny commented on GitHub (Mar 12, 2023):
Maybe this can be helpful, I used DebugDiag tool to try to get dump upon WT termination, but in the log I see such exceptions (I can provide the complete file):
There are a few more:
and this one
@playday3008 commented on GitHub (Mar 17, 2023):
"Instant hotspot" in "Phone Link" causing that strange behavior, just disable it
@nikitakot commented on GitHub (Mar 21, 2023):
@DHowett @zadjii-msft any updates on the bug? I thought
KB5022913fixed it, but the issue is back.After couple weeks of a properly working laptop (after
KB5022913update) I have the stable repro again. I'm happy to help, collect traces/logs. Does MS at least know what is causing the bug? It's so weird that it was working perfectly fine afterKB5022913and today it started to happen again. The bug is extremely annoying. It sill only affects MS store apps.@wisemanny commented on GitHub (Mar 21, 2023):
I removed Phone Link completely a few weeks ago and it did not improve the behavior.
@boxbot commented on GitHub (Mar 21, 2023):
Same problem. Terminal crashes every single time Windows 11 wakes up from sleep. And WSL2 stops responding.
Windows Terminal
Version: 1.16.10262.0
Windows 11
22621.1105
@unkn0wn-root commented on GitHub (Mar 22, 2023):
Same here.
@peterjuras commented on GitHub (Mar 22, 2023):
This issue should be reopened. This is a real blocker for productive development. We have teams relying on WSL2, this should be treated as an incident at Microsoft.
@IlayyaJohanson commented on GitHub (Mar 22, 2023):
This issue is not only terminal or WSL2 related. It is related to all Microsoft Store dependable software.
@notuntoward commented on GitHub (Mar 22, 2023):
Yes, this is system-wide problem and it's not fixed. This should be reopened.
@zadjii-msft commented on GitHub (Mar 22, 2023):
To reiterate:
The BEST way to get this resolved is to file feedback using the Feedback Hub. Feedback Hub is a bit of a black box, I agree. However, it's the best chance for the relevant traces to end up in the hands of folks who can fix this. File feedback, share the links here, I can try promoting them so that they end up on someone's todo list. But since there's nothing for the terminal team to do here to fix the issue, we're gonna leave the thread closed. That doesn't mean the issue is fixed, it's just not work for us to do.
@nikitakot commented on GitHub (Mar 22, 2023):
I've tried creating multiple Feedback Hub feedbacks but got no responses. I understand the bug is not Terminal related but maybe you can somehow address it to the correct team? MS store unfortunately doesn't have any github or other way to create a bug directly and Feedback Hub doesn't seem to get any attention.
I can collect traces again if you can send them to the right team.
@DHowett commented on GitHub (Mar 22, 2023):
The right team has already been informed, in quite a number of different duplicate bugs that they had to pick through. It would not help us or them to increase the amount of noise 😄
@humiki commented on GitHub (Apr 27, 2023):
Windows 11 10.0.22621 here. I just open Windows Terminal 1.16.10262.0 with the default PowerShell 7.3.4 tab. Put my laptop to sleep. Wake up and Terminal is gone. It's really frustrating. Basically renders any work based on Windows Terminal very inefficient.
If it's a Microsoft Store issue, it's a complete shame that nothing is being done about this major system-wide problem.
Can I elaborate what kind of team is it and is there any kind of ETA or status on this issue? Thank you.
@DHowett commented on GitHub (Apr 27, 2023):
The fix for the issue mentioned in comments starting in February of this year was released in KB5023778.
@DHowett commented on GitHub (Apr 27, 2023):
If you are experiencing this issue after installing KB5023778, please file a new issue and follow the issue reporting steps. Thanks.