mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6210] [MERGED] fix: show slash-command arguments in helpers and guides #7092
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7092
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6210
Author: @SpicyMarinara
Created: 9/14/2026
Status: ✅ Merged
Merged: 9/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/slash-command-usage📝 Commits (4)
9304772docs: record slash-command usage improvementsb1a155ffix: show slash usage and support range-first character hiding1e9655dMerge remote-tracking branch 'origin/staging' into fix/slash-command-usagee685ec9fix: disambiguate numeric hide targets and clarify undo📊 Changes
9 files changed (+413 additions, -49 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/chats/messages.md(+1 -1)📝
docs/chats/slash-commands.md(+45 -17)📝
e2e/roleplay-commands.e2e.ts(+78 -0)📝
packages/client/src/components/chat/ChatInput.tsx(+6 -3)📝
packages/client/src/components/chat/ConversationInput.tsx(+11 -4)📝
packages/client/src/lib/slash-commands.ts(+53 -22)📝
packages/client/src/localization/locales/en.json(+22 -2)➕
scripts/regressions/slash-command-usage.regression.ts(+196 -0)📄 Description
Linked issue
Closes #6209
Why this change
Typing
/asshowed only its name and description, leaving users to guess the character name and optional message arguments. Other commands had the same discoverability problem. This adds readable argument formats to the existing suggestions and guides, and supports the requested/hide [range] [name (optional)]order.What changed
/help, with localized placeholders and explicit optional inputs. Keep syntax and descriptions readable on mobile./hidewhile preserving global hiding, legacy name-first commands, and existing character visibility storage. Reject unknown or ambiguous targets without changing messages./unhideretains its existing global behavior; the guide points to the visibility chooser for undoing character-specific hiding.Validation
pnpm checkpasses: localization, formatting, lint/types and production build.slash-command-usage.regression.tsreproduces the missing range-first execution before the fix and passes afterward. It verifies character-specific append-only writes, legacy syntax, quoted/numeric names, invalid or ambiguous targets with no writes, global hiding in both modes, idempotence, and unchanged/unhidebehavior.Existing conversation-game slash and dice-notation regressions pass. Localized usage/help and package command fallback are covered.
Focused
pnpm smoke:ui e2e/roleplay-commands.e2e.ts --grep "Slash command argument syntax": 6/6 pass across desktop Chromium, mobile Chromium and mobile WebKit, covering both chat modes. Checks/help, required/optional syntax, alias/plain command insertion, status hints, and viewport bounds.Before/after screenshots use synthetic empty chats. No model/provider calls or real user data.
pnpm checkpasses locallyContainer (Docker / Podman) built and ran without issue
Ran the app, clicked through the changes manually
Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
Above manual verification completed (describe below)
Read and followed
CONTRIBUTING.mdManual verification notes
Manually verify slash suggestions and argument hints in Roleplay and Conversation on a physical mobile device. Confirm range-first
/hideand legacy saved commands in an existing group Roleplay chat. The regression fixtures use synthetic data and no paid model calls.Docs and release impact
Updated
docs/chats/slash-commands.md,docs/chats/messages.md, andCHANGELOG.md. Translated documentation follow-up: #6211. UI usage strings are added to canonical English; community locales fall back to English.UI evidence
Before/after command suggestion screenshots (self-contained HTML; download and open to view embedded images).
Summary by CodeRabbit
New Features
/hide,/unhide,/selfie, and/status./hidesupports message ranges with optional character names in Roleplay chats./gamesand/selfieto Conversation-mode commands.Documentation
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.