Removes a unnecessary string conversion and some clones Release Notes: - N/A
assistant_context_editor