implements PLN-0061 shell running lifecycle integration

This commit is contained in:
2026-05-15 11:47:26 +01:00
parent d929f8e2f1
commit c2698e6a22
5 changed files with 112 additions and 16 deletions
@@ -66,10 +66,13 @@ impl ShellRunningStep {
return Some(FirmwareState::AppCrashes(AppCrashesStep { report }));
}
if !outcome.focused_window_active {
if !ctx.os.windows().focused_window_belongs_to_task(self.task_id) {
ctx.os.info(
LogSource::Hub,
format!("Closing shell task {:?}: no focused window active", self.task_id),
format!(
"Closing shell task {:?}: focused window does not belong to task",
self.task_id,
),
);
if let Err(error) = ctx.os.lifecycle().close_task(self.task_id) {
ctx.os.error(