mirror of
https://github.com/NanmiCoder/claude-code-haha.git
synced 2026-10-10 11:53:10 +08:00
f3a6e02903
Three failures shared one root cause: the engine reported success for input it had no way to deliver or verify. A fully covered Chromium/CEF window stops drawing, so every screenshot returns the last frame it painted while each action still answers "Action completed". One session read a frozen image for three and a half minutes, pressed play four times, and reported a song playing that the final capture showed paused. Mutating commands now fail closed with `window_occluded` instead. The physical-input monitor counted `.mouseMoved`, so moving the cursor anywhere on screen aborted background automation — the one thing the feature exists to allow. Movement is not an interaction with any app; presses, drags, keys and scroll still are. Focus notifications went out on NSEvent type 13 alone. The target accepted them, ignored them, and reported nothing: 24 actions, 1 effective. Key-focus subtypes travel on type 21, and `keyFocusReturned` (0x8000) needs a sign-preserving truncation or it collapses to subtype 0 — a notification the target accepts and discards. The stale-capture notice claimed input does not depend on visibility. Measured behaviour contradicts it, so it now says actions are refused while covered, and says it without asking the model to consult the user about window management — an earlier wording did, and the model handed back a three-step task after one action. Claude-Session: https://claude.ai/code/session_015j1yxxaoonyAS2iZ7qGnTS