acp: Stay in edit mode when current completion ends (#36413)

When a turn ends and the checkpoint is updated, `AcpThread` emits
`EntryUpdated` with the index of the user message. This was causing the
message editor to be recreated and, therefore, lose focus.

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga 2025-08-18 11:37:28 -03:00 committed by GitHub
parent 6bf666958c
commit db31fa67f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 214 additions and 70 deletions

View file

@ -670,6 +670,7 @@ pub struct AcpThread {
session_id: acp::SessionId,
}
#[derive(Debug)]
pub enum AcpThreadEvent {
NewEntry,
EntryUpdated(usize),