Skip to content

fix: add name-based fallback to Session.swift isExternalTarget check#7466

Merged
Jasonnnz merged 2 commits into
feature/qa-video-automationfrom
swarm/fb2-7463
Feb 24, 2026
Merged

fix: add name-based fallback to Session.swift isExternalTarget check#7466
Jasonnnz merged 2 commits into
feature/qa-video-automationfrom
swarm/fb2-7463

Conversation

@Jasonnnz
Copy link
Copy Markdown
Contributor

@Jasonnnz Jasonnnz commented Feb 24, 2026

Summary

  • Extends the isExternalTarget check in Session.swift to also consider targetAppName when targetAppBundleId is nil, matching the behavior of isExternalAppTarget in AppDelegate+Sessions.swift
  • When targetAppBundleId is nil but targetAppName is set (e.g. "Chrome"), the check now correctly identifies the session as targeting an external app, preventing the Chrome accessibility NSAlert from stealing focus
  • Addresses feedback from fix: external target detection fallback and name-based gating #7463

Test plan

  • Run a QA session targeting Chrome by name only (no bundle ID) — verify the Chrome accessibility restart alert does NOT appear and focus stays on Chrome
  • Run a QA session targeting Vellum by name — verify the Chrome accessibility check still runs normally
  • Run a QA session with both bundle ID and app name set — verify bundle ID takes precedence
  • Run a QA session with neither set — verify isExternalTarget is false (backward compatibility)

🤖 Generated with Claude Code


Open with Devin

Vellum Assistant and others added 2 commits February 23, 2026 21:42
When targetAppBundleId is nil but targetAppName is set (e.g. "Chrome"),
the inline isExternalTarget check incorrectly evaluated to false, causing
the Chrome accessibility NSAlert to steal focus from the app under test.
Now falls back to targetAppName matching, consistent with the external
app detection logic in AppDelegate+Sessions.swift.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Jasonnnz Jasonnnz merged commit 6666a83 into feature/qa-video-automation Feb 24, 2026
@Jasonnnz Jasonnnz deleted the swarm/fb2-7463 branch February 24, 2026 02:43
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

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