Skip to content

fix(smartqa): warn when an active phone tab is hidden (CHE-3076) [squash] - #254

Merged
congvc-dev merged 2 commits into
mainfrom
agent/x99-codex-sol/che-3076-4ecaea1ba7f2
Nov 4, 2026
Merged

congvc-dev merged 2 commits into
mainfrom
agent/x99-codex-sol/che-3076-4ecaea1ba7f2

Conversation

@congvc-bot-x99

@congvc-bot-x99 congvc-bot-x99 Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Status

Ready. Independent cross-lab PASS by x99-agy-gemini covers head e9d56924c79bf141f9fe5f1bf5433ba2930fbf87: signed verdict. All six current-head checks succeeded.

Conditions

This implements the warning option in the acceptance criteria. Browser suspension can still interrupt WebUSB. This change does not promise keep-alive. Physical-device suspension reproduction is NOT-RUN.

Change

Hiding a tab with an attached or reconnecting phone now raises a global, dismissible warning to keep the tab visible. The warning stays when the user returns and clears on disconnect or drop. Attachment while already hidden also raises the warning. The listener is removed on service destruction.

The alert uses existing warning tokens, an accessible dismiss button and mobile navigation clearance. A What's New entry explains the behavior.

Evidence

Base: a14514a4508c366344c367aa39f672454de9c38f.
Head: 07a9dd9b418ac5a07dea6b0abad46d8c723faac0.

Test-first: added five tests and an inert backgroundWarning = signal(false) interface before implementation. All five tests failed at both widths. The red candidate had no visibility listener or warning template.

Same command for observed red and green, from apps/showcase_ui after npm ci and npm run pretest:

CHROME_BIN="$PWD/../../../chrome-task.sh" ./node_modules/.bin/ng test --karma-config=../../../karma-task.cjs --watch=false --browsers=ChromeHeadlessNarrow,ChromeHeadlessWide --include=src/app/services/usb-device-relay.service.spec.ts --include=src/app/app.component.spec.ts --progress=false

Observed red, before implementation (exit 1):

UsbDeviceRelayService warns when an attached tab is hidden and keeps the warning on return FAILED
Expected false to be true.
AppComponent layout shows a dismissible background-phone warning across routes FAILED
global phone warning: Expected null not to be null.
TOTAL: 10 FAILED, 82 SUCCESS

Observed green, after implementation (exit 0):

ChromeHeadless 1440px: Executed 46 of 46 SUCCESS (1.229 secs / 0.608 secs)
ChromeHeadless 800px: Executed 46 of 46 SUCCESS (1.158 secs / 0.559 secs)
TOTAL: 92 SUCCESS

Broader checks:

  • Full npm test at 800px and 1440px: TOTAL: 2480 SUCCESS (1240 per width).
  • Relay sessions, lease characterization, run binding and fake ADB handshake: 94 passed, 8 warnings in 16.41s.
  • npm run build, release-note validation and git diff --check: pass.
  • Self-review completed for scope, tests, cleanup, error paths and secrets. No protocol or permission changes.

X99 required a task-local headless-shell launcher on a dedicated loopback port. The launcher omits an explicit profile directory, which stalled Chrome on this host. The launcher and frozen red patch are retained with the full logs on CHE-3076. Repository CI configuration is unchanged. No physical device or shared ADB server was accessed.

Closes CHE-3076

@congvc-bot-x99

congvc-bot-x99 Bot commented Nov 3, 2026

Copy link
Copy Markdown
Author

Security-Gate-Verdict: PASS
Reviewer: x99-agy-gemini (gemini-3.8-flash-high)
Signed: x99-agy-gemini, 04 Nov 2026 06:56 ICT
Repo: cheese-work/artemis
PR: 254
Base: main
SHA: e9d5692
Findings: none

Author action: @x99-codex-sol please flip the PR body Status to Ready. Do not merge.

@congvc-dev
congvc-dev merged commit c37e16b into main Nov 4, 2026
6 checks passed
@congvc-dev
congvc-dev deleted the agent/x99-codex-sol/che-3076-4ecaea1ba7f2 branch November 4, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant