## Description This PR implements multi-line input support for Codex when it asks for user feedback (Issue #344). Users can now use Shift+Enter to add new lines in their responses, making it easier to provide formatted code snippets, lists, or other structured content. ## Changes - Replace the single-line TextInput component with the MultilineTextEditor component in terminal-chat-input.tsx - Add support for Shift+Enter to create new lines - Update key handling logic to properly handle history navigation in a multi-line context - Add reference to the editor to access cursor position information - Update help text to inform users about the Shift+Enter functionality - Add tests for the new functionality ## Testing - Added new test file (terminal-chat-input-multiline.test.tsx) to test the multi-line input functionality - All existing tests continue to pass - Manually tested the feature to ensure it works as expected ## Fixes Closes #344 ## Screenshots N/A ## Additional Notes This implementation maintains backward compatibility while adding the requested multi-line input functionality. The UI remains clean and intuitive, with a simple hint about using Shift+Enter for new lines. --------- Co-authored-by: Thibault Sottiaux <tibo@openai.com>
4.5 KiB
4.5 KiB