Repository navigation
OpenBot Mobile: Share details under an error, and Report a problem in Account - #2718
Merged
Merged
Conversation
… Account An error on the phone can now be sent to us. Every red notice and every reply that stopped offers "Share details": the phone's share sheet with the error, the screen and the ids it was opened with, the run or message, the OpenBot release, app build and update, the phone and iOS version, the server and the time. Account's "Report a problem" shares the same without an error. Nothing anybody wrote is in it: a screen's address keeps only its ids, and a stored failed reply gives its reason, not its text. It uses React Native's Share, so it needs no new native module and reaches installed apps in an update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tylerslaton
requested review from
MikeRyanDev,
davidmckayv,
dustywusty,
guidovizoso,
mxmzb and
samjulien
as code owners
December 2, 2026 00:43
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hem (#2814) v1.2.8, released today, first served getBotApp's actions and getRecordingTitles deprecated with x-sunset 2027-12-01, 364 days out, so CI's support-window check failed every pull request into mobile. Both move to 2027-12-02, as main moved them in #2814; merging main into mobile later finds the same lines. The workflow part of #2814 is left for that merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tylerslaton
added a commit
that referenced
this pull request
Dec 3, 2026
… Account (#2718) * OpenBot Mobile: Share details under an error, and Report a problem in Account An error on the phone can now be sent to us. Every red notice and every reply that stopped offers "Share details": the phone's share sheet with the error, the screen and the ids it was opened with, the run or message, the OpenBot release, app build and update, the phone and iOS version, the server and the time. Account's "Report a problem" shares the same without an error. Nothing anybody wrote is in it: a screen's address keeps only its ids, and a stored failed reply gives its reason, not its text. It uses React Native's Share, so it needs no new native module and reaches installed apps in an update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * API: the two 1.2.8 deprecations sunset a full year out, as main has them (#2814) v1.2.8, released today, first served getBotApp's actions and getRecordingTitles deprecated with x-sunset 2027-12-01, 364 days out, so CI's support-window check failed every pull request into mobile. Both move to 2027-12-02, as main moved them in #2814; merging main into mobile later finds the same lines. The workflow part of #2814 is left for that merge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
In #openbot-dogfooding, Travis hit a red "fetch failed" on iOS that disappeared before he could capture it, and asked how to get logs off the phone. The app had no way to do that. This adds the "Copy details" option agreed in that thread (Mark: it's what most SAP mobile apps ended up with after trying diagnostic upload APIs).
What
Noticewithtone="danger", 52 call sites, no per-screen changes) shows Share details under its message.details={false}turns it off for a notice that doesn't need it.The report (
src/error-details.ts) is plain text:No user content. The screen's address keeps only known ID parameters (
channelId,botId,agentId,routineId,requestId,appId). It drops the rest, which can carry a draft message or a sign-in code. A stored failed reply contributes itsreason, not its text, which can hold the start of the Bot's reply. No tokens or keys are in reach.Share sheet, not clipboard. The app has no clipboard module, and adding
expo-clipboardwould change the native fingerprint and need a store build. React Native'sShareis already used in the app (bot-reach,bot-sharing). It offers Copy, and Slack or Mail directly, and it reaches installed phones through EAS Update.No API or database change.
Checks
bun test mobile/tests/error-details.test.ts: 3 pass (the report's exact shape, nothing beyond the ID parameters leaves the address, and a report with no error)bun test mobile/tests: same results asorigin/mobile. The 2 errors are a missingzodin a fresh checkout and happen without this change.tsc --noEmitinmobile/: passesbiome checkon the changed files: clean, exceptconversation.tsx's import order, which is already onorigin/mobileScreenshots
Not yet. A fresh dev-client build of
origin/mobilecrashes at launch on the spare iOS 27.2 simulators (react-native-worklets:Cannot read property 'loadUnpackersWithCode' of undefined, andCannot find native module 'ExpoUI'). That happens without this change, so it's the environment. Screenshots will follow in a comment.Changelog
Before upgrading.
GET /api/v2/organizations/{organizationId}/bots/{botId}/apps/{appId} query actions: send the actions in a body with readBotApp instead. Sunset 2027-12-02.GET /api/v2/organizations/{organizationId}/people/{personId}/recording-titles: send the ids in a body with readRecordingTitles instead. Sunset 2027-12-02.OpenBot Mobile.
🤖 Generated with Claude Code