mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2502] [MERGED] Fix regen context and Secret Plot guidance #5622
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#5622
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/2502
Author: @Promansis
Created: 6/6/2026
Status: ✅ Merged
Merged: 6/6/2026
Merged by: @Promansis
Base:
refactor← Head:fix/context-secret-plot-regen📝 Commits (1)
c508059Fix regen context and Secret Plot guidance📊 Changes
6 files changed (+261 additions, -14 deletions)
View changed files
📝
src/engine/generation/agent-memory-runtime.ts(+41 -2)📝
src/engine/generation/agent-runner.ts(+32 -6)📝
src/engine/generation/generation-replay.ts(+34 -0)📝
src/engine/generation/start-generation.ts(+11 -6)➕
tests/unit/agent-memory-runtime.spec.ts(+105 -0)➕
tests/unit/generation-replay.spec.ts(+38 -0)📄 Description
Linked issue
Closes #2491
Closes #2492
Why this change
What changed
extra.contextInjectionsto regeneration input even when replay metadata is missing or the chat summary fingerprint no longer matches.agentInjectionOverrides, and filter Secret Plot Driver cached guidance out of generic context injection replay.Refactor impact
Primary owner:
Engine generation
Impact areas reviewed:
agentDatainsertion pathextra.contextInjectionsreuseBoundary notes:
src/engineand use existing storage/LLM capability ports.Pressure points touched:
Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
Durable test rationale:
Commands run:
git diff --checkpnpm exec vitest run tests/unit/generation-replay.spec.ts tests/unit/agent-memory-runtime.spec.tspnpm typecheckpnpm check:architecturepnpm checkFeature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.