mirror of
https://github.com/stablyai/orca.git
synced 2026-11-17 19:34:29 +00:00
* fix(native-chat): clear /compact from the composer once it is sent Conversation commands kept their draft until the host replied, while messages release it as soon as they are on their way. Thread the composer's onPending through the command dispatch so a sent /compact or /clear leaves the input immediately; a refusal still hands it back. Fixes #39122 * fix(native-chat): keep a command typed while a refused one was answering A refused conversation command is handed back through the independent draft merge, which replaces a lone command in the composer. With the draft now released on send, a /clear typed while /compact was answering was overwritten by the refused /compact. Return a refused command only to an empty composer; anything typed since stays as typed, and the refusal notice still says the command was not done. * fix(native-chat): count images when a refused command checks for an empty composer --------- Co-authored-by: mahedi-emon <113725370+mahedi-emon@users.noreply.github.com>