[PR #584] [MERGED] Add persona-specific saved status options #4682

Closed
opened 2026-10-22 04:09:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/584
Author: @cha1latte
Created: 5/9/2026
Status: ✅ Merged
Merged: 5/9/2026
Merged by: @cha1latte

Base: main ← Head: feat/issue-489-persona-status-options


📝 Commits (2)

  • a3f2679 Add persona saved status options
  • d11892d Add persona status options PR evidence

📊 Changes

9 files changed (+288 additions, -1 deletions)

View changed files

➕ docs/pr-evidence/issue-489/persona-status-options-menu.png (+0 -0)
📝 packages/client/src/components/chat/ConversationInput.tsx (+216 -1)
📝 packages/client/src/hooks/use-characters.ts (+2 -0)
📝 packages/server/src/db/migrate.ts (+6 -0)
📝 packages/server/src/db/schema/characters.ts (+2 -0)
📝 packages/server/src/routes/characters.routes.ts (+1 -0)
📝 packages/server/src/services/storage/characters.storage.ts (+5 -0)
📝 packages/server/test/db-migrations.test.ts (+54 -0)
📝 packages/shared/src/types/persona.ts (+2 -0)

📄 Description

Linked issue

Closes #489

Why this change

Users who regularly set Conversation activity text currently need to retype common statuses. This adds reusable saved status options scoped to the active persona, so different personas can keep their own status presets.

What changed

  • Added saved_status_options to personas with startup migration coverage.
  • Threaded saved status options through persona storage, routes, client hooks, and shared persona types.
  • Added a Conversation input bookmark menu to save the current activity text, apply a saved option, and delete saved options for the active chat persona.
  • Added reviewer-visible UI evidence for the saved-status menu.

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

  • Codex ran pnpm check from clean worktree C:\tmp\Marinara-Engine-issue-489: passed.
  • Codex ran focused migration coverage with pnpm --dir packages/server exec tsx --test test/db-migrations.test.ts: passed.
  • Codex ran a clean-branch browser verification script against local dev server:
    • created a temporary persona and conversation chat
    • verified the saved-status menu empty state
    • saved guarding the moonlit shrine
    • confirmed the value persisted through /api/characters/personas/:id
    • cleared and reapplied the saved status into the Custom activity field
    • deleted the saved status and confirmed the persona field returned to []
    • deleted the temporary chat and persona
  • Codex ran pnpm --filter @marinara-engine/server test; after sandbox escalation, the new migration test passed, but the full suite still failed on unrelated current-upstream tests in claude-subscription-provider.test.ts and lorebook-keeper-utils.test.ts.
  • db:push was not available in this branch because no db:push script or drizzle-kit executable is declared. Schema verification is covered here by the startup migration test.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Saved persona statuses menu

Summary by CodeRabbit

Release Notes

  • New Features

    • Added saved persona statuses feature: users can now save current activities as status options, apply previously saved statuses to the composer, and delete unwanted status entries.
  • Tests

    • Added database migration tests to ensure saved persona status options are properly persisted for existing installations.

Review Change Stack


🔄 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/584 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/9/2026 **Status:** ✅ Merged **Merged:** 5/9/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `feat/issue-489-persona-status-options` --- ### 📝 Commits (2) - [`a3f2679`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3f26790593087488e25256f2342c531343763df) Add persona saved status options - [`d11892d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d11892d67a13ed8954867a941b9fb9563b2755f5) Add persona status options PR evidence ### 📊 Changes **9 files changed** (+288 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-489/persona-status-options-menu.png` (+0 -0) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+216 -1) 📝 `packages/client/src/hooks/use-characters.ts` (+2 -0) 📝 `packages/server/src/db/migrate.ts` (+6 -0) 📝 `packages/server/src/db/schema/characters.ts` (+2 -0) 📝 `packages/server/src/routes/characters.routes.ts` (+1 -0) 📝 `packages/server/src/services/storage/characters.storage.ts` (+5 -0) 📝 `packages/server/test/db-migrations.test.ts` (+54 -0) 📝 `packages/shared/src/types/persona.ts` (+2 -0) </details> ### 📄 Description ## Linked issue Closes #489 ## Why this change Users who regularly set Conversation activity text currently need to retype common statuses. This adds reusable saved status options scoped to the active persona, so different personas can keep their own status presets. ## What changed - Added `saved_status_options` to personas with startup migration coverage. - Threaded saved status options through persona storage, routes, client hooks, and shared persona types. - Added a Conversation input bookmark menu to save the current activity text, apply a saved option, and delete saved options for the active chat persona. - Added reviewer-visible UI evidence for the saved-status menu. ## 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 - Codex ran `pnpm check` from clean worktree `C:\tmp\Marinara-Engine-issue-489`: passed. - Codex ran focused migration coverage with `pnpm --dir packages/server exec tsx --test test/db-migrations.test.ts`: passed. - Codex ran a clean-branch browser verification script against local dev server: - created a temporary persona and conversation chat - verified the saved-status menu empty state - saved `guarding the moonlit shrine` - confirmed the value persisted through `/api/characters/personas/:id` - cleared and reapplied the saved status into the Custom activity field - deleted the saved status and confirmed the persona field returned to `[]` - deleted the temporary chat and persona - Codex ran `pnpm --filter @marinara-engine/server test`; after sandbox escalation, the new migration test passed, but the full suite still failed on unrelated current-upstream tests in `claude-subscription-provider.test.ts` and `lorebook-keeper-utils.test.ts`. - `db:push` was not available in this branch because no `db:push` script or `drizzle-kit` executable is declared. Schema verification is covered here by the startup migration test. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) ![Saved persona statuses menu](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/d11892d67a13ed8954867a941b9fb9563b2755f5/docs/pr-evidence/issue-489/persona-status-options-menu.png) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added saved persona statuses feature: users can now save current activities as status options, apply previously saved statuses to the composer, and delete unwanted status entries. * **Tests** * Added database migration tests to ensure saved persona status options are properly persisted for existing installations. [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/584) <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:09:47 +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#4682
No description provided.