[GH-ISSUE #7849] [Issue]: Rapid avatar arrow-key movements are dropped before Done #4320

Closed
opened 2026-10-21 06:14:49 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7849

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Rapid repeated arrow-key input in Arrange avatars can drop movements and save the incomplete position when Done is selected. This was reproduced while finishing #7843; that PR has now merged, so this report tracks the remaining keyboard correction.

Expected behavior

Each native arrow-key event moves the avatar by one step, and selecting Done immediately saves that complete position across reload.

Actual behavior

With an uploaded VRM, twenty native held ArrowRight keydowns from x=28.125 saved x=41.125 instead of x=48.125. The AvatarSlot handler reads a render-time placement while the shared placement hook follows external updates in a passive effect, so rapid events can reuse an older position.

Steps to reproduce

  1. Open a Roleplay chat with an uploaded VRM and enable Arrange avatars.
  2. Resize the avatar so its per-avatar Done control is reachable, then focus its canvas.
  3. Send twenty native ArrowRight keydown events while held, release the key and immediately select Done.
  4. Compare the movement count and reload the chat. The original code loses some steps.

Environment

  • Marinara Engine version: source 2.5.0; reproduced on a49944e0 and its unchanged avatar files merged by #7843.
  • Install type: source.
  • OS + version: macOS validation host.
  • Browser or app shell: desktop Chromium native Playwright keyboard input; final regression also covers phone Chromium and phone WebKit browser profiles.

Logs, screenshots, or video

The final existing E2E case reproduces the old behavior (13 of 20 steps) and passes after a narrowly scoped shared-hook correction. Local logs: /tmp/marinara-avatar-native-key-final-red.log and /tmp/marinara-avatar-native-key-final-green.log. These are local evidence paths, not hosted artifacts.

Additional context

Requested as part of @SpicyMarinara's urgent avatar repair. Owner: Codex, follow-up branch fix/avatar-keyboard-placement. Related #7842 and #7843. The correction reuses the placement hook's current-position ref; it does not add another placement store or change storage format.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7849 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Rapid repeated arrow-key input in Arrange avatars can drop movements and save the incomplete position when Done is selected. This was reproduced while finishing #7843; that PR has now merged, so this report tracks the remaining keyboard correction. ## Expected behavior Each native arrow-key event moves the avatar by one step, and selecting Done immediately saves that complete position across reload. ## Actual behavior With an uploaded VRM, twenty native held ArrowRight keydowns from x=28.125 saved x=41.125 instead of x=48.125. The AvatarSlot handler reads a render-time placement while the shared placement hook follows external updates in a passive effect, so rapid events can reuse an older position. ## Steps to reproduce 1. Open a Roleplay chat with an uploaded VRM and enable Arrange avatars. 2. Resize the avatar so its per-avatar Done control is reachable, then focus its canvas. 3. Send twenty native ArrowRight keydown events while held, release the key and immediately select Done. 4. Compare the movement count and reload the chat. The original code loses some steps. ## Environment - Marinara Engine version: source 2.5.0; reproduced on a49944e0 and its unchanged avatar files merged by #7843. - Install type: source. - OS + version: macOS validation host. - Browser or app shell: desktop Chromium native Playwright keyboard input; final regression also covers phone Chromium and phone WebKit browser profiles. ## Logs, screenshots, or video The final existing E2E case reproduces the old behavior (13 of 20 steps) and passes after a narrowly scoped shared-hook correction. Local logs: `/tmp/marinara-avatar-native-key-final-red.log` and `/tmp/marinara-avatar-native-key-final-green.log`. These are local evidence paths, not hosted artifacts. ## Additional context Requested as part of @SpicyMarinara's urgent avatar repair. Owner: Codex, follow-up branch `fix/avatar-keyboard-placement`. Related #7842 and #7843. The correction reuses the placement hook's current-position ref; it does not add another placement store or change storage format. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:14:49 +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-Engine#4320
No description provided.