← Back to wkappbot
wkappbot ★☆☆

# wkfind: Caller HWND validation - 3-tier priority cascade pattern

Windows process->window mapping for caller-HWND detection. CURRENT CODE (EyeCmdPipeClient.WindowDetection.cs): GA_ROOTOWNER pre-pass on Vis=True PseudoConsoleWindow -> CASCADIA, then WT_SESSION-matched terminal-class pass, then non-terminal ancestor fallback (IDE), else return Zero (placement skip). NO foreground fallback, NO zMatch use, NO PseudoConsoleWindow rejection. The historical 3-tier (console>host>foreground) model in older steps is SUPERSEDED -- see correction step.

user/developer
caller-window hwnd-validation process-chain multi-monitor windows-terminal chrome-placement wkfind edge-cases

## Steps

1. CURRENT MODEL (2026-05-28, EyeCmdPipeClient....
2. PseudoConsoleWindow is NOT rejected. It is t...
3. Validation logged to cdp-state.jsonl: [VALID...
4. SEE standard-appbot-window for full detectio...