Changelog
Unreleased · security audit fixes
Section titled “Unreleased · security audit fixes”From a full source audit of the repository (8 confirmed issues, none high or critical). Host and SDK are upgraded
together: an iOS app built with an older SDK does not see the run token from a newer quameleon-qa (see below).
quameleon-qa: the run token is no longer on any command line thatpsshows other local users. Android sends theam startcommand overadb shell’s stdin; iOS passes the token in the launched app’s environment (SIMCTL_CHILD_quameleon_token), which the iOS SDK now reads alongside the launch arguments.quameleon-qa replay/symbolicateand recording: a recording directory can come from anyone, so outputs replace a planted symlink instead of writing through it,symbolicatecopies only lines that parse as JSON, frames are read only from a real (not symlinked)frames/directory, and recording refuses a symlinkedframes/.- Scripted tests: secret redaction also removes the JSON-escaped and shell-quoted forms of a secret value (values with
",\or'showed up escaped in logs,result.json, JUnit and assertion messages). - qa-cloud: an upload whose header carries a
null/ scalarappordevice, a non-string error message, or a hugereplay_droppedno longer breaks the app’s dashboard; device timestamps are clamped to the server clock plus one day (a far-future session can no longer pin the list or escape retention), and older rows like that are pruned. - qa-cloud and the replay player: at most 32
*_gz/*_jsonprops per signal, and one replay page decodes at most 32 MB of them, so a tiny compressed upload cannot make opening a session allocate without bound. - Report redaction (
@quameleon/core): secret property and token names match in camelCase too (authToken,cardNumber,sessionId), while look-alikes such asauthorandtokenizerstill pass. - UI patches: a safe mode entered after a suspected crash is now persisted and survives later launches, so a patch that crashes the app is no longer re-applied on every other launch.
Unreleased · sign-out starts a new session
Section titled “Unreleased · sign-out starts a new session”-
Expo plugin: the iOS release sourcemap (
SOURCEMAP_FILE) now defaults to$DERIVED_FILE_DIR/main.jsbundle.map, as Sentry’s does. The old$CONFIGURATION_BUILD_DIRdefault was React Native’s intermediate map path, which its bundle script deletes, so Hermes release builds lost the map and a Sentry upload in the same build failed. -
Production:
reset()(sign-out, after anidentify()) now ends the current session and user session and starts new ones in the same process, so a different person signing in on the device never shares a session or replay with the previous one. The ended session’s last signals still upload under its own ids; the new session starts with the current screen. Signing in (identify()) still attaches the user to the running session. QA mode is unchanged.
Unreleased · parity gaps found by an Expo app
Section titled “Unreleased · parity gaps found by an Expo app”- iOS: a horizontal swipe switches pages in react-native-pager-view / material top tabs / SwiftUI page
TabView(swipes now end like a flick, with the scroll view’s drag-end and deceleration callbacks), and a swipe down at the top of a list starts pull-to-refresh (RefreshControl). - iOS: a tap on an expo-video / AVPlayerViewController video shows its controls (
Play, skip buttons), like a finger; a plain tap recognizer now wins over framework subclasses, and the window’s system tap recognizer (iOS 26) is never fired, so an unhandled tap repliesunsupportedagain. - iOS 26: alert Cancel buttons run through the alert’s Escape key command; React Native
Alert.alertbuttons run through JS. A UILabel’s text is its hierarchy label while UIKit’s accessibility runtime hasn’t loaded. - Targets and
label:checks match ignoring case when nothing matches exactly (Android draws dialog buttons as “CANCEL”), the same on both platforms. - Android: every resumed activity’s windows are read; the top one is the base (expo-video’s fullscreen player).
- iOS: swipes on React Native scroll views end like a flick too (RN hides its scroll delegate behind a splitter, so
its component view is called directly), which makes paging
ScrollViewtab bars switch tabs and fireonMomentumScrollEnd. VisionKit’s Live Text overlays on a video no longer swallow taps. - Scripted tests:
platform: android|ioson a step;scroll_to: { …, on }; a sheet’s dimming view no longer counts as covering the sheet’s rows (scroll_toin a React Native modal stack never finished); an endlessly animating iOS screen settles after 1 s like Android instead of after the 10 s cap; step 1 waits for the app’s first screen (a React Native app’s JS can still be loading while its main thread is idle).
Unreleased · iOS parity, multi-window, settle
Section titled “Unreleased · iOS parity, multi-window, settle”- iOS parity with Android (matrix: platform parity).
- React Native on iOS can be scripted: taps and long presses on RN views resolve the component through the React
fiber tree in JS and call
onPress/onLongPress(QA mode only). Text goes through the nativeTextInput, withonChangeText/onSubmitEditingfrom JS as a fallback. type/submitinto a WebView field (it repliedno_focus), and alert buttons run their action.clear_stateresets the Simulator keychain.- Leak suspects on iOS: popped or dismissed view controllers still alive after 15 s are reported as
leak. - Kotlin Multiplatform has
ios*targets (a SwiftQuameleonBridgeover the Swift core).
- React Native on iOS can be scripted: taps and long presses on RN views resolve the component through the React
fiber tree in JS and call
- Every app window in the hierarchy and for taps. Android read only the activity window, so Dialogs, React
Native
Modal,PopupWindows, bottom sheets and first-run tours were missing from the hierarchy (while taps landed on them). Both platforms now list every visible app window (iOS: alert / overlay windows and presented controllers), top-most first and flaggedoverlay, and sendactinput to the top-most window under the point.__idlewatches draws in all of them. - Settle waits for the UI a response triggers.
__idlestays false for 300 ms after the last request ends and after everyact, and steps wait up to 2 s for a disabled target (enabled: false) before tapping, so a step no longer taps a button that a response is about to enable. - iOS: a race that could crash the QA app (
__idleprobe, unsigned time underflow) and a race that could leaveactout of the hello capabilities are fixed. quameleon-qa testprints why a test file failed to parse.
Unreleased · field-test fixes
Section titled “Unreleased · field-test fixes”Found by integrating 0.5.0 into three open-source apps (Ignite for React Native, Jetcaster for Jetpack Compose, Hackers for SwiftUI) against Quameleon Cloud, then re-verified on an Android emulator and an iOS simulator.
- Privacy: under R8 full mode (AGP 9) Compose text fields could go unmasked in production replay. The consumer rules now keep everything Compose capture reads, and masking fails closed if the semantics tree can’t be read.
trackNavControllerworks in minified builds, and its Activity no longer reports itself as an extra screen.- React Native production mode captures each
fetch/XHR once (it was also captured natively). - OkHttp cache hits report the cached status (they were reported as failed).
- Backgrounding the app uploads at once, inside a background task on iOS, and waits for an upload already in flight. An upload that never returns is abandoned after 120 s instead of stopping uploads until the next launch.
- No spurious warm or hot launches on a cold start (iOS
App.init, Android), or when the iOS keyboard appears. network.erroris"cancelled"for client-side aborts on every platform, andokis false whenever there is an error.- Replay player: phone and timeline side by side, and playback scrolls only the timeline.
Security
Section titled “Security”- Android QA activation is now host-provisioned and fails closed. A launch token in the intent extras no longer
activates QA mode on its own (any co-installed app could send one). The build must be debuggable or set
QA_ACTIVATION=true, and the host must first write a hash of the token withadb shell settings put global quameleon_qa_token …(quameleon-qaand@quameleon/qa-hostdo it). Native apps activate withQuameleonQaActivation.activate(activity). The Expo plugin (production: true) bakesQA_ACTIVATION=falseinto every non-QA build whatever the profile name, and the Gradle plugin forces it into non-QA variants. iOS reads the token from the launch arguments only. - Remote config can only reduce privacy-sensitive capture in production.
network_bodies,push_content,console,screenshots,layout,hierarchy,shakeandreplayare enabled only by the app’s ownconfigure()(replay: start configreplay); remote config can switch them off, never on. - Captured network bodies are redacted: values of password, token, secret, authorization, API key, card, CVV, OTP,
PIN, SSN and similar keys inside JSON and form bodies become
<redacted>before truncation.
0.5.0 · protocol v1.5
Section titled “0.5.0 · protocol v1.5”Quameleon Cloud by QualGent.
identify(distinctId, props),reset()andcapture(event, props)on every platform.device_id: a persisted per-install id (Android app files, iOS Keychain), or your own throughdeviceId. Sent with every batch, withdistinct_id.- Session replay in production mode: sampled per session by remote config
replay, inputs always masked, its own spool (300 frames or 6 MB per session) andPOST /v1/replay. - Layout frames allowed in production with replay, for the wireframe view. Only the live hierarchy stays QA-only.
- Hosted dashboard: organizations, projects, environments, sessions and replay, screens, events, trends, funnels, retention, paths, issues, performance, devices, users, releases, audit log.
0.4.0 · protocol v1.4
Section titled “0.4.0 · protocol v1.4”- Opt-in production mode: spool, gzip batches, retries with backoff, idempotent ingest.
- AES-256-GCM encryption with an RSA-OAEP-wrapped key, at rest and in transit.
- Remote config with sampling, capture switches and a kill switch.
- User sessions across launches (30 minutes idle, 12 hours maximum).
- In-app OTLP export and a Crashlytics bridge.
@quameleon/qa-cloud, a self-hostable backend.
0.3.0 · protocol v1.2 and v1.3
Section titled “0.3.0 · protocol v1.2 and v1.3”- Hangs with sampled stacks, previous-run exits, cold, warm and hot launch with phases, vitals, device state.
- Gestures and rage taps, console, spans and an OTel tracer, context and feature flags, bug reports, screenshots.
- Live view hierarchy and layout snapshots;
q.ui()assertions; Compose and SwiftUI support. - Native HTTP with phase timings,
HttpURLConnection,traceparent, opt-in bodies. - KSCrash, MetricKit, NDK crashes, JVM threads and cause chains, breadcrumbs, leaks.
- Action latency,
q.idle(), the on-device spool, WebViews (qa-web), push, KMP facade. - CLI:
symbolicate,report,profile,export --otlp,mcp.
0.2.0 · protocol v1.1
Section titled “0.2.0 · protocol v1.1”- Taps, lifecycle, network (fetch and XHR), JS errors and native crashes.
- Masked session replay with its own frame buffer.
- Capture category switches and hello capabilities.
0.1.0 · protocol v1.0
Section titled “0.1.0 · protocol v1.0”- Dormant-by-default QA mode with per-run token activation.
- NDJSON over
127.0.0.1, handshake,screen,eventandlogsignals, actions and probes. @quameleon/qa-hostwith the firstqassertions.