[PR #2086] [MERGED] fix(otome-forge): a tapped sticker sends on iPhone (0.7.4) #2109

Closed
opened 2026-11-07 16:39:34 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2086
Author: @SpicyMarinara
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/otome-sticker-tap


📝 Commits (5)

  • 18c99c7 fix(otome-forge): a tapped sticker sends on iPhone (0.7.4)
  • e0df6a7 chore(otome-forge): the 0.7.4 artifact
  • f3281ee Merge branch 'staging' into fix/otome-sticker-tap
  • 5f7abb5 fix(otome-forge): closing the sticker panel from its button keeps focus there (0.7.4)
  • ba14447 Merge remote-tracking branch 'origin/fix/otome-sticker-tap' into fix/otome-sticker-tap

📊 Changes

13 files changed (+88 additions, -45 deletions)

View changed files

➕ artifacts/otome-forge-0.7.4.zip (+0 -0)
📝 catalog/preview/catalog.json (+6 -6)
📝 catalog/preview/notes.json (+6 -6)
📝 catalog/preview/v2/catalog.json (+6 -6)
📝 catalog/preview/v2/notes.json (+6 -6)
📝 catalog/preview/v3/catalog.json (+6 -6)
📝 catalog/preview/v3/notes.json (+6 -6)
📝 packages/otome-forge/CHANGELOG.md (+4 -0)
📝 packages/otome-forge/client.js (+1 -1)
📝 packages/otome-forge/manifest.json (+3 -3)
📝 packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/phone/StickerPicker.tsx (+17 -4)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/package-otome-forge-home.e2e.ts (+26 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #2085

Why this change

The maintainer: on an iPhone, tapping a sticker in Messages does nothing, and it should be sent as a message.

A press in WebKit never focuses the pressed button. Focus goes to the nearest focusable ancestor, the Engine's main, which is outside the sticker picker. The picker's focus-leaves handler treated that as leaving and closed the panel on the press. The sticker button was gone before the tap's click arrived. The picker's comment assumed iOS moves focus nowhere on a press.

Chromium's mouse click focuses the button itself, so the existing browser test never caught it.

What changed

Package: otome-forge 0.7.4 (rebuilt client.js, artifact and catalog preview entries).

  • screens/phone/StickerPicker.tsx: a press inside the picker moves no focus (onMouseDown prevents the default on the picker's wrapper), so the sticker's click lands and sends it. Keyboard use, Escape, presses outside and focus leaving the picker still close it as before. The header comment now says what WebKit does.
  • tests/package-otome-forge-home.e2e.ts: while her sticker is clicked, every press that doesn't keep its focus hands focus to the Engine's main, as WebKit does.

Package and security impact

  • Affected package IDs: otome-forge
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

What the agent ran:

  • Reproduced in Playwright WebKit with iPhone 13 emulation and a real tap().
    • On 0.7.3 the panel closes on the press. The logged events are mousedown on the sticker, focusout to main, then the panel gone. No /send request goes out.
    • On 0.7.4 the same tap sends {"text":"","sticker":"you:laugh"}.
  • The extended phone test fails on 0.7.3 (the sticker never sends) and passes on 0.7.4.
  • tests/package-otome-forge-home.e2e.ts on desktop and mobile Chromium: 38/38 pass.
  • typecheck-packages.mjs otome-forge (client), plus eslint and prettier on the changed files, and git diff --check: clean.

Manual verification notes

  • Manually verify on an iPhone: in a love interest's Messages, open Stickers and tap one of yours, then one of theirs. Each is sent as its own message and the panel closes.
  • Manually verify on desktop: clicking a sticker sends it. Escape and a click outside close the panel without sending.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/2086 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/3/2026 **Status:** ✅ Merged **Merged:** 11/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/otome-sticker-tap` --- ### 📝 Commits (5) - [`18c99c7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/18c99c75ee1a7c00904b3c384dfe25f5e7389693) fix(otome-forge): a tapped sticker sends on iPhone (0.7.4) - [`e0df6a7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e0df6a734bcdb432412709636109be3f4337ad74) chore(otome-forge): the 0.7.4 artifact - [`f3281ee`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f3281eeeda4905379d1bbc8d49def80e8d528e2e) Merge branch 'staging' into fix/otome-sticker-tap - [`5f7abb5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5f7abb5c4c3703192bc2935eb97737f365a0549a) fix(otome-forge): closing the sticker panel from its button keeps focus there (0.7.4) - [`ba14447`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ba14447bcac92eee06e104586ca428c0fa986965) Merge remote-tracking branch 'origin/fix/otome-sticker-tap' into fix/otome-sticker-tap ### 📊 Changes **13 files changed** (+88 additions, -45 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/otome-forge-0.7.4.zip` (+0 -0) 📝 `catalog/preview/catalog.json` (+6 -6) 📝 `catalog/preview/notes.json` (+6 -6) 📝 `catalog/preview/v2/catalog.json` (+6 -6) 📝 `catalog/preview/v2/notes.json` (+6 -6) 📝 `catalog/preview/v3/catalog.json` (+6 -6) 📝 `catalog/preview/v3/notes.json` (+6 -6) 📝 `packages/otome-forge/CHANGELOG.md` (+4 -0) 📝 `packages/otome-forge/client.js` (+1 -1) 📝 `packages/otome-forge/manifest.json` (+3 -3) 📝 `packages/otome-forge/src/engine/packages/client/src/features/otome-forge/screens/phone/StickerPicker.tsx` (+17 -4) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/package-otome-forge-home.e2e.ts` (+26 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #2085 ## Why this change The maintainer: on an iPhone, tapping a sticker in Messages does nothing, and it should be sent as a message. A press in WebKit never focuses the pressed button. Focus goes to the nearest focusable ancestor, the Engine's `main`, which is outside the sticker picker. The picker's focus-leaves handler treated that as leaving and closed the panel on the press. The sticker button was gone before the tap's click arrived. The picker's comment assumed iOS moves focus nowhere on a press. Chromium's mouse click focuses the button itself, so the existing browser test never caught it. ## What changed Package: `otome-forge` 0.7.4 (rebuilt `client.js`, artifact and catalog preview entries). - `screens/phone/StickerPicker.tsx`: a press inside the picker moves no focus (`onMouseDown` prevents the default on the picker's wrapper), so the sticker's click lands and sends it. Keyboard use, Escape, presses outside and focus leaving the picker still close it as before. The header comment now says what WebKit does. - `tests/package-otome-forge-home.e2e.ts`: while her sticker is clicked, every press that doesn't keep its focus hands focus to the Engine's `main`, as WebKit does. ## Package and security impact - Affected package IDs: `otome-forge` - Engine compatibility impact: none - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` What the agent ran: - Reproduced in Playwright WebKit with iPhone 13 emulation and a real `tap()`. - On 0.7.3 the panel closes on the press. The logged events are `mousedown` on the sticker, `focusout` to `main`, then the panel gone. No `/send` request goes out. - On 0.7.4 the same tap sends `{"text":"","sticker":"you:laugh"}`. - The extended phone test fails on 0.7.3 (the sticker never sends) and passes on 0.7.4. - `tests/package-otome-forge-home.e2e.ts` on desktop and mobile Chromium: 38/38 pass. - `typecheck-packages.mjs otome-forge` (client), plus eslint and prettier on the changed files, and `git diff --check`: clean. ### Manual verification notes - Manually verify on an iPhone: in a love interest's Messages, open Stickers and tap one of yours, then one of theirs. Each is sent as its own message and the panel closes. - Manually verify on desktop: clicking a sticker sends it. Escape and a click outside close the panel without sending. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:39:34 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#2109
No description provided.