This commit is contained in:
Cole Miller 2025-08-25 11:42:23 -04:00
parent 0c092a70ac
commit cc50321eaa
2 changed files with 2 additions and 2 deletions

View file

@ -827,7 +827,7 @@ impl AcpThread {
mut prompt_capabilities_rx: watch::Receiver<acp::PromptCapabilities>,
cx: &mut Context<Self>,
) -> Self {
let prompt_capabilities = prompt_capabilities_rx.borrow().clone();
let prompt_capabilities = *prompt_capabilities_rx.borrow();
let task = cx.spawn::<_, anyhow::Result<()>>(async move |this, cx| {
loop {
let caps = prompt_capabilities_rx.recv().await?;

View file

@ -193,7 +193,7 @@ impl AgentConnection for AcpConnection {
action_log,
session_id.clone(),
// ACP doesn't currently support per-session prompt capabilities or changing capabilities dynamically.
watch::Receiver::constant(self.prompt_capabilities.clone()),
watch::Receiver::constant(self.prompt_capabilities),
cx,
)
})?;