Skip to main content

Versioning

The SDK follows semantic versioning. Within a major version (e.g. 0.x), every release is backwards compatible unless a ### Breaking section says otherwise. We bump the minor version when adding new APIs, and the patch version for bug fixes. By default customers loading from cdn.haloagents.ai/sdk/latest/ automatically get every new release. To pin to a specific version (recommended for change-controlled environments), see Pinning a specific version.

0.10.28

November 15, 2026

Fixed

  • The close button on a proactive message stays readable when you hover over it. Hovering used to make the button see-through, so on a dark page the X disappeared. The button now turns into dark glass with a white X. On a proactive message with a light background it turns into light glass with a dark X, so it reads on any page and with any message color.
  • Starting a new chat while a reply is on its way no longer mixes the two. The reply in flight is stopped, the input is free straight away, and a late answer can no longer land in the new conversation or move it back to the old one. A check for a teammate’s reply that was in flight is dropped the same way.
  • A message with images can no longer be lost by sending again while they upload. The composer waits for the upload, so the next message goes out after the one with the images.
  • Opening a second ticket while the first is still loading shows the second one. The first could finish late, write into the list of seen messages and stop the open ticket from updating.
  • “Still waiting? Notify the team” tells the truth when the request fails. It used to say “Team notified” even when the request never reached Halo. It now says it could not notify the team and lets the visitor try again.
  • An error in your onMessage callback no longer locks the chat. The error is logged to the console and the conversation carries on.
  • Banners are announced by screen readers. The container they sit in was hidden from assistive technology.
  • After identify() with a fresh token, unread and live replies arrive again. When a token expired the widget stopped checking, and a new token for the same visitor did not start it again until the page reloaded.
  • Events are recorded under the conversation the chat is in. After “Start new chat”, page and click events kept the previous conversation’s id.
  • Voice usage is reported under the conversation the call started in, also when a new chat is started during the call.

Security

  • Links with a token in their URL are no longer described by that URL. The screen context sent with a message names a few links on the page so the agent can point at them. A reset or magic link is now described by its place on the page instead.
  • Attribution URLs are redacted. The landing page and referrer saved with a lead or an escalation have tokens and credentials removed, like every other page URL the widget sends.

0.10.27

November 13, 2026

Fixed

  • AI replies in a ticket thread only show help center images. In the ticket view, and when a ticket is restored into the chat, a reply written by the AI agent now shows an image only when it comes from your help center or documentation, the same rule the live chat already followed. A reply from a teammate still shows the image they attached.

0.10.26

November 12, 2026

Fixed

  • An agent limited to certain visitors is hidden from everyone else. When an agent has “Only visitors who match” conditions, the widget now checks with Halo before it shows the launcher and stays hidden for a visitor who does not match. It used to show to everyone, and a visitor outside the conditions got an error when they sent a message. After identify() the check runs again, so the widget appears as soon as a matching visitor is known.
  • The “That solved my issue” button can be turned off. For support agents the button came back whenever it was switched off in the dashboard. Switching it off now removes it.
  • Voice: a request said just before the voice agent hands it over is no longer lost. An earlier part of the conversation settling could mark the newest request as finished too early, and the voice agent then asked the visitor to repeat it.
  • Voice: a very long transcript no longer loses its closing upload. A transcript too large for one closing request is now sent in parts. If the page closes while those are still going up, the later parts can still be lost.
  • Voice: the transcript of a call is saved even if the visitor starts a new chat before it finishes uploading.
  • Ratings: after a rating fails to save, keyboard focus returns to the rating that is saved.

0.10.25

November 12, 2026

Changed

  • The widget is about a third smaller. The main bundle is now 101 KB gzipped, down from 151 KB. Nothing changes in how it behaves.
  • Ending a voice call stops the request it started. If the voice agent had handed a request to the chat agent, that request used to keep running after the visitor hung up. It now stops quietly. Any text already shown stays in the chat, and no error appears. Requests a visitor types in chat are not affected.

Fixed

  • Voice: unanswered words are saved in the order they were said when a call ends before the agent replies.
  • Ratings: a comment cannot be edited while it is being saved. Text added in that moment was not sent, although the box closed as sent.
  • Voice: allowing the microphone after ending the call no longer leaves the level meter running in the background.

0.10.24

November 12, 2026

Fixed

  • Voice: the end of a call is saved. If a visitor ended a call mid-sentence, or before the voice agent had answered, their last words were missing from the conversation in the inbox. They are now saved.
  • Voice: closing the page no longer loses the final usage report. When a visitor closed the tab during a call, the last usage report and part of the transcript could fail to send if their identity token had to be refreshed first.
  • Voice: restarting a call keeps each call’s transcript separate.
  • A teammate’s status stays in the header. While a teammate was handling a conversation, the header could switch back to the office-hours line after the widget reloaded its configuration.
  • In-app message and banner stats are more reliable. A view or dismissal whose tracking request failed is now retried.

0.10.23

November 11, 2026

Fixed

  • The out-of-hours email prompt explains what is wrong. When a visitor left the email field empty or mistyped their address, the field only turned red. It now shows a short message under the field, and screen readers announce it.
  • Mistyped domains are caught. Addresses such as name@.example.com or name@example..com were accepted, so the reply could never reach the visitor. They are now rejected with the same message.

0.10.22

November 11, 2026

Fixed

In-app messages and banners:
  • A network hiccup no longer removes messages from the page. If the request for messages failed, or the visitor’s identity could not be verified, every banner and in-app message was removed, even one the visitor was replying to. The widget now keeps what it last showed, and a visitor whose identity can’t be verified still sees messages meant for everyone.
  • Anonymous visitors are counted in message stats. Views, clicks, dismissals and replies were only recorded for identified users, so a banner on a public site could show zero views.
  • Page targeting matches the exact page. A pattern without * used to match any page starting with it, so / matched every page and /pricing also matched /pricing-old. It now matches that page only; use * for a wildcard (for example /pricing*).
  • Agent page rules are honored on client-side navigation. In a single-page app, messages stayed visible after navigating to a page the agent’s URL rules exclude.
  • Company merge fields work. Company Name and other company fields now use the traits you pass to identifyCompany() instead of always showing the fallback.
  • Smaller fixes: a link inside a banner no longer opens two tabs, views and dismissals are counted once per page load, fallback text containing & or quotes displays correctly, and banner text no longer picks up spacing or link color from your site’s stylesheet.

Changed

  • Check your page-targeting patterns. If a message relied on the old prefix matching (for example /docs to cover every page under /docs/), change the pattern to /docs*.

0.10.21

November 10, 2026

Fixed

  • A getUserToken that throws no longer stops token refresh. If your getUserToken was not an async function and threw an error, the widget stopped asking for a token for the rest of the page view, so signed-in requests stayed paused until a reload. It now asks again after a short back-off.
  • Long voice conversations are saved in full. When a voice call ended, only the last 20 exchanges the voice agent answered on its own were saved to the conversation, so a longer call lost its beginning in the inbox. The whole call is now saved.
  • The rating card works with the arrow keys. In the satisfaction survey, Tab now lands on the rating once, the arrow keys (and Home and End) move between the faces, and Space or Enter picks one.
  • defaultMode: "livehelp" opens chat. Live Help is no longer available, and a widget still configured with this default could open with no message box (when its agent had no widget modes saved). It now opens in chat, and init() logs a warning.

Changed

  • The widget is about 10% smaller. The code for the retired Live Help mode is no longer part of the main bundle (168 KB down to 151 KB gzipped). Nothing changes for visitors: the mode has not been offered since October.

0.10.20

November 10, 2026 The widget used to decide several things once, when init() ran, for whoever the visitor was at that moment. This release re-checks them, so installs that identify the user after init() (most framework installs) and single-page apps behave correctly.

Fixed

  • Signing in after the page loaded puts the user on the right agent. If you have one agent for visitors and another for signed-in users, a user whose identify() ran after init() stayed on the visitor agent. A conversation that is already under way stays where it is.
  • A widget that only shows to signed-in users appears once identify() runs. It used to stay hidden for the rest of the page view. While hidden it now logs one line to the console saying why.
  • The launcher follows manualOnPaths when the route changes. In a single-page app, leaving a manual path brings the launcher back without a reload, and entering one removes it. Proactive messages, the greeting popup and the unread badge follow too.
  • Page URL rules are re-checked when the route changes. The widget hides on a page the rules exclude and comes back on one they allow. A panel the visitor has open stays until they close it.
  • getUserToken is no longer called for anonymous visitors. The same init() can run on your marketing pages and in your app without logged-out visitors hitting your token route.
  • Switching accounts without a reload starts a fresh conversation. identify() for a different user used to leave the previous user’s messages in the panel. Their unsent draft and recent page activity are not carried over either, and nothing they still had in flight carries on as the new user: a message waiting to be sent is dropped, and a reply still streaming is cut off. Their company is dropped too, so call identifyCompany() again for the new user. Context from setContext() is not cleared: call clearContext() when you switch.
  • After destroy() the widget handles nothing more. After a sign-out (destroy(), then init()), a reply still arriving for the signed-out user could run its actions, such as a navigation, on the next visitor’s page. The reply still finishes on the server and stays in that user’s conversation; it is no longer shown or acted on.
  • init() with a userId and no token, then identify() with the token, no longer gets stuck. The rejection of the first, unsigned request could arrive after the token and pause the widget.
  • identifyCompany() right after init() links the user reliably on their first visit.
  • destroy() then init() is reliable, including when both are called before the SDK has finished loading (a React effect with a destroy() cleanup, under StrictMode), and a reference to an old instance can no longer remove the new widget.
  • sendMessage() no longer raises an unhandled promise rejection when a send fails.

Changed

  • A rejected identity says why. The console warning, the error passed to onError and onIdentityExpired’s message carry the server’s reason (no identity secret yet, wrong secret, expired token, user_id mismatch). See When a request is rejected.
  • init() warns in the console when apiKey is missing. Without it the launcher appears and every message fails with a 401.

0.10.19

November 10, 2026

Changed

  • “Talk to a human” is not offered to a visitor who cannot be handed off. When an agent answers a visitor with the AI only (see Who answers conversations), the buttons that ask for a human are left out instead of leading to a refusal. They come back as soon as a handoff is available again. Earlier versions keep the button, and a click answers that a handoff is not available.

0.10.18

November 9, 2026

Security

  • Chat messages can no longer inject markup through links or images. Malformed link and image URLs in a message are shown as plain text.
  • Banner links only open http(s), mailto and tel targets.
  • data-halo-ignore also covers click tracking and AI navigation. Clicks inside an ignored region are not recorded. The AI only clicks links and navigation controls on the visitor’s behalf; any other target (a button, anything in a form) is highlighted for the visitor to click. See Excluding parts of your page.
  • Session and visitor ids are generated with the browser’s cryptographic random source.
  • The screen description withholds more credential-like fields (keys, seed phrases, bank and tax identifiers, non-English password labels).

Changed

  • Voice transcripts are signed. Versions before 0.10.18 can no longer save voice-call transcripts. If you pin a version and use voice mode, move to 0.10.18.

0.10.17

November 9, 2026

Security

  • The screen description no longer carries sensitive form values. The description of the page that is sent with each chat message no longer includes what was typed into password, payment, one-time-code, phone, email and other credential-looking fields, or into fields without a label. The fields themselves are still listed so the AI can point at them. Halo’s server strips the same values from requests sent by older versions.
  • New data-halo-ignore attribute. Add it to an element to leave that element, and everything inside it, out of the screen description.
  • Footer and notice HTML is limited to an allowlist of basic formatting tags and http(s), mailto and tel links.

0.10.16

November 6, 2026

Fixed

  • Office-hours email form. Clicking the “Email” label focuses the field, and pressing Enter twice no longer submits the address twice.

0.10.15

November 6, 2026

Fixed

  • A stalled voice connection now times out instead of staying on “connecting” with the microphone open.

0.10.14

November 6, 2026

Added

  • Office hours in the widget. The chat shows your team’s expected reply time during office hours and when you are back outside them. Out of hours, when no AI agent handles the chat, the widget asks for an email before the first message. See Office Hours.
  • CSAT rating card. When a conversation is resolved and CSAT surveys are on, the thread shows a five-point rating with an optional comment. See CSAT.

0.10.13

November 6, 2026

Fixed

  • The End button only shows while a voice call is starting or running. Reopening the panel after a call no longer shows End for a call that is over.

0.10.12

November 6, 2026

Changed

  • Voice calls show just the orb by default. The live text of the conversation appears under the orb only when Show conversation text is turned on for the agent. The conversation is still saved to the chat and the inbox.
  • Starting a call reads “Starting your session”, then “Listening” once the call is up.

0.10.11

November 5, 2026

Changed

  • Voice mode is a live, two-way conversation. The Voice tab opens a real-time call with the agent, with natural interruptions and an animated orb. Questions still go through the agent’s normal chat pipeline, so knowledge, actions, escalation and the inbox transcript work as before. A call starts only when the visitor clicks the Voice tab or taps the orb; a page load never opens the microphone. See Voice.

Removed

  • The earlier voice flow (the browser transcribes, the agent replies in text, the reply is read aloud) and its “keep microphone on” control. Pinned versions up to 0.10.10 keep working.

0.10.10

October 29, 2026

Fixed

  • Highlight animations run. The pulse and glow highlight styles were frozen on their first frame on live sites.
  • Readable highlight labels. The label above a highlighted element uses dark or white text to suit the highlight color, and no longer overlaps the arrow.

0.10.9

October 18, 2026

Added

  • Meeting offer on escalation. When a support agent hands a conversation to your team, the widget can show a Calendly or Orbit booking page as the next card, chosen by the agent’s scheduling rules. See Scheduling.

0.10.8

October 15, 2026

Added

  • Scheduling routing for sales agents. After a lead form is submitted in the chat, the booking page your routing rules pick for the visitor appears as the next card.
  • Orbit scheduling pages embed inline. An Orbit form that routes to a booking page or another form opens it in the chat instead of navigating the page away.

0.10.7

October 15, 2026

Added

  • Calendly embeds are linked to the conversation. Embedded Calendly pages are pre-filled with the visitor’s known name and email, receive the page’s UTM parameters, and report a booking back to the AI.

0.10.6

October 15, 2026

Added

  • Orbit forms as the sales agent’s lead form. When the agent’s lead capture uses an Orbit form, the widget embeds it where the built-in form would appear and unlocks the chat on submit. The form is pre-filled with the visitor’s known name and email, and the AI is told when a form is submitted.

0.10.5

October 15, 2026

Fixed

  • identify() for a different user starts clean. Switching users clears the previous user’s traits and identity token.
  • Short-lived identity JWTs are accepted, and a token the server rejected is no longer re-sent.
  • Safer retries. Requests that create something are no longer retried after a server or network error, and a 429 is retried only when the server sends a short Retry-After.
  • Thumbs up/down from anonymous visitors no longer fails with 400.
  • The expanded window stays on screen on phones, and voice mode shows a clear error in Firefox.
  • Tracked page URLs redact secret-looking path segments and email addresses in query strings.
  • Less background traffic: typing signals are sent only during a live handoff, and polling for unseen messages backs off when there are no open tickets.

0.10.4

October 14, 2026

Fixed

  • “That solved my issue” and thumbs feedback work after the lead form for anonymous visitors.

0.10.3

October 14, 2026

Fixed

  • “Is not” Page URL rules exclude pages. They were previously treated as a match.
  • Identity errors surface. A 403 from chat now reaches onError / onIdentityExpired with the server’s reason.
  • Lighter page loads for identified visitors. The conversation is restored when the widget is first opened or a message is sent, not on every page load.

0.10.2

October 14, 2026

Fixed

  • Long conversations, images and text attachments no longer break chat. The history sent with each message is capped, images are downscaled before sending, and long text files are trimmed with a notice.
  • identify() accepts the token as { userToken } or as a bare string. Install snippets that passed the token as a bare string had it silently dropped, so identity verification through those snippets did not work.
  • Repeat identifies are skipped. The same user, traits and session as a successful identify in the last 12 hours is no longer re-sent on every page load.

0.10.1

October 13, 2026

Security

  • All server-provided values in the widget’s conversation and ticket lists are now HTML-escaped. Previously a crafted session id could inject markup into the widget for later visitors on the same site. Sites loading from cdn.haloagents.ai/sdk/latest/ get this automatically; if you pin a version, move to 0.10.1.

Server-side (no SDK upgrade required)

  • Session and visitor ids sent to the API are restricted to letters, digits and _ . : @ -, and anonymous is no longer accepted as an identified user id.
  • Chat rate limiting now applies a per-visitor limit before the workspace-wide limit, so one client can no longer exhaust a workspace’s chat budget for everyone else.

0.10.0

August 5, 2026

Changed

  • init() with a userId now identifies the contact automatically. Previously, userId/userTraits passed to init() only rode along as chat context — the contact record itself was never created or updated unless the host app also called identify(). Activity tracking could therefore create an email-less contact that showed up as a raw ID in the inbox. init() now performs the same fire-and-forget backend identify as identify() (skipped for anonymous and preview sessions). Calling identify() after login is still recommended for traits not known at init time.
  • identify() no longer clears a static userToken/userHash when called without the identity argument. Previously, re-identifying without a fresh token wiped the credentials from init(), which fail-closed all user-scoped requests for orgs enforcing identity verification.

Server-side (no SDK upgrade required)

  • Verified JWT claims now populate the contact. When an identify request carries no email/name traits but the verified userToken includes those claims, they are written to the contact record.
  • Lead conversion now merges into an existing contact. When a verified identify matches a captured lead by email but a contact row already owns the external_id (e.g. created by activity tracking a moment earlier), the lead’s email, name, attribution, and conversation history now move onto that contact instead of the conversion being skipped — previously the contact could stay email-less indefinitely.

0.9.1

July 15, 2026

Fixed

  • The widget loads on iOS 15 and iOS 16.0 to 16.3. The bundle used a regular-expression feature those browsers reject, so it failed to load at all in Safari and in-app browsers (Facebook, Instagram, TikTok).
  • Versioned CDN paths (/sdk/<version>/) are immutable. Pinned versions used to be rebuilt on every deploy, which could change the file under a pinned SRI hash. Released builds are now archived and served unchanged. If you pinned 0.9.0 with an integrity hash before July 2026, check the hash again.

Added

  • Adaptive light/dark theme. theme: "auto" follows the visitor’s OS preference and switches live. It had been accepted, but rendered as light, since 0.6.0, so installs that already pass "auto" start showing the dark palette to visitors whose OS is in dark mode.
  • setTheme("light" | "dark" | "auto") for sites with their own theme toggle. See Theming.
  • Per-theme brand colors on the Brand page, and a readable icon color on light brand colors.

0.9.0

May 21, 2026

Changed

  • ui: 'manual' and manualOnPaths now allow in-app messages and banners. Manual mode hides the floating launcher and SDK-initiated surfaces (proactive teasers, greeting), but dashboard-configured Active Messages still render. Embedders who want zero overlays can opt out with ui: { inAppMessages: false, banners: false }. See Manual mode.

Added

  • getUserToken callback — fetch a fresh JWT from your backend when the static userToken expires. See Identity Verification.
  • onIdentityExpired callback — fires once when a JWT is expired, missing, or rejected (403). User-scoped requests pause until a fresh token arrives.
  • Fail-closed identity handling — the SDK no longer sends known-expired JWTs or keeps polling ticket endpoints after identity failure.

0.8.1

May 20, 2026

Fixed

  • In-app messages and banners respect the “Send to: users / leads” filter for every audience. Previously a “leads only” message could also show to signed-in users, and the reverse.
  • In-app message styles no longer collide between messages or stay on the page after a message is dismissed.

Added

  • Ticket-mode reply hint. In-app messages set up for ticket replies show “Replies open a support ticket” under the reply input.

0.8.0

May 19, 2026

Breaking (SDK requests)

  • /api/sdk/users/identify and /api/sdk/companies/identify now reject system-managed trait keys with HTTP 400. Previously these keys silently landed in custom_fields (e.g. userTraits.created_at) or, on the company side, were ignored entirely while shadowing the real columns. Both behaviors silently broke downstream consumers (segments, outreach campaigns, the inbox sidebar, the AI prompt). The endpoint now returns { error, reserved_keys: [...], docs_url } so a single 400 names every offending key in one round trip. Rejected on userTraits: id, external_id, org_id, company_id, created_at, updated_at, first_seen, last_seen, last_contacted_at. Rejected on companyTraits: id, external_id, org_id, created_at, updated_at, health_score, team_size, last_contacted_at. Migration. If you were sending traits.created_at on either endpoint to record “when this user/company signed up in my product”, rename it to traits.signed_up_at. Same ISO 8601 value, same meaning. The new field now populates a dedicated column on both tables, so the value powers the Contacts table, the new “Customer since” column on Companies, segments, outreach campaigns, broadcasts, email merge fields ({{ signed_up_at }} for users, {{ company.signed_up_at }} for companies), the AI prompt, and the MCP data_search_users / data_search_companies filters. See User Traits and Company Traits. Historical data was preserved: any value previously stored in custom_fields.created_at or custom_fields.intercom_created_at was backfilled into the new signed_up_at column at deploy time.

Added

  • companies.signed_up_at column for the customer-set “when did this company onboard in my product” date. Already existed on end_users; companies now have it too with the same field name and semantics on both endpoints. Auto-populated from Intercom (created_at), HubSpot (properties.createdate), Stripe (customer.created), and CSV import (header patterns: signed_up_at, signup_date, customer_since, member_since, create_date, created, and similar).
  • Customer since column on the Companies dashboard (hidden by default; toggle on via the column chooser). The existing “Added” column was renamed to Added to Halo to make the distinction obvious: “Added to Halo” is when the row landed in our database, “Customer since” is when they actually signed up in your product. Same split appears in the company detail sidebar’s Timeline section.
  • days_since_signup in onboarding rules and Slack mode-determination now prefers signed_up_at, falling back to created_at when not set. Pre-existing Intercom/HubSpot/Stripe-synced companies stop looking brand new the moment the backfill runs.
  • signed_up_at_after / signed_up_at_before filters on the data_search_users and data_search_companies MCP tools so the AI can answer “users who signed up in the last 30 days” or “companies that became customers in Q3 2024” without scanning every row.
  • signed_up_at added to the UserTraits and CompanyTraits TypeScript interfaces so TypeScript consumers get autocomplete for the new field. JSDoc on both interfaces lists the reserved keys that trigger HTTP 400, so the contract is visible at autocomplete time. The pre-0.8 UserTraits.created_at field was removed from the type (the value was always orphaned in custom_fields; keeping it in the types after the route rejection would be worse than no claim).

Fixed

  • Powered-by badge no longer leaks into ticket-detail and live-help views. Three of the chat panel’s view-switch methods forgot to toggle the .ab-powered-by element alongside messages / input / mode toggle, so the badge would either stay visible underneath the ticket detail surface or stay hidden after the user navigated back. Now follows the rest of the chat surface during view transitions.

Backwards compatibility

The breaking change is server-side (the SDK bundle has no behavior change). The CDN bundle is forward-compatible with the new rejection: no client-side code emits traits.created_at, so a customer page loading 0.7.x after the server deploys still works as long as the host app isn’t sending the reserved keys via userTraits / companyTraits. The signed_up_at type addition is purely additive; existing code keeps compiling. Customers loading from /sdk/latest/ automatically get 0.8.0 on the next page load. Version-pinned customers can move to /sdk/0.8.0/ at their own pace using the SRI manifest at /api/sdk/sri. Customers calling the identify endpoints directly from a backend must update before the dashboard deploy.

0.7.0

May 19, 2026

Changed (default behavior)

  • autoOpenUnseen now defaults to false (was true). The chat panel no longer auto-expands on page load when the user has unread messages. The launcher’s badge dot still appears for unread messages; the panel stays closed until the user taps. This matches Intercom’s default and removes the class of “panel auto-opened over my Sign Up button on mobile” reports without requiring any customer config. Migration. Customers who relied on the old auto-expand behavior can opt back in: HaloAgents.init({ ..., ui: { autoOpenUnseen: true } }). When opting in, consider adding manualOnPaths covering your auth/checkout flows so the panel can’t auto-open over a CTA. See Default behavior is quiet.

Added

  • onChatOpen and onChatClose callbacks. Fire once on the closed→open and open→closed transitions of the chat panel, regardless of who initiated the transition (host openChat()/closeChat(), the user tapping the trigger or the panel’s X button, or the SDK auto-opening on unseen messages). Idempotent: calling openChat() while already open does not fire onChatOpen again. Throws inside the callback are caught and routed through onError (if set) so a host bug cannot desync the SDK’s open/close cycle. Primary use case: hosts using ui.trigger: false or ui: 'manual' who need to keep their own “is the chat open?” state in sync with the panel. Replaces the pre-0.7 MutationObserver on .ab-trigger pattern, which does not work without a trigger element. See Tracking open state in manual mode.
  • Auth-page console nag. init() prints a one-time console.warn when it runs on a recognizable auth route (/signin, /signup, /login, /forgot-password, /oauth/*, /auth/*, etc.) AND the customer has explicitly enabled autoOpenUnseen: true without a manualOnPaths carve-out covering the path. Targeted at the narrow case where someone deliberately turned the loud behavior back on but forgot the carve-out. Pure dev-time signal, no telemetry, no production effect. With the new default of autoOpenUnseen: false, this warning won’t fire for most customers.

Backwards compatibility

All changes are additive or strictly safer than 0.6.x. Existing integrations need no code changes. Customers loading from /sdk/latest/ automatically get 0.7.0; customers using the legacy unprefixed path (cdn.haloagents.ai/sdk/haloagents.umd.js) are unaffected, that path still works and serves the latest build.

0.6.0

April 28, 2026 A “production-readiness” release. No new customer-facing UI surfaces; everything here is about catching bugs earlier, debugging faster, and locking down the install path.

Added

  • HaloAgents.getInstance().debug(). Returns a structured snapshot of the SDK’s runtime state (resolved UI flags, agent load state, session info, what’s actually mounted in the DOM, identity presence flags) and prints a human-readable version to the console. The first thing to call when something seems wrong. Safe to share with support since secrets are presence-flagged, not echoed. See Troubleshooting.
  • HaloAgents.version. Current SDK version string. Also surfaced inside debug() output. Useful for confirming which CDN bundle a page is actually loading.
  • Versioned CDN URLs. Every release is now served at both cdn.haloagents.ai/sdk/latest/ (auto-updating) and cdn.haloagents.ai/sdk/<version>/ (immutable). The <version>/ paths are pinnable with SRI integrity hashes for tamper-proof installs.
  • Strict config validation. init() now warns (single grouped console.warn) on unknown config keys, deprecated keys, and obvious typos. Suggests the closest valid key when the typo is within edit distance 2 (catches manualOnPath, triger, userTrait, etc.).

Fixed

  • unmount() (called by destroy()) now cleans up top banners and in-app message overlays in addition to the chat panel host. Without this fix, calling destroy() collapsed the panel but left active-message chrome on the page until full reload.
  • Banners and in-app messages no longer leak when the widget is unmounted between the active-messages fetch starting and resolving (e.g. SPA route change calling destroy() mid-request).

Backwards compatibility

All changes are additive or strictly safer than 0.5.x. Existing integrations need no code changes. Customers loading from /sdk/latest/ automatically get 0.6.0; customers using the legacy unprefixed path (cdn.haloagents.ai/sdk/haloagents.umd.js) are unaffected, that path still works and serves the latest build.

0.5.1

April 28, 2026

Fixed

  • ui: 'manual' and manualOnPaths no longer leak top banners or in-app message overlays. loadActiveMessages was bypassing the UI suppression flags entirely, so any active message configured in the dashboard would still render across the page. Reported by orbitforms.ai.

Added

  • ui.banners and ui.inAppMessages per-surface flags. Both default to true. Implied false by ui: 'manual' and manualOnPaths matches.
  • onBeforeShowBanner({ id, body }) and onBeforeShowInAppMessage({ id, body }) host-veto callbacks. Same shape as the existing onBeforeShowProactive callback: synchronous, return false to suppress this specific message.

0.5.0

April 28, 2026

Added

  • ui config field on HaloAgents.init() to suppress one or more default UI surfaces. Pass 'manual' for full headless mode, or an object for per-surface flags: { trigger, badge, proactive, greeting, autoOpenUnseen }. Replaces the brittle pattern of injecting CSS into the shadow DOM to hide internal classnames.
  • manualOnPaths config field. Glob patterns that switch the widget into manual mode on matching pathnames. Lets a single init() call serve both marketing pages (full chrome) and an authenticated app (host-controlled launcher) without conditional initialization.
  • onBeforeShowProactive(message) callback. Synchronous host veto run before each proactive teaser. Return false to suppress this specific message.

Fixed

  • The auto-open-on-unseen-messages behavior now respects ui.autoOpenUnseen, so apps that mount Halo only behind a custom button no longer have the panel pop open unprompted when an agent replies.

0.4.0

February 2026

Added

  • identify(userId, traits, identity?). Optional third argument lets the host rotate userToken / userHash alongside the user id (e.g. on JWT refresh).
  • The SDK now forwards the configured userToken / userHash on every request as X-User-Token / X-User-Hash headers, not just on chat.

Security (potentially breaking for orgs with identity verification enabled)

The server-side companion to this release gates every user_id-scoped SDK endpoint on a valid user_token JWT (or user_hash) whenever the org has team_secrets.identity_secret configured. Previously only the chat / stream / handoff routes enforced identity; the surrounding read + write endpoints trusted whatever user_id the caller sent. After deploying the matching server release, any widget still on <= 0.3.x will receive 403 responses on these endpoints because the older SDK does not forward the identity headers. Upgrade widgets to 0.4.0 or later (or arrange for the host page to call HaloAgents.identify() with the new identity argument) to restore those endpoints. Orgs without identity_secret configured are unaffected.

Older versions

For releases prior to 0.4.0, see the source repository’s packages/sdk/CHANGELOG.md.