mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #803] [MERGED] Fix custom agent prompt section names #4775
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#4775
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/803
Author: @cha1latte
Created: 5/13/2026
Status: ✅ Merged
Merged: 5/13/2026
Merged by: @cha1latte
Base:
main← Head:fix/issue-789-agent-prompt-tag📝 Commits (1)
04f6f15Fix custom agent prompt section names📊 Changes
10 files changed (+88 additions, -34 deletions)
View changed files
➕
docs/pr-evidence/issue-789/repro-output.json(+25 -0)📝
packages/client/src/components/agents/ContextInjectionPanel.tsx(+19 -13)📝
packages/client/src/components/chat/ChatArea.tsx(+1 -0)📝
packages/client/src/hooks/use-generate.ts(+1 -1)📝
packages/server/src/routes/generate.routes.ts(+27 -15)📝
packages/server/src/routes/generate/agent-normalizers.ts(+8 -2)📝
packages/server/src/routes/generate/retry-agents-route.ts(+2 -1)📝
packages/server/src/services/agents/agent-pipeline.ts(+3 -1)📝
packages/shared/src/schemas/chat.schema.ts(+1 -0)📝
packages/shared/src/types/chat.ts(+1 -1)📄 Description
Linked issue
Closes #789
Why this change
test-agentcan influence how seriously the model treats the injected section.What changed
agentTypeas the stable matching key.agentTypefor older cached injections.agentNamethrough cached injection normalization, retry-agent cache refresh, injection review overrides, and the cached injections panel label.docs/pr-evidence/issue-789/repro-output.json.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --filter @marinara-engine/server exec tsx ../../scratch/issue-789-repro.ts; the prompt wrapper used<custom-test-agent-a9e721ff-9ea8-4c8a-ba9d-5f3885fb30ba>.<probability_engine>for the renamed custom agent.{ agentType, text }.pnpm checksuccessfully after rebasing onto currentupstream/main.Docs and release impact
No user-facing docs or release metadata changes are needed. The committed file under
docs/pr-evidence/is PR proof only.UI evidence (if applicable)
N/A. This is prompt assembly / cached injection metadata behavior, not a visible UI rendering bug. Command-output proof is linked above.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.