[PR #8415] [MERGED] feat(mari): composer @ references and / commands #8588

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8415
Author: @ylli-selmani
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ylli-selmani

Base: staging ← Head: feat/mari-composer-references


📝 Commits (10+)

  • e27c7a1 feat(mari): resolve composer @ references on the server
  • c214966 feat(mari): composer @ and / trigger detection and key priority
  • 702c2ae feat(mari): mark @ tokens inline in the composer draft
  • 35ef7c3 Merge origin/staging into feat/mari-composer-references
  • a42fb33 feat(mari): @ reference picker, chips and send wiring
  • 6b5a31e feat(mari): slash commands and a sectioned paperclip menu
  • 69d0880 feat(mari): link chats, docs and agents with @
  • 44c5dbe docs(mari): the paperclip menu, @ links and / commands
  • 4e7dfb8 feat(mari): show avatars and artwork in the @ picker
  • 475a2e4 refactor(mari): rank the @ and / pickers with the omnibar's scorer

📊 Changes

36 files changed (+3450 additions, -95 deletions)

View changed files

📝 docs/home/professor-mari.md (+57 -2)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+1 -1)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+105 -4)
📝 packages/client/src/components/chat/MariAttachButton.tsx (+66 -30)
📝 packages/client/src/components/chat/mari/CompactMariMessage.tsx (+9 -3)
📝 packages/client/src/components/chat/mari/MariComposer.tsx (+158 -19)
➕ packages/client/src/components/chat/mari/MariReferencePicker.tsx (+189 -0)
📝 packages/client/src/components/chat/mari/MariReplyContent.tsx (+42 -1)
📝 packages/client/src/components/chat/mari/mari-chat-helpers.tsx (+32 -1)
📝 packages/client/src/components/chat/mari/use-mari-message-actions.ts (+9 -2)
📝 packages/client/src/components/chat/mari/use-mari-workspace-run.ts (+4 -1)
➕ packages/client/src/components/ui/InlineDraftOverlay.tsx (+82 -0)
➕ packages/client/src/hooks/use-mari-composer-references.ts (+338 -0)
➕ packages/client/src/hooks/use-mari-docs.ts (+13 -0)
📝 packages/client/src/lib/command-icons.ts (+4 -0)
➕ packages/client/src/lib/composer-triggers.ts (+184 -0)
📝 packages/client/src/lib/inline-completion.ts (+8 -2)
➕ packages/client/src/lib/mari-commands.ts (+121 -0)
➕ packages/client/src/lib/mari-composer-references.ts (+442 -0)
📝 packages/client/src/lib/mari-editor-fields.ts (+25 -2)

...and 16 more files

📄 Description

Important

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

Linked issue

Part of #7913. Everything the issue asks for except @connection, which is deferred to a follow-up: it waits on the accounts → connections rework, which will take longer than this PR.

Why this change

To work on "this character", you name it in prose to Professor Mari today. She spends a round looking it up and often guesses which "Alice" you meant. Her composer also has no way to run her own commands: new chat, history, skills, memories, model and permissions are scattered across header buttons and menus, and the paperclip is three bare rows.

This PR adds three things:

  • @ links an exact resource, by id, with what she would have read herself.
  • / lists her commands, plus the skills and memories you can link.
  • The paperclip becomes a sectioned menu over the same commands.

What changed

Server: references (new professor-mari/mari-composer-references.ts)

  • The prompt body takes references: {kind, id, label, parentId?}[], max 8, beside attachments.
  • Kinds: character, persona, lorebook, lorebook entry, preset, skill, memory, chat, agent, doc.
  • Reads: each reference is read the way her own call would read it, so payload and bounding match.
    • Most kinds use one allowlisted app_data read (character.get, lorebook.getEntry, agent.get, …).
    • A chat sends chat.get plus its newest 30 messages.
    • A doc is read by docs_read's reader for a whole file. No heading lookup is used, so the known heading-matcher bug never comes up.
    • Anything outside the allowlist is refused, never read.
  • Injection: the payloads go in a <linked_references> block between the handoff and continuity blocks. It is rendered by renderMariWorkspaceContextPrompt (delimiters neutralized, evidence preamble). That renderer gained optional tag / preamble options; its defaults are unchanged.
  • Budget: min(60k chars, maxContext) per message. That is about a quarter of the context at ~4 chars/token, and 60k when the connection has no limit. What doesn't fit drops to a line naming the read that gets it.
  • A failed read becomes a visible line ("not found; it may have been deleted"), never a silent drop. A read that throws is also logged.
  • A label over 200 characters is cut on the server, not a reason to refuse the message.
  • Sent once, then a ledger: references persist on the user message (saveRunStart). Later turns get one line per reference still in the history window, with its own re-read hint (app_data character.get X, app_data chat.messages X, docs_read docs/…).
  • Built-in skills: linking one doesn't inject it a second time. It counts as this turn's handbook read: it shows in <active_handbooks> and opens the gate with no skill.get round. handbookTurnFromResults gained a linkedReads argument for this.
  • New GET /professor-mari/workspace/docs lists the canonical docs (path + first heading) for the picker. It sits behind the same privileged() gate as /skills.

Client: triggers and keys (new lib/composer-triggers.ts, MariComposer.tsx)

  • activeToken(text, caret) finds the live @ / / token. Names with spaces need no quotes at the end of the draft. It is email-safe (me@mail.com is not a trigger), and / triggers only at the start of a line, never inside a path.
  • composerKeyAction decides who owns a key: the picker first, then the ghost, then Send.
  • Two deliberate behaviour changes:
    • Keys are ignored during IME composition; before, Enter could send mid-composition.
    • The ghost is hidden inside a live token.

Client: marked tokens (new InlineDraftOverlay)

  • Linked names are drawn as pills behind the textarea. They are background-only, so the caret never drifts. A link whose record is gone shows as unresolved.
  • InlineGhostText, shared with the omnibar, is untouched.

Client: the @ picker (new MariReferencePicker.tsx, hooks/use-mari-composer-references.ts, lib/mari-composer-references.ts)

  • Groups: Characters, Personas, Lorebooks, Presets, Skills, Memories, Chats, Agents, Docs. Each comes from the list the composer already loads, plus useChats, useAgentConfigs and the new docs route.
  • Search: rows rank with the omnibar's scorer (scoreText, exported as scoreOmnibarText with no change to the omnibar). That means exact, then prefix, then whole word, then substring, then typo or initials, with accents folded. Typo rows only show while nothing matches literally (filterOmnibarFuzzyFallback). / commands rank the same way over their aliases.
  • Rows:
    • Each row shows its record's avatar or artwork, badged with its kind, read with the omnibar's builders and drawn with ResultTypeIcon like her reply rows. A chat shows its characters' faces, badged with its mode. Kinds without an image keep their icon.
    • Skills show "Always on" (built-in) or "On" / "Off".
    • Only non-persistent memories are listed.
    • Docs show their path.
  • Keys: arrows move, Enter or Tab picks, Escape closes. On a lorebook, ArrowRight lists its entries.
  • In companion mode the first row, Open beside me, links the open editor's record. It shows the record's own name and avatar (not the "Editing X" context chip) and reads "Work on all of it".
  • Placeholder: the composer now reads "Ask Professor Mari… @ to link, / for commands", so the picker is found without the docs.
  • Fields while docked: beside the character editor, a › on Open beside me (or ArrowRight) lists that editor's fields, and typing after @ (@scen) lists matching ones directly.
    • Picking one switches the field she works on: it replaces the field chip, scrolls the editor to it, and leaves no @ text. It is the deliberate way to change field, since clicking around the page does not.
    • A ‹ on the first row goes back out (for touch). Deleting the @ also ends the drill, and drilling in starts from a bare @, so typing narrows the entries or fields inside it.
  • Onboarding is one field for the whole block. While it is her field, each message carries what character.onboarding.get returns (block, problems, sample persona) in an <editor_field> block, so she needs no read round.
  • Linking @character together with the built-in onboarding skill appends that character's character.onboarding.get to its payload.
  • Chips: a pick shows as a chip. Editing the token text drops the link, and so does the chip's ×.
  • A send that fails before it reaches the server gives the links back along with the text.
  • Sent messages: her chat paints each linked @Name in your bubble with the same pill as the composer, read from the message's saved references.
  • Ghost Tab: in prose, the first Tab completes a name and a second Tab links it, written as the record's own name (alice → @Alice). Inside a live @ token, a single Tab links. Chats, agents, docs, skills and memories are picks only, never ghost targets.

Client: / commands and the paperclip (new lib/mari-commands.ts, MariAttachButton.tsx)

  • Nine commands: /new /history /skills /memories /context /attach /model /permissions /approvals.
    • Each has aliases: /restart and /clear → new, /chats → history, /connection → model, …
    • /approvals is listed only while a review is pending.
  • A command pick deletes its /word and calls the handler that already exists in HomeProfessorMariChat. Skills and memories in the / list become @ links.
  • The paperclip is now a sectioned menu on the existing MariRow (the permissions menu's precedent):
    • Attach: its three old rows.
    • Reference: Link with @, which types @ at the caret and opens the picker.
    • Mari: the commands.
  • The / list and the paperclip read one command list.

Docs

  • docs/home/professor-mari.md: new sections for the paperclip menu, linking with @ (what each kind sends, sent once, cap and budget, links read as information) and commands with /. Chat history now names /new.

Validation

  • pnpm check passes locally
  • Container (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.md

Manual verification notes

Agent-run checks (filtered, not the full suite; CI runs the rest):

  • run-regressions --filter composer-references: both pass.
    • Server: payload equals the read for every kind; chat sends its header plus the newest 30; doc goes through its reader; ledger line per kind; budget; neutralized delimiters; built-in skill → handbook; unknown id → visible line; disallowed kind refused.
    • Client: ranking, groups, picks, pruning, double-Tab (including another case and a quoted label), / commands, the new groups, field rows, entries past the 30th by query.
    • Server, added: the Onboarding field's <editor_field> read; the onboarding skill pairing; a throwing doc read does not stop later links; a 250-character label is cut to 200.
  • tsc --noEmit on client and server: clean.
  • Prettier on every touched file: clean.
  • eslint on touched client files: 0 errors. The one warning (serverRun deps in HomeProfessorMariChat.tsx) was already there.
  • localization:check: passes.

Agent browser checks at 375px:

  • The paperclip menu and its sections.
  • Link with @ focuses the field and opens the picker.
  • /, /cha (Chat history first) and /hist + Enter, which opens Chats.
  • A skill picked from / becomes @Decisions with a pill.
  • @rven (a typo) finds and highlights Raven, and @fel lists both Fel personas.
  • @ rows show character and persona avatars and the preset's artwork, and rows without an image keep their icon.
  • A sent message with @Raven shows the pill in its bubble.
  • @age and @lore list Docs with their paths, and / leaves agents and docs out.
  • The test database had no chats, so the Chats group is covered by regressions only.

To verify by hand:

  • Manually verify in the browser that @ + a character name + Enter shows a pill and a chip, and that Mari's answer uses the card without calling character.get first.
  • Manually verify in the browser that the second message after a link carries only the ledger line. Ask "what did I link earlier?"
  • Manually verify in the browser that @ on a lorebook + ArrowRight lists its entries, and that an entry can be linked.
  • Manually verify in the browser that @ + a chat name links it, and that she can quote its recent messages.
  • Manually verify in the browser that editing a linked name's text removes its chip.
  • Manually verify in the browser, in companion mode beside a character editor, that Open beside me is the first row.
  • Manually verify in the browser, docked beside a character editor, that › lists the fields, ‹ goes back, and picking Onboarding gives her the block without a character.onboarding.get call.
  • Manually verify in the browser that each / command opens its panel or menu, and that /approvals appears only while a change is pending.
  • Manually verify in the browser that the paperclip menu fits on a phone in light and dark mode.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

docs/home/professor-mari.md is updated. Translations are tracked in #8425.

UI evidence (if applicable)

Screenshots at 375px (paperclip menu, @ picker with avatars, @ picker with Docs) to be attached.

Follow-ups

  • @connection: deferred until the accounts → connections rework lands, so its payload follows the new model (never credentials).

🤖 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-Engine/pull/8415 **Author:** [@ylli-selmani](https://github.com/ylli-selmani) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ylli-selmani](https://github.com/ylli-selmani) **Base:** `staging` ← **Head:** `feat/mari-composer-references` --- ### 📝 Commits (10+) - [`e27c7a1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e27c7a1a976c42883da4d776eef8b4f6e1d2f71c) feat(mari): resolve composer @ references on the server - [`c214966`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c214966eced57058b840976138725684e9ccb3fe) feat(mari): composer @ and / trigger detection and key priority - [`702c2ae`](https://github.com/Pasta-Devs/Marinara-Engine/commit/702c2ae3f494d48388319e35de70035e808220e6) feat(mari): mark @ tokens inline in the composer draft - [`35ef7c3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/35ef7c366bcbcf3066b880d07f6a51c06f4db85d) Merge origin/staging into feat/mari-composer-references - [`a42fb33`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a42fb3311392ba25a7aaad89c790a28aa74b7123) feat(mari): @ reference picker, chips and send wiring - [`6b5a31e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6b5a31e52bae841c418c7be333bb29b7e7e80999) feat(mari): slash commands and a sectioned paperclip menu - [`69d0880`](https://github.com/Pasta-Devs/Marinara-Engine/commit/69d08800bf07f48e89957ef7c8891b21fbaa2cb8) feat(mari): link chats, docs and agents with @ - [`44c5dbe`](https://github.com/Pasta-Devs/Marinara-Engine/commit/44c5dbe53b85b84006ff5597559c91da1d9c5a6e) docs(mari): the paperclip menu, @ links and / commands - [`4e7dfb8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4e7dfb8aedc92acab803229957d1585faef0697c) feat(mari): show avatars and artwork in the @ picker - [`475a2e4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/475a2e4530e7721b51ad963d7a980da6d54a0d7d) refactor(mari): rank the @ and / pickers with the omnibar's scorer ### 📊 Changes **36 files changed** (+3450 additions, -95 deletions) <details> <summary>View changed files</summary> 📝 `docs/home/professor-mari.md` (+57 -2) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+1 -1) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+105 -4) 📝 `packages/client/src/components/chat/MariAttachButton.tsx` (+66 -30) 📝 `packages/client/src/components/chat/mari/CompactMariMessage.tsx` (+9 -3) 📝 `packages/client/src/components/chat/mari/MariComposer.tsx` (+158 -19) ➕ `packages/client/src/components/chat/mari/MariReferencePicker.tsx` (+189 -0) 📝 `packages/client/src/components/chat/mari/MariReplyContent.tsx` (+42 -1) 📝 `packages/client/src/components/chat/mari/mari-chat-helpers.tsx` (+32 -1) 📝 `packages/client/src/components/chat/mari/use-mari-message-actions.ts` (+9 -2) 📝 `packages/client/src/components/chat/mari/use-mari-workspace-run.ts` (+4 -1) ➕ `packages/client/src/components/ui/InlineDraftOverlay.tsx` (+82 -0) ➕ `packages/client/src/hooks/use-mari-composer-references.ts` (+338 -0) ➕ `packages/client/src/hooks/use-mari-docs.ts` (+13 -0) 📝 `packages/client/src/lib/command-icons.ts` (+4 -0) ➕ `packages/client/src/lib/composer-triggers.ts` (+184 -0) 📝 `packages/client/src/lib/inline-completion.ts` (+8 -2) ➕ `packages/client/src/lib/mari-commands.ts` (+121 -0) ➕ `packages/client/src/lib/mari-composer-references.ts` (+442 -0) 📝 `packages/client/src/lib/mari-editor-fields.ts` (+25 -2) _...and 16 more files_ </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Part of #7913. Everything the issue asks for except `@connection`, which is deferred to a follow-up: it waits on the accounts → connections rework, which will take longer than this PR. ## Why this change To work on "this character", you name it in prose to Professor Mari today. She spends a round looking it up and often guesses which "Alice" you meant. Her composer also has no way to run her own commands: new chat, history, skills, memories, model and permissions are scattered across header buttons and menus, and the paperclip is three bare rows. This PR adds three things: - `@` links an exact resource, by id, with what she would have read herself. - `/` lists her commands, plus the skills and memories you can link. - The paperclip becomes a sectioned menu over the same commands. ## What changed **Server: references** (new `professor-mari/mari-composer-references.ts`) - The prompt body takes `references: {kind, id, label, parentId?}[]`, max 8, beside `attachments`. - **Kinds:** character, persona, lorebook, lorebook entry, preset, skill, memory, chat, agent, doc. - **Reads:** each reference is read the way her own call would read it, so payload and bounding match. - Most kinds use one allowlisted `app_data` read (`character.get`, `lorebook.getEntry`, `agent.get`, …). - A chat sends `chat.get` plus its newest 30 messages. - A doc is read by `docs_read`'s reader for a whole file. No heading lookup is used, so the known heading-matcher bug never comes up. - Anything outside the allowlist is refused, never read. - **Injection:** the payloads go in a `<linked_references>` block between the handoff and continuity blocks. It is rendered by `renderMariWorkspaceContextPrompt` (delimiters neutralized, evidence preamble). That renderer gained optional `tag` / `preamble` options; its defaults are unchanged. - **Budget:** `min(60k chars, maxContext)` per message. That is about a quarter of the context at ~4 chars/token, and 60k when the connection has no limit. What doesn't fit drops to a line naming the read that gets it. - A failed read becomes a visible line ("not found; it may have been deleted"), never a silent drop. A read that throws is also logged. - A label over 200 characters is cut on the server, not a reason to refuse the message. - **Sent once, then a ledger:** references persist on the user message (`saveRunStart`). Later turns get one line per reference still in the history window, with its own re-read hint (`app_data character.get X`, `app_data chat.messages X`, `docs_read docs/…`). - **Built-in skills:** linking one doesn't inject it a second time. It counts as this turn's handbook read: it shows in `<active_handbooks>` and opens the gate with no `skill.get` round. `handbookTurnFromResults` gained a `linkedReads` argument for this. - New `GET /professor-mari/workspace/docs` lists the canonical docs (path + first heading) for the picker. It sits behind the same `privileged()` gate as `/skills`. **Client: triggers and keys** (new `lib/composer-triggers.ts`, `MariComposer.tsx`) - `activeToken(text, caret)` finds the live `@` / `/` token. Names with spaces need no quotes at the end of the draft. It is email-safe (`me@mail.com` is not a trigger), and `/` triggers only at the start of a line, never inside a path. - `composerKeyAction` decides who owns a key: the picker first, then the ghost, then Send. - Two deliberate behaviour changes: - Keys are ignored during IME composition; before, Enter could send mid-composition. - The ghost is hidden inside a live token. **Client: marked tokens** (new `InlineDraftOverlay`) - Linked names are drawn as pills behind the textarea. They are background-only, so the caret never drifts. A link whose record is gone shows as unresolved. - `InlineGhostText`, shared with the omnibar, is untouched. **Client: the `@` picker** (new `MariReferencePicker.tsx`, `hooks/use-mari-composer-references.ts`, `lib/mari-composer-references.ts`) - **Groups:** Characters, Personas, Lorebooks, Presets, Skills, Memories, Chats, Agents, Docs. Each comes from the list the composer already loads, plus `useChats`, `useAgentConfigs` and the new docs route. - **Search:** rows rank with the omnibar's scorer (`scoreText`, exported as `scoreOmnibarText` with no change to the omnibar). That means exact, then prefix, then whole word, then substring, then typo or initials, with accents folded. Typo rows only show while nothing matches literally (`filterOmnibarFuzzyFallback`). `/` commands rank the same way over their aliases. - **Rows:** - Each row shows its record's avatar or artwork, badged with its kind, read with the omnibar's builders and drawn with `ResultTypeIcon` like her reply rows. A chat shows its characters' faces, badged with its mode. Kinds without an image keep their icon. - Skills show "Always on" (built-in) or "On" / "Off". - Only non-persistent memories are listed. - Docs show their path. - **Keys:** arrows move, Enter or Tab picks, Escape closes. On a lorebook, ArrowRight lists its entries. - In companion mode the first row, **Open beside me**, links the open editor's record. It shows the record's own name and avatar (not the "Editing X" context chip) and reads "Work on all of it". - **Placeholder:** the composer now reads "Ask Professor Mari… @ to link, / for commands", so the picker is found without the docs. - **Fields while docked:** beside the character editor, a › on **Open beside me** (or ArrowRight) lists that editor's fields, and typing after `@` (`@scen`) lists matching ones directly. - Picking one switches the field she works on: it replaces the field chip, scrolls the editor to it, and leaves no `@` text. It is the deliberate way to change field, since clicking around the page does not. - A ‹ on the first row goes back out (for touch). Deleting the `@` also ends the drill, and drilling in starts from a bare `@`, so typing narrows the entries or fields inside it. - **Onboarding** is one field for the whole block. While it is her field, each message carries what `character.onboarding.get` returns (block, problems, sample persona) in an `<editor_field>` block, so she needs no read round. - Linking `@character` together with the built-in onboarding skill appends that character's `character.onboarding.get` to its payload. - **Chips:** a pick shows as a chip. Editing the token text drops the link, and so does the chip's ×. - A send that fails before it reaches the server gives the links back along with the text. - **Sent messages:** her chat paints each linked `@Name` in your bubble with the same pill as the composer, read from the message's saved references. - **Ghost Tab:** in prose, the first Tab completes a name and a second Tab links it, written as the record's own name (`alice` → `@Alice`). Inside a live `@` token, a single Tab links. Chats, agents, docs, skills and memories are picks only, never ghost targets. **Client: `/` commands and the paperclip** (new `lib/mari-commands.ts`, `MariAttachButton.tsx`) - **Nine commands:** `/new` `/history` `/skills` `/memories` `/context` `/attach` `/model` `/permissions` `/approvals`. - Each has aliases: `/restart` and `/clear` → new, `/chats` → history, `/connection` → model, … - `/approvals` is listed only while a review is pending. - A command pick deletes its `/word` and calls the handler that already exists in `HomeProfessorMariChat`. Skills and memories in the `/` list become `@` links. - **The paperclip** is now a sectioned menu on the existing `MariRow` (the permissions menu's precedent): - **Attach:** its three old rows. - **Reference:** **Link with @**, which types `@` at the caret and opens the picker. - **Mari:** the commands. - The `/` list and the paperclip read one command list. **Docs** - `docs/home/professor-mari.md`: new sections for the paperclip menu, linking with `@` (what each kind sends, sent once, cap and budget, links read as information) and commands with `/`. Chat history now names `/new`. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (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.md` ### Manual verification notes **Agent-run checks** (filtered, not the full suite; CI runs the rest): - `run-regressions --filter composer-references`: both pass. - **Server:** payload equals the read for every kind; chat sends its header plus the newest 30; doc goes through its reader; ledger line per kind; budget; neutralized delimiters; built-in skill → handbook; unknown id → visible line; disallowed kind refused. - **Client:** ranking, groups, picks, pruning, double-Tab (including another case and a quoted label), `/` commands, the new groups, field rows, entries past the 30th by query. - **Server, added:** the Onboarding field's `<editor_field>` read; the onboarding skill pairing; a throwing doc read does not stop later links; a 250-character label is cut to 200. - `tsc --noEmit` on client and server: clean. - Prettier on every touched file: clean. - eslint on touched client files: 0 errors. The one warning (`serverRun` deps in `HomeProfessorMariChat.tsx`) was already there. - `localization:check`: passes. **Agent browser checks at 375px:** - The paperclip menu and its sections. - **Link with @** focuses the field and opens the picker. - `/`, `/cha` (Chat history first) and `/hist` + Enter, which opens Chats. - A skill picked from `/` becomes `@Decisions` with a pill. - `@rven` (a typo) finds and highlights Raven, and `@fel` lists both Fel personas. - `@` rows show character and persona avatars and the preset's artwork, and rows without an image keep their icon. - A sent message with `@Raven` shows the pill in its bubble. - `@age` and `@lore` list Docs with their paths, and `/` leaves agents and docs out. - The test database had no chats, so the Chats group is covered by regressions only. **To verify by hand:** - Manually verify in the browser that `@` + a character name + Enter shows a pill and a chip, and that Mari's answer uses the card without calling `character.get` first. - Manually verify in the browser that the second message after a link carries only the ledger line. Ask "what did I link earlier?" - Manually verify in the browser that `@` on a lorebook + ArrowRight lists its entries, and that an entry can be linked. - Manually verify in the browser that `@` + a chat name links it, and that she can quote its recent messages. - Manually verify in the browser that editing a linked name's text removes its chip. - Manually verify in the browser, in companion mode beside a character editor, that **Open beside me** is the first row. - Manually verify in the browser, docked beside a character editor, that › lists the fields, ‹ goes back, and picking **Onboarding** gives her the block without a `character.onboarding.get` call. - Manually verify in the browser that each `/` command opens its panel or menu, and that `/approvals` appears only while a change is pending. - Manually verify in the browser that the paperclip menu fits on a phone in light and dark mode. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) `docs/home/professor-mari.md` is updated. Translations are tracked in #8425. ## UI evidence (if applicable) Screenshots at 375px (paperclip menu, `@` picker with avatars, `@` picker with Docs) to be attached. ## Follow-ups - `@connection`: deferred until the accounts → connections rework lands, so its payload follows the new model (never credentials). 🤖 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:45:48 +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#8588
No description provided.