Renset / macai

Swift powered native macOS client for Ollama, ChatGPT and compatible API-backends
https://renset.gumroad.com/l/macai
MIT License
136 stars 14 forks source link

When ChatGPT generates multiple lines, all answer can not be selected #11

Closed george-polevoy closed 1 year ago

george-polevoy commented 1 year ago

Describe the bug When ChatGPT generates multiple lines, all answer can not be selected.

To Reproduce

Ask a question, resulting with multiline answer. Try to select the answer. Only one line can be selected.

Expected behavior Freely select all text in window.

Screenshots

image

Environment:

Renset commented 1 year ago

Hi @george-polevoy, thanks for reporting this! Will try to fix this soon

Renset commented 1 year ago

@george-polevoy the problem has been fixed in v1.0.12, thanks again for reporting this bug!

Unfortunately, I couldn't find an easy way to make the 'proper' fix in SwiftUI for all cases, but it works as expected when a message has only plaintext. If message has code blocks or tables, you still can't select the whole message, but it's possible to copy entire message via context menu.