Skip to content

Expose network approval parent item ids in app-server#15595

Open
charley-oai wants to merge 4 commits intocc/network-approval-parent-tool-item-corefrom
cc/network-approval-parent-tool-item-app-server
Open

Expose network approval parent item ids in app-server#15595
charley-oai wants to merge 4 commits intocc/network-approval-parent-tool-item-corefrom
cc/network-approval-parent-tool-item-app-server

Conversation

@charley-oai
Copy link
Collaborator

@charley-oai charley-oai commented Mar 24, 2026

Summary

  • add typed parentToolItemId to legacy guardian review notifications
  • add reviewId as the clearer stable guardian review identifier while keeping targetItemId as a deprecated alias
  • update app-server and tui_app_server to consume the typed parent/review ids
  • populate parentToolItemId for direct tool reviews as well, so downstream consumers can treat it as consistently available except when network attribution is genuinely unavailable

Stack

Why This PR Exists

Once core can attribute blocked network requests to the correct parent tool item, app-server needs to expose that relationship in a typed way. This branch keeps the legacy notification surface compatible while making the review id and parent tool item id distinct.

Verification

  • cargo test -p codex-app-server-protocol
  • cargo test -p codex-protocol
  • local codex-tui-app-server validation was started during the split, but I deferred the rest to PR CI once the local runs stopped providing clear incremental signal

charley-oai and others added 3 commits March 23, 2026 20:24
Thread a typed parent tool item id through guardian assessment events and legacy app-server guardian review notifications for network approvals.

Co-authored-by: Codex <noreply@openai.com>
Keep `targetItemId` as a deprecated compatibility alias while emitting the clearer `reviewId` field on legacy guardian approval review notifications.\n\nCo-authored-by: Codex <noreply@openai.com>
Populate parent tool item ids for direct guardian-reviewed tool actions while preserving distinct network approval review ids.

Co-authored-by: Codex <noreply@openai.com>
@charley-oai charley-oai force-pushed the cc/network-approval-parent-tool-item-app-server branch from 0d60aaa to e2494ae Compare March 24, 2026 03:25
Co-authored-by: Codex <noreply@openai.com>
@charley-oai
Copy link
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. What shall we delve into next?

ℹ️ 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".

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