Skip to content

Emit live hook prompts before raw-event filtering#17189

Merged
abhinav-oai merged 1 commit intomainfrom
dev/abhinav/live-hook-prompt-from-raw-items
Apr 10, 2026
Merged

Emit live hook prompts before raw-event filtering#17189
abhinav-oai merged 1 commit intomainfrom
dev/abhinav/live-hook-prompt-from-raw-items

Conversation

@abhinav-oai
Copy link
Copy Markdown
Collaborator

@abhinav-oai abhinav-oai commented Apr 9, 2026

What

Project raw Stop-hook prompt response items into typed v2 hookPrompt item-completed notifications before applying the raw-response-event filter. Keep ordinary raw response items filtered for normal subscribers; only the existing hookPrompt bridge runs on the filtered raw-item path.

Why

Blocked Stop hooks record their continuation instruction as a raw model-history user item. Normal v2 desktop subscribers do not opt into raw response events, so the app-server listener filtered that raw item before the existing hookPrompt translator could emit the typed live item/completed notification. As a result, the hook-prompt bubble only appeared after thread history was reloaded.

@abhinav-oai abhinav-oai marked this pull request as ready for review April 9, 2026 16:18
@abhinav-oai
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. More of your lovely PRs please.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@abhinav-oai abhinav-oai merged commit f6cc2bb into main Apr 10, 2026
29 of 30 checks passed
@abhinav-oai abhinav-oai deleted the dev/abhinav/live-hook-prompt-from-raw-items branch April 10, 2026 02:48
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants