-
Notifications
You must be signed in to change notification settings - Fork 11.1k
TUI crashes when skills/list fails behind corporate proxy #17951
Copy link
Copy link
Closed
Labels
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)Issues involving networking or endpoint connectivity problems (disconnections)skillsIssues related to skillsIssues related to skills
Metadata
Metadata
Assignees
Labels
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)Issues involving networking or endpoint connectivity problems (disconnections)skillsIssues related to skillsIssues related to skills
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug description
When running Codex CLI behind a corporate proxy/firewall that intercepts HTTPS requests to
chatgpt.com, the TUI crashes with:The proxy redirects the request via 302 to an HTML warning page, which is then returned with a 200 status code. The reqwest client follows the redirect, receives HTML instead of JSON, and fails to parse it.
Root cause
In
codex-rs/tui/src/app.rs, theAppCommandView::ListSkillshandler propagates errors with?:This error bubbles up through the TUI event loop and causes a fatal exit. However, the startup code path for the same operation already handles this gracefully with
match + warn.Expected behavior
Plugin discovery failures (skills/list, featured plugins, etc.) should degrade gracefully — log a warning and continue operating. The main TUI functionality should not depend on plugin discovery succeeding.
Steps to reproduce
chatgpt.comchatgpt.com/backend-api/plugins/featuredEnvironment