mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3762] [Feature]: Agent track bar #2027
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#2027
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 @HackZers7 on GitHub (Jul 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3762
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
During generation the user sees only a generic "thinking…" indicator with no
visibility into what the agent pipeline is actually doing. When a preset
configures multiple agents (pre-generation, parallel batch, post-processing,
auto-translation), there is no way to tell:
This is especially painful on heavy presets where a shared-call batch can take
several seconds: the user cannot distinguish "everything is working, just slow"
from "one agent failed and is dragging the rest of the pipeline". The result is
ambiguous loading states and support questions about "stuck" generations that
are actually healthy.
Proposed solution
Add a live agent track bar rendered above the chat input that visualises the
agent lifecycle in real time, driven by actual agent execution events rather
than the pre-flight plan:
queued/running/completed/failed), ordered left-to-right by phase(pre-gen → parallel → main response → post-processing → translation).
"batch" capsule with a
batch ×Nbadge, so the user can see at a glancewhich agents ride the same HTTP call.
runningonly when the LLM request actually goes out — notwhen the queue is planned — so the bar reflects real execution, not intent.
completed/total agentscounter and auto-hides ~5s afterall agents settle.
agent_queue/agent_start/agent_completedSSE events;batches are pre-grouped (
planAgentBatches) so clusters render the momentthe queue arrives instead of re-clustering on each
agent_start.Alternatives considered
Additional context
Implemented in commit
f55eb330(feat(agents): add agent track bar with live batch progress), available on branchchat-agent-process.Touches:
packages/client/src/components/agents/AgentTrackBar.tsxpackages/client/src/components/agents/agent-track-animations.tsxpackages/client/src/stores/agent.store.tspackages/client/src/hooks/use-generate.tspackages/server/src/routes/generate.routes.tspackages/server/src/routes/generate/retry-agents-route.tspackages/server/src/services/agents/agent-pipeline.tspackages/server/src/services/agents/agent-executor.tsManual verification needed: visibility on mobile, light/dark theme contrast of
the four status colours, behaviour when an entire batch fails, behaviour on
retry (
retry-agents-route), and auto-hide timing when translation is disabled.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@HackZers7 commented on GitHub (Jul 17, 2026):
Now a bit off-topic: the code committed to the repository is fully AI-generated. I did not review it or check what exactly the AI wrote — I only verified that the feature works. If you're willing to accept the commit with these caveats, I'll open a draft PR, after which I'll do a proper code review, fix any issues I find, and test what I'm able to.
@SpicyMarinara commented on GitHub (Jul 18, 2026):
Hey pookie, first, thank you for your work and the idea! Allow me to explain where what is.
I hope that cleared up some things. :)
@HackZers7 commented on GitHub (Jul 18, 2026):
I reviewed the activity menu you pointed out, but it does not provide the same information as this feature. It does not show which agents are active when generation starts, how many agents are scheduled to run in total, or how many are still waiting to finish. Based on my observations, the activity menu also appears to report only tracker-agent activity, rather than the full agent pipeline.
Moving this feature into an extension would significantly reduce its functionality. The current extension API does not expose the agent lifecycle events needed to implement it properly, such as when an agent is queued, when its request actually starts, and when it completes or fails. Extensions also cannot access the internal batch-planning logic used to determine which agents share the same LLM request.
I should also clarify that, in my observations, enabling Debug mode does not surface much beyond the Injections tab.
@SpicyMarinara commented on GitHub (Jul 18, 2026):
Pookie, like I said, only the added agents are active. You can check which ones will trigger by going into Chat Settings -> Agents and seeing which ones are enabled. If any agents are still working, the send message button is being displayed as a loading circle. All agents that have already completed their request are visible in the aforementioned menu, so you can easily tell which ones haven't finished their job yet. Agents are also split into pre-generation/parallel/post-processing pipelines, so if you received a response, that means all the pre-generation and parallel agents have already worked and now it's time for the post-processing ones to kick in. I also checked and the debug mode is still working as intended on my end, maybe your browser is not showing it correctly? I'm on Firefox.