Reuse the existing command text conversion before building execution
titles so rejected non-string arguments no longer abort streamed
rendering or saved-chat replay. Preserve original log arguments and
normal command copying and output.
Add regressions for malformed arguments in both delivery paths and
document the renderer contract.
Validation: 71 focused tests passed; both previously affected DeepSeek
chats reopened and reloaded with zero browser console errors.
Restore matching command previews from the stored, masked command when
copying execution output or opening step details. Preserve command
whitespace and the output body while keeping the chat preview compact
and retaining existing log size limits.
Cover Bash, PowerShell, Python and Node.js prefixes, streamed updates,
masked placeholders and output without a matching command preview.
Validation: 48 focused WebUI tests passed, git diff --check passed, and
an actual browser clipboard check passed using frontend assets served
by the live instance at localhost:32081.