[PR #7577] [MERGED] Name the missing argument in Professor Mari's app-data errors #7808

Closed
opened 2026-10-24 04:07:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7577
Author: @Gunterlie
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/mari-required-arg-hint


📝 Commits (2)

  • 90961c7 Name the missing argument in Professor Mari's app-data errors
  • f5cb6d9 Merge branch 'staging' into fix/mari-required-arg-hint

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 packages/server/src/services/mari-db/mari-db.service.ts (+5 -1)

📄 Description

Linked issue

No linked issue. One should be opened if the maintainers want one for this small fix.

Why this change

  • A GLM model called app_data character.get without an id. The reply was only character id is required. The model sent the same call three times, and the repeated-failure guard stopped the run.
  • The error did not say which argument to pass or how to find the value, so a weaker model had nothing to correct.

What changed

  • requiredString in mari-db.service.ts now names the accepted argument keys, for example character id is required: pass it as "id" or "characterId"; if you do not know it, use the matching list or search action first. The list/search hint is added for id arguments only.
  • This one helper serves all 72 required-argument checks of Professor Mari's app-data actions and the mari CLI. The text still starts with <label> is required.

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

Not done by a person. To verify by hand:

  • Manually verify with a weaker model (for example GLM): ask Professor Mari to read a character by name and check that she finds the id and does not repeat a failed call.

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)

No docs change.

UI evidence (if applicable)

No UI change.

Proof

  • Server typecheck and Prettier passed. professor-mari regressions passed (16/16). Full pnpm check was not run locally; CI runs it.
  • No dedicated regression: the change is one error string. No test pins the old text.
  • Not proven: that GLM corrects the call with the new text. The production log does not hold the raw model output, so the cause of the missing id on the model side is not known.

Summary by CodeRabbit

  • Bug Fixes
    • Improved error messages shown when a required value is missing. Messages identify the accepted argument keys, and when an ID is missing, advise using the corresponding list or search action first. This clarifies which input is expected and how to locate the required ID.

🔄 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/7577 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/13/2026 **Status:** ✅ Merged **Merged:** 10/13/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/mari-required-arg-hint` --- ### 📝 Commits (2) - [`90961c7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/90961c7c53f2646283d87d891ed1f51b907dde50) Name the missing argument in Professor Mari's app-data errors - [`f5cb6d9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f5cb6d9c640293942d688974a738b79cc0c1c570) Merge branch 'staging' into fix/mari-required-arg-hint ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+5 -1) </details> ### 📄 Description ## Linked issue No linked issue. One should be opened if the maintainers want one for this small fix. ## Why this change - A GLM model called `app_data character.get` without an id. The reply was only `character id is required`. The model sent the same call three times, and the repeated-failure guard stopped the run. - The error did not say which argument to pass or how to find the value, so a weaker model had nothing to correct. ## What changed - `requiredString` in `mari-db.service.ts` now names the accepted argument keys, for example `character id is required: pass it as "id" or "characterId"; if you do not know it, use the matching list or search action first`. The list/search hint is added for id arguments only. - This one helper serves all 72 required-argument checks of Professor Mari's app-data actions and the `mari` CLI. The text still starts with `<label> is required`. ## 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 Not done by a person. To verify by hand: - Manually verify with a weaker model (for example GLM): ask Professor Mari to read a character by name and check that she finds the id and does not repeat a failed call. ## 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) No docs change. ## UI evidence (if applicable) No UI change. ## Proof - Server typecheck and Prettier passed. `professor-mari` regressions passed (16/16). Full `pnpm check` was not run locally; CI runs it. - No dedicated regression: the change is one error string. No test pins the old text. - Not proven: that GLM corrects the call with the new text. The production log does not hold the raw model output, so the cause of the missing id on the model side is not known. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved error messages shown when a required value is missing. Messages identify the accepted argument keys, and when an ID is missing, advise using the corresponding list or search action first. This clarifies which input is expected and how to locate the required ID. <!-- 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-24 04:07:40 +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#7808
No description provided.