config provider TUI: Manual mode — ESC to go back to previous field makes it uneditable (cursor disappears)
OpenCodeReview Version
v1.82.1
Operating System
macOS (Apple Silicon)
Installation Method
npm (global)
LLM Provider
Other OpenAI-compatible endpoint
Bug Description
In the config provider TUI, when using the Manual configuration tab, pressing ESC to navigate back to a previously filled field causes the input cursor to disappear. The field becomes completely uneditable — no cursor is visible and all keyboard input is silently ignored.
Steps to Reproduce
- Run ocr config provider (or equivalent command that opens the provider TUI)
- Select the Manual tab and press Enter to enter the form
- Fill in the URL field, press Enter to advance to Protocol
- Select a protocol (e.g. openai), press Enter to advance to Model
- Type a model name (e.g. step-3.5-flash), press Enter to advance to Auth Token
- Press ESC to go back to Model
- Observe: the cursor is gone, the field cannot be edited
Expected Behavior
Pressing ESC should move focus back to the previous field with a visible, blinking cursor, allowing the user to edit the existing value.
Logs / Error Output
The target field appears focused (highlighted label) but the text cursor is invisible and the field does not accept any keyboard input. The only way to recover is to press ESC all the way back to exit the form and re-enter it.
Additional Context
I noticed this issue too and have tracked down the root cause. I have a small fix with tests ready — would it be OK if I open a PR for it?
Hey, thanks for reaching out — glad to know I'm not the only one running into this! Please feel free to pick it up and submit a fix, I'd really appreciate it. Let me know if you need any context or have questions along the way, and I'm happy to help review the PR whenever it's ready. Looking forward to it!
Thanks so much for the quick turnaround on this! Really appreciate you taking the time to put together the PR — I'll give it a review shortly. It's great to see the community jumping in to help fix things like this. 🙏