Repository navigation
feat(codex): support VS Code notifications and precise Windows focus - #55
Open
steven-jianhao-li wants to merge 4 commits into
Open
steven-jianhao-li wants to merge 4 commits into
steven-jianhao-li wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
handle-codex-notifycommand for Codex's top-level legacynotifypayload--previous-notifywrapper during install/uninstallSW_RESTOREwhen the target is actually minimizedWhy
VS Code Codex uses the app-server path, where the configured hooks are not reliably executed/trusted, but Codex's top-level
notifycommand is still invoked. On Windows, all VS Code windows may share oneCode.exePID, so the existing process-tree fallback can choose the wrong window. The bundled helper also restored every window unconditionally, which removed the maximized state.Details
agent-turn-completeinto the same message as the CodexStophook, allowing the existing dedupe store to suppress CLI double deliveryVerification
go test ./...go vet ./...agent-notifyfor Windows, Linux, and macOS on amd64/arm64Rise-LLMselected the expectedHWND 0x105b4among three VS Code windows