From d534cc57c832150c6af72889ca15ed98a6d3eeab Mon Sep 17 00:00:00 2001 From: Edward Ly Date: Fri, 28 Aug 2026 13:57:16 -0700 Subject: [PATCH] fix(multimodal_chatwithtools): pass through string history content on resolution Assisted-by: ClaudeCode:claude-sonnet-5 Signed-off-by: Edward Ly --- lib/multimodal_chatwithtools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/multimodal_chatwithtools.py b/lib/multimodal_chatwithtools.py index 88a3b61..dd5056d 100644 --- a/lib/multimodal_chatwithtools.py +++ b/lib/multimodal_chatwithtools.py @@ -27,6 +27,8 @@ async def resolve_message_content(nc: AsyncNextcloudApp, content: Any, modalities: list[str]) -> str | list[dict[str, Any]]: """Resolve history content: strings pass through; file parts are fetched.""" + if isinstance(content, str): + return content if not isinstance(content, list): raise ValueError("Invalid message history content") resolved: list[dict[str, Any]] = []