mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4265] [MERGED] feat: expose chat branch lineage to agents #6309
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#6309
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/4265
Author: @Promansis
Created: 7/29/2026
Status: ✅ Merged
Merged: 7/29/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/capability-chat-branch-lineage📝 Commits (4)
72bc073feat: expose chat branch lineage to agents960d3b7fix: preserve immediate branch lineage8a49526Merge branch 'staging' into feat/capability-chat-branch-lineage7dd789fMerge branch 'staging' into feat/capability-chat-branch-lineage📊 Changes
12 files changed (+260 additions, -12 deletions)
View changed files
📝
docs/chats/branches.md(+4 -0)📝
docs/development/optional-agent-packages.md(+21 -0)📝
package.json(+1 -1)📝
packages/server/src/routes/backup.routes.ts(+16 -0)📝
packages/server/src/routes/chats.routes.ts(+12 -5)📝
packages/server/src/services/capability-packages/capability-persistence.service.ts(+43 -0)📝
packages/server/src/services/import/st-chat.importer.ts(+3 -0)📝
packages/shared/src/schemas/capability-package.schema.ts(+1 -1)📝
packages/shared/src/types/capability-runtime.ts(+6 -0)📝
packages/shared/src/types/chat.ts(+8 -0)📝
scripts/regressions/capability-package-lifecycle.regression.ts(+5 -5)➕
scripts/regressions/chat-branch-lineage.regression.ts(+140 -0)📄 Description
Linked issue
Closes #4264
Why this change
Capability agents can read chat records but cannot reliably identify branch lineage or the message boundary where a branch was created. This blocks lineage-aware agent workflows and would otherwise force packages to depend on Engine-specific storage metadata.
What changed
CapabilityChatRecord.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Not applicable; this change has no UI surface.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.