Skip to content

Use the server permission catalog for TUI permission shortcuts - #50140

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7d79874294136bfe3a654bb306eb7caf36d4df1e
Oct 2, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/7d79874294136bfe3a654bb306eb7caf36d4df1e

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Use the server permission catalog for TUI permission shortcuts

Why

Permission shortcuts checked local configuration while the picker used the connected server's catalog and requirements. Shortcuts should respect the same server restrictions, including model-specific auto-review requirements.

What changed

  • Share a cached server catalog between the permission picker and shortcuts. Show the loading picker when no catalog is available and reuse an outstanding fetch.
  • Clear the cache on session, account, working-directory, or connection changes.
  • Give discovery RPCs distinct request IDs for each fetch and profile page so repeated requests after timeouts do not collide.

Testing

Add coverage for loading and catalog reuse, managed permission restrictions, and refetching after disconnect. Update timeout coverage to verify that repeated discovery attempts use distinct IDs and each reports a timeout.

## Why

Permission shortcuts checked local configuration while the picker used the connected server's catalog and requirements. Shortcuts should respect the same server restrictions, including model-specific auto-review requirements.

## What changed

- Share a cached server catalog between the permission picker and shortcuts. Show the loading picker when no catalog is available and reuse an outstanding fetch.
- Clear the cache on session, account, working-directory, or connection changes.
- Give discovery RPCs distinct request IDs for each fetch and profile page so repeated requests after timeouts do not collide.

## Testing

Add coverage for loading and catalog reuse, managed permission restrictions, and refetching after disconnect. Update timeout coverage to verify that repeated discovery attempts use distinct IDs and each reports a timeout.

GitOrigin-RevId: 7d79874294136bfe3a654bb306eb7caf36d4df1e
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/7d79874294136bfe3a654bb306eb7caf36d4df1e branch from 481906b to cb6da58 Compare October 2, 2026 01:34
@copyberry
copyberry Bot merged commit cb6da58 into main Oct 2, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/7d79874294136bfe3a654bb306eb7caf36d4df1e branch October 2, 2026 01:34
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 2, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — cb6da588 Deployed Oct 2, 2026 by dmacd via Identify potential duplicates (open issues fallback) #50727
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.

8 participants