Skip to content

chore: report on-device AI failures to TimberLogs#2285

Merged
enaboapps merged 1 commit into
mainfrom
chore/ai-error-telemetry-2284
May 22, 2026
Merged

chore: report on-device AI failures to TimberLogs#2285
enaboapps merged 1 commit into
mainfrom
chore/ai-error-telemetry-2284

Conversation

@enaboapps

Copy link
Copy Markdown
Collaborator

Summary

On-device AI inference failures (AICore and MediaPipe, including BACKGROUND_USE_BLOCKED) only reached logcat via Log.e, so they were invisible in TimberLogs telemetry.

  • Adds LogEvent.OnDeviceAiFailed (error level, dataset = "ai", tags ai/failure).
  • OnDeviceAi.run's catch now routes through Logger.log — reporting the selected backend, the task, and the exception.

Privacy

Categorical only: backend and task class names plus the inference exception. No screenshot, prompt, or generated reply content is logged. Logger already gates on the telemetry opt-in, so users who declined send nothing.

Test plan

  • ./gradlew compileDebugKotlin testDebugUnitTest — compiles, tests pass.

Closes #2284

@enaboapps enaboapps added this to the v2.25.0 milestone May 22, 2026
Inference failures (AICore and MediaPipe) only reached logcat, so they
were invisible in telemetry. Route them through Logger.

- Add LogEvent.OnDeviceAiFailed (error level, dataset "ai").
- OnDeviceAi.run's catch logs the selected backend, the task, and the
  exception — categorical only, no screenshot, prompt, or reply content.
  Already gated by the telemetry opt-in.
@enaboapps enaboapps merged commit 8ed2574 into main May 22, 2026
@enaboapps enaboapps deleted the chore/ai-error-telemetry-2284 branch May 22, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Send on-device AI failures to TimberLogs

2 participants