mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1386] [MERGED] Fix conditional prompt macro parity #5055
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#5055
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/1386
Author: @Xelvanis
Created: 5/27/2026
Status: ✅ Merged
Merged: 5/27/2026
Merged by: @Xelvanis
Base:
refactor← Head:fix/conditional-prompt-macros📝 Commits (3)
436527eFix conditional prompt macro parity066313aMerge origin/refactor into conditional macro fixe58da8aAddress conditional macro review findings📊 Changes
2 files changed (+384 additions, -4 deletions)
View changed files
📝
src/engine/shared/macros/macro-engine.test.ts(+132 -1)📝
src/engine/shared/macros/macro-engine.ts(+252 -3)📄 Description
Linked issue
Closes #1326
Why this change
{{#if ...}}...{{else}}...{{/if}}parity behavior.What changed
==,!=,=,is,is not,contains,includes, and negative contains/includes forms.timeZonein per-character macro contexts and making unset bare conditional identifiers evaluate falsy.Refactor impact
Primary owner:
src/engine/shared/macrosImpact areas reviewed:
Boundary notes:
Pressure points touched:
Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
Agent-run validation after addressing CodeRabbit comments:
pnpm vitest run src/engine/shared/macros/macro-engine.test.ts --pool threads --maxWorkers 1 --no-file-parallelismpassed: 1 file, 15 tests.pnpm vitest run src/engine/generation/prompt-assembly.test.ts --pool threads --maxWorkers 1 --no-file-parallelismpassed: 1 file, 13 tests.pnpm vitest run --pool threads --maxWorkers 1 --no-file-parallelismpassed: 21 files, 115 tests.pnpm typecheckpassed.pnpm check:architecturepassed.pnpm buildpassed. Vite emitted existing chunk/dynamic-import warnings, but exited successfully.git diff --checkpassed; Git reported CRLF normalization warnings only.Not run:
pnpm check, Rust checks, browser/Tauri manual QA, Playwright, and remote-runtime smoke. This patch is engine-only macro parsing with no Rust, UI, or remote-runtime boundary changes.Docs and release impact
No docs changes needed
Updated
README.mdUpdated
CONTRIBUTING.mdUpdated
docs/developer/Updated repo skills or
AGENTS.mdConfirmed this PR does not restore old staging/package-workspace/release claims
Active
refactorbranch has noCHANGELOG.md; no changelog entry was added.No developer docs change was made. The in-code supported macro catalog now lists conditional blocks.
UI evidence
N/A; engine-only macro parser behavior.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.