fix(cli): show Resuming... banner immediately on thread resume (#3297)

Lifts the one-line `_resume_thread_intent` check from PR #3193 onto
`main` so the fix can ship independently. Once #3193 merges `main` back
in, this diff will collapse into the existing v0.6 change with no
conflict.

`WelcomeBanner` was given `defer_connecting_display=self._connecting`,
which suppresses the connecting footer entirely while `_connecting` is
`True` — that path also runs for `deepagents -r` / `/thread` resumption,
so the "Resuming..." footer never rendered until the connect finished.
Gating the defer on `self._resume_thread_intent is None` lets the resume
path show its banner immediately while leaving the cold-start connect
behavior unchanged.

Co-authored-by: Sydney Runkle <sydneymarierunkle@gmail.com>
This commit is contained in:
Mason Daugherty
2026-05-10 18:49:03 -04:00
committed by GitHub
parent a086d77f09
commit 3bb2782ae8
+2 -1
View File
@@ -1616,7 +1616,8 @@ class DeepAgentsApp(App):
connecting=self._connecting,
resuming=self._resume_thread_intent is not None,
local_server=self._server_kwargs is not None,
defer_connecting_display=self._connecting,
defer_connecting_display=self._connecting
and self._resume_thread_intent is None,
id="welcome-banner",
)
yield Container(id="messages")