Fix CI lint and mypy issues from prior pivot commit

- _workflow.py: collapse nested if (SIM102), drop redundant assignment (RET504)
- _declarative_base.py: remove unused last_user_msg = tail assignment
  whose Message | None type clashed with the prior Message-typed branch

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
alliscode
2026-04-28 11:18:22 -07:00
Unverified
parent e8dfcc90f9
commit 891c00c909
2 changed files with 12 additions and 10 deletions
@@ -954,7 +954,6 @@ class DeclarativeActionExecutor(Executor):
last_user_id = (
getattr(tail, "message_id", "") or "" if tail is not None else ""
)
last_user_msg = tail
if is_continuation:
# Continuation turn: keep prior Conversation.messages intact.