mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5023] [Issue]: Hide agent marker section when no output is produced #2777
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#2777
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 @SpicyMarinara on GitHub (Aug 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5023
Originally assigned to: @SpicyMarinara on GitHub.
Summary
When an agent does not run or produces no output, the {{agent::id}} marker resolves to nothing but surrounding additional instructions remain in the prompt. The entire agent marker section should be omitted or disabled when no agent output is available.
Expected behavior
If the agent does not trigger or produces no output, the marker and its surrounding additional instructions should not be appended to the prompt, or should be hideable through an explicit setting.
Actual behavior
The {{agent::id}} marker resolves to an empty value, but the additional instructions around it remain in the prompt as abandoned text.
Steps to reproduce
Environment
Logs, screenshots, or video
Screenshot attached: https://cdn.discordapp.com/attachments/1537825449504415894/1537825450020184165/Screenshot_20260814_155933_Samsung_Browser.jpg?ex=6a80730e&is=6a7f218e&hm=5ee2541b034912c6e81855040b850fd7c9ba6e34e90c871796ae1813d210b5f5
Additional context
The reporter tried using {{#if}} to hide the instructions, but agent macros appear to resolve later than the conditional expressions. The behavior may waste tokens or cause minor model confusion. A separate toggle beneath the initial 'Add as prompt section' toggle was suggested if omission is not the intended default behavior.
Discord thread: [FR] Hide Agent Output Marker Section if Agent produced no output/didn't run
Discord thread link: https://discord.com/channels/1417099416812392641/1537825449504415894
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (2 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: