mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4895] [MERGED] fix(agents): align manual retry resolution #6530
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#6530
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/4895
Author: @Xelvanis
Created: 8/11/2026
Status: ✅ Merged
Merged: 8/11/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/manual-agent-retry-resolution📝 Commits (5)
8a5e073fix(agents): align manual retry resolutionf923a9dfix(agents): address manual retry review feedback58adf32fix(agents): disable Spotify tools for music-off retriesb47c3c2Merge branch 'staging' into fix/manual-agent-retry-resolutiona0efa51Merge branch 'staging' into fix/manual-agent-retry-resolution📊 Changes
7 files changed (+1209 additions, -760 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
package.json(+2 -1)📝
packages/server/src/routes/generate/retry-agents-route.ts(+218 -637)📝
packages/server/src/services/generation/agent-resolution.ts(+62 -67)📝
packages/server/src/services/generation/spotify-agent-runtime.ts(+2 -0)📝
packages/server/src/services/generation/tool-resolution-runtime.ts(+100 -55)➕
scripts/regressions/manual-agent-retry-resolution.regression.ts(+824 -0)📄 Description
Linked issue
Closes #4894
Why this change
Manual Agent retries used retry-specific copies of settings and tool-resolution policy. That let retries drift from the original generation: current defaults, stored overrides, retired tools, Music-source overlays, context size, custom tools, and permitted built-in tool composition could resolve differently.
What changed
regression:manual-agent-retry, a provider-free regression covering settings parity, positive and denied tool paths, schema/collision rules, retry context identity, and exact Spotify playback ordering.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run focused checks on the published commit:
pnpm regression:manual-agent-retrypnpm regression:agent-runtimepnpm regression:expression-toolspnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.tspnpm checkgit diff --check origin/staging...HEADAll completed successfully. Expected negative-fixture warnings and the repository's existing client circular-chunk/bundle-size warnings appeared.
Manual verification notes
An agent-assisted click-through used a disposable headed Edge session with isolated app data. It seeded a conversation chat with an active custom Agent and an exact-PID-owned loopback OpenAI-compatible connection, then opened Chat Settings → Agents and clicked Re-run Browser Retry Proof on the last message.
The browser sent
POST /api/generate/retry-agentswithx-marinara-csrf: 1and received200 text/event-stream. The fake provider receivedroll_dicein the Agent-only tool list; after requesting it, the second provider round contained Marinara's executed dice result. The server persisted a successfulcontext_injectionrun containingBrowser retry completed after roll_dice.Zero browser console errors and no failed non-static local requests were observed; two expected warnings identified the disposable default Agent connection.This is custom-Agent end-to-end integration proof, not the built-in stale-default differential oracle. No external provider/network, live Spotify, container, mobile/theme, or browser error-state test was performed.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedCHANGELOG.mdis updated. No user documentation, localization, dependency, or version change is required.UI evidence (if applicable)
Not applicable: this is a server resolution/runtime change with provider-free regression evidence and no UI changes.
Risk and scope notes
Summary by CodeRabbit
Bug Fixes
Tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.