fix(plugins): open Tools after MCP setup completes (v5.0 backport)
Description
Open the saved plugin’s Tools tab after successful setup or OAuth authorization. Keep authentication recovery actions clearly spaced.
Manual cherry-pick of #16413 from main (06b6fa03fb14eb57f72b3de20b0da07d08c02364). The original stack merged on main; its automatic release backport did not run. This cherry-pick applied without code changes.
Builds on https://github.com/onyx-dot-app/onyx/pull/16454. Merge this stack from bottom to top into release/v5.0.
How Has This Been Tested?
Validated the complete backport stack on release/v5.0:
- 202 frontend component tests passed across MCP configuration, authentication, setup, default Chat, and OpenAPI plugins.
- 353 backend MCP, route-contract, and OpenAPI availability tests passed.
- Changed-file pre-commit checks passed, including Python and TypeScript typing, coverage, lint, formatting, translations, and feature-map integrity.
- PostgreSQL setup and locking tests could not start: local PostgreSQL refused connections on port 5432.
- Live provider OAuth was not rerun locally. Release CI will run on this PR.
Additional Options
- [Optional] Please cherry-pick this PR to the latest release version.
Summary by cubic
Backports #16413 to v5.0. After MCP setup or OAuth authorization completes, the saved plugin's Tools tab now opens instead of Configuration, so successful authentication no longer appears to restart setup. Authentication error notices are also spaced apart from their recovery buttons.
New setup, existing-server authentication, and staged OAuth returns all route to ?tab=tools without repeating discovery. Legacy OAuth returns with trigger_fetch=true still open Tools but repeat discovery, and direct navigation to the Tools tab no longer triggers discovery.