Skip to content

fix(mobile): keep shared images when switching places - #448

Merged
SiddDevZ merged 1 commit into
DuskBotAI:devfrom
pranavgawaii:fix/ios-share-handoff
Dec 3, 2026
Merged

SiddDevZ merged 1 commit into
DuskBotAI:devfrom
pranavgawaii:fix/ios-share-handoff

Conversation

@pranavgawaii

Copy link
Copy Markdown
Contributor

What and why

Fixes #446.

When an iPhone share targets a bot on another linked place, the app stores the action before switching. If storage rejects the write, it currently switches anyway; an image may disappear, and a mixed share may carry only its text. This change switches only after the complete action is retained and shows a retry alert on failure. The same handoff rule covers send, call, and open actions.

How it was checked

  • On unchanged dev at ddafc35, the synthetic quota-refusal regression observed switchTo("cloud") after the storage write failed.
  • After rebasing onto dev at 5ef9604, vitest run src/mobile/shortcuts.dom.test.ts passed: 13 tests, including image-only and mixed text-and-image failures.
  • Repository oxlint and git diff --check passed.
  • The full typecheck and test suite were not completed locally. I stopped concurrent typechecks after observing memory pressure on this Mac; CI is pending.
  • I have not measured a physical iPhone quota threshold or run a native device test. Native before/after screenshots are pending.

The change and tests were AI-assisted. All actions and failures in the fixture were synthetic; no live bot or personal data was used.

  • pnpm typecheck, pnpm lint and pnpm test pass
  • New behavior has regression tests
  • No secrets, personal data or local paths in the diff

@pranavgawaii
pranavgawaii marked this pull request as ready for review November 29, 2026 11:46
@SiddDevZ
SiddDevZ merged commit a95a7e9 into DuskBotAI:dev Dec 3, 2026
20 of 21 checks passed
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.

2 participants