mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7913] [Feature]: Professor Mari - @ references and a / command menu in her composer #4346
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#4346
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?
Originally created by @ylli-selmani on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7913
Originally assigned to: @ylli-selmani on GitHub.
What problem does this solve?
Professor Mari's composer can only suggest names. Tab accepts the spelling, and then she has to go and fetch the
thing herself, name-first, through her shell CLI:
Three round-trips, three chances to pick the wrong "Alice", for a decision the user already made in their head when
they picked the suggestion. The same dance happens for personas, lorebooks, lorebook entries, presets, connections,
skills and workspace files.
Two other gaps sit next to it: there is no
@(link something into this message) and no/(run a command or pull askill in), so nothing in the composer says what can be linked or done. The paperclip menu has three bare rows and no
descriptions.
Proposed solution
Three surfaces over one menu index — every row calls an existing handler or inserts a trigger, so behaviour has one
implementation:
@references. Type@(start of line or after whitespace) to open a picker grouped by kind: Characters,Personas, Lorebooks, Lorebook entries, Presets, Connections, Skills, Agent packages, Docs, Files.
@"quoted"forlabels with spaces. Tab and Enter accept, arrow keys move, Escape closes. An accepted reference is marked inline in
the draft (highlighted token) and recorded by id; on send, the server resolves each to the payload Mari would have
got from her own command, and injects it once, for that message, through the same renderer as the attached
context (budgeted, delimiters neutralized, framed as user-provided evidence rather than instructions). No
credentials are ever included — a
@connectionreference carries provider/model/base-URL host only./commands. Opens the same menu, filtered: common composer commands (/new,/history,/skills,/memories,/context,/permissions,/model,/approvals,/help) plus skills — built-in (from #7908)and user-created — and non-persistent memories, which can be pulled into this turn. Rows carry a chip showing
whether that skill or memory is disabled, with a subcommand to enable it.
Paperclip as the index. The existing attach control becomes a sectioned menu (Attach / Reference / Mari) with
a right-aligned one-liner per row, DSH-style. The Reference rows open the
@picker pre-scoped, so the menuteaches the trigger.
Payload rule: what the corresponding
maricommand returns, in full, with a high per-reference and total ceiling(
truncated at N chars — full content via mari characters get <id>when one is hit, never a silent digest).Alternatives considered
@is a path and the agent reads it on demand. Here thepath-equivalent Mari already has is a name, which is the ambiguous, expensive part — that is the bug, so the id
has to resolve server-side.
/roll,/emote,/selfie); wrongdomain for a workspace assistant.
@. It re-injects on every later turn, so references wouldaccumulate until the budget omitted everything.
store-backed string drafts; this breaks drafts, IME, paste and mobile focus behaviour.
Additional context
@skilland/skillnameshould land onlyafter that draft PR merges, since they touch the same files. Everything else (characters, personas, lorebooks,
entries, presets, connections, chats, docs, files, the
/actions and the menu restructure) is independent..tmp/mari-composer-references/.mentionedCharacterNamesfor@namementions(
ConversationInput.tsx); this brings the same idea to the workspace assistant, with ids instead of names.Template check
@ylli-selmani commented on GitHub (Oct 21, 2026):
i'm doing it