Skip to content

[Issue]: Swipe counter always visible on single-swipe messages (regression in 2.0.5) #2867

Description

@Romuromylus

Summary

As of 2.0.5 the per-message swipe counter (the "current / total" indicator and swipe arrows) is always displayed, even when a message has only a single swipe. In previous versions it only appeared when a message had multiple swipes.

Expected behavior

The swipe counter and navigation arrows should only be visible when a message has more than one swipe, as in all versions before 2.0.5.

Actual behavior

The swipe counter shows on every message, including single-swipe messages that display a constant "1 / 1".

Steps to reproduce

  1. Open any chat on 2.0.5.
  2. Generate or view a message that has only one swipe.
  3. Observe the swipe counter (and arrows) are displayed even though there are no other swipes to navigate to.

Environment

  • Marinara Engine version: 2.0.5
  • Install type: any
  • OS + version: any
  • Browser or app shell: any

Logs, screenshots, or video

Reported in the community Discord. Purely a visual regression.

Additional context

Regression in packages/client/src/components/chat/SwipeJumpControl.tsx: the visibility guard was changed to if (swipeCount <= 1 && !onCreateNextSwipe) return null;. Since the message layouts now always pass onCreateNextSwipe when regeneration is available, the guard no longer suppresses the control for single-swipe messages.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingin-prHas an open pull request targeting staging

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions