Skip to content

Fix TUI app-server permission profile conversions#16284

Merged
etraut-openai merged 4 commits intomainfrom
etraut/tui-permissions_regression
Apr 2, 2026
Merged

Fix TUI app-server permission profile conversions#16284
etraut-openai merged 4 commits intomainfrom
etraut/tui-permissions_regression

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented Mar 30, 2026

Addresses #16283

Problem: TUI app-server permission approvals could drop filesystem grants because request and response payloads were round-tripped through mismatched camelCase and snake_case JSON shapes.
Solution: Replace the lossy JSON round-trips with typed app-server/core permission conversions so requested and granted permission profiles, including filesystem paths and scope, are preserved end to end.

@etraut-openai
Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

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

etraut-openai added a commit that referenced this pull request Mar 31, 2026
Comment thread codex-rs/app-server-protocol/src/protocol/v2.rs Outdated
Comment thread codex-rs/tui/src/chatwidget/tests/approval_requests.rs
etraut-openai added a commit that referenced this pull request Mar 31, 2026
@etraut-openai etraut-openai force-pushed the etraut/tui-permissions_regression branch from c062e2a to a2bab68 Compare March 31, 2026 23:01
etraut-openai added a commit that referenced this pull request Mar 31, 2026
@fcoury-oai fcoury-oai self-requested a review April 1, 2026 17:00
Copy link
Copy Markdown
Contributor

@fcoury-oai fcoury-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to replicate it manually. Approved.

@openai openai deleted a comment from Mygod Apr 1, 2026
@etraut-openai etraut-openai force-pushed the etraut/tui-permissions_regression branch from a2bab68 to ef31767 Compare April 2, 2026 03:16
@etraut-openai etraut-openai merged commit cb9ef06 into main Apr 2, 2026
22 checks passed
@etraut-openai etraut-openai deleted the etraut/tui-permissions_regression branch April 2, 2026 04:00
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 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