Sync core app/webui/api/helpers from the known-working Leon4gr45/agent Space (fixes stale frontend + wires the working /api/api_message + CSRF backend) (part 3)
Sync core app/webui/api/helpers from the known-working Leon4gr45/agent Space (fixes stale frontend + wires the working /api/api_message + CSRF backend) (part 2)