Rewrite Noodle image prompts before review - #299
Conversation
📝 WalkthroughWalkthroughAdds ChangesNoodle image prompt processing
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant ImageService
participant rewriteNoodleImagePrompt
participant AgentTextConnection
participant IllustratorRuntime
ImageService->>rewriteNoodleImagePrompt: Send prompt, instructions, and character context
rewriteNoodleImagePrompt->>AgentTextConnection: Resolve agent text connection
rewriteNoodleImagePrompt->>IllustratorRuntime: Submit rewrite request
IllustratorRuntime-->>rewriteNoodleImagePrompt: Return JSON prompt
rewriteNoodleImagePrompt-->>ImageService: Return rewritten prompt or null
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/noodle/manifest.json`:
- Around line 66-72: Regenerate the downloadable ZIP artifact and rerun
archive/hash validation so server.mjs and client.js match the hashes recorded in
packages/noodle/manifest.json. Verify the rebuilt artifact is the one included
for release and that validation passes before merging.
In
`@packages/noodle/src/engine/packages/server/src/services/prompt-overrides/registry/noodle.ts`:
- Line 21: Update the prompt template description near rewriteNoodleImagePrompt
to state that the system attempts an agent-model rewrite when image instructions
exist, but appends normalized instructions directly when no agent connection is
available or rewriting fails.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: a371f8c0-f9ed-4604-bf6c-f6bf61543ce3
⛔ Files ignored due to path filters (2)
packages/noodle/client.jsis excluded by!packages/**/client.jspackages/noodle/server.mjsis excluded by!packages/**/server.mjs
📒 Files selected for processing (5)
packages/noodle/manifest.jsonpackages/noodle/src/engine/packages/server/src/services/noodle/noodle-image-prompt-rewrite.tspackages/noodle/src/engine/packages/server/src/services/noodle/noodle-noodler-images.service.tspackages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-images.service.tspackages/noodle/src/engine/packages/server/src/services/prompt-overrides/registry/noodle.ts
SpicyMarinara
left a comment
There was a problem hiding this comment.
Reviewed the current head after rebuilding the complete Noodle package family. Catalog, locale, archive, syntax, whitespace, and package-browser validation pass; both CodeRabbit findings are addressed.
Pull request
Important
Contributions target
staging. OnlySpicyMarinaramay promote this repository staging branch tomain.Outside and first-time contributors also require an approving review from
SpicyMarinara.Linked issue
Closes #300
Why this change
This complements Pasta-Devs/Marinara-Engine#4842.
What changed
noodle.Package and security impact
noodleValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-catalog.mjs, generated-bundle syntax checks, andgit diff --check.npm run test:browser:noodlecompleted with 20 passing tests and 12 project-specific skips.Documentation impact
UI evidence (if applicable)
No visual layout changes.