mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8844] [MERGED] feat(media): custom headers and API-key auth for local ComfyUI/SwarmUI/A1111 requests #8839
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#8839
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/8844
Author: @bakatrouble
Created: 11/4/2026
Status: ✅ Merged
Merged: 11/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/comfyui-custom-headers📝 Commits (10+)
a57e92bfeat(media): custom headers and API-key auth for local ComfyUI/SwarmUI/A1111 requests355c6f9Merge branch 'staging' into feat/comfyui-custom-headersad8f6e8Merge upstream staging into feat/comfyui-custom-headersceb8aa4Merge fork branch (maintainer staging sync) into feat/comfyui-custom-headersfc0333cMerge pull request #8878 from Pasta-Devs/stagingeae4ec0Merge branch 'Pasta-Devs:main' into feat/comfyui-custom-headers60befa7fix(media): send API-key auth and custom headers on local-backend discovery6d0fbb7Merge fork branch (main sync) into feat/comfyui-custom-headersa7ac91dMerge branch 'staging' into feat/comfyui-custom-headers8bb5da5fix(media): resolve discovery headers without service inference📊 Changes
21 files changed (+816 additions, -82 deletions)
View changed files
📝
docs/media/comfyui.md(+13 -1)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+23 -0)📝
packages/server/src/routes/connections.routes.ts(+109 -25)📝
packages/server/src/routes/game.routes.ts(+3 -0)📝
packages/server/src/routes/sprites.routes.ts(+2 -0)📝
packages/server/src/services/capability-packages/capability-gallery-animation.service.ts(+1 -0)📝
packages/server/src/services/generation/media-connection-fallback.ts(+1 -0)📝
packages/server/src/services/image/image-generation.ts(+121 -35)📝
packages/server/src/services/video/chat-video-generation.ts(+1 -0)📝
packages/server/src/services/video/game-video-runtime.ts(+3 -0)📝
packages/server/src/services/video/video-generation.ts(+64 -21)📝
packages/shared/src/constants/image-generation-defaults.ts(+4 -0)📝
packages/shared/src/constants/video-generation-defaults.ts(+3 -0)📝
packages/shared/src/schemas/prompt.schema.ts(+10 -0)📝
packages/shared/src/types/generation-integration.ts(+7 -0)📝
packages/shared/src/types/image-generation-defaults.ts(+5 -0)📝
packages/shared/src/types/video-generation-defaults.ts(+5 -0)📝
scripts/regressions/capability-gallery-animation.regression.ts(+2 -0)➕
scripts/regressions/local-backend-discovery-headers.regression.ts(+168 -0)➕
scripts/regressions/local-comfyui-headers.regression.ts(+136 -0)...and 1 more files
📄 Description
Linked issue
Closes #8853.
cc @SpicyMarinara — assigning the PR failed (this account lacks permission), mentioning instead per the repo agent rules.
Why this change
What changed
Authorizationheader: a bare token goes asBearer, a value that already carries a scheme (such asBasic ...) is sent as-is. Previously the key was accepted by the editor but never sent to these backends.docs/media/comfyui.mdgains a "Use an authenticated proxy" section and a 401/403 troubleshooting row.docs-i18npacks are not yet updated (see below).scripts/regressions/local-comfyui-headers.regression.tsproves reserved header names are dropped while valid headers andBearerauth land on reference upload, queue, history, and download requests.Unexpected token '<', "<!DOCTYPE "...). ComfyUIobject_infoanswers that are not JSON now read as missing metadata instead of throwing a SyntaxError.scripts/regressions/local-backend-discovery-headers.regression.tsproves the discovery path against stub backends, including the 401 and HTML-login-page cases.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run (all green, unattended):
pnpm check— exit 0 (impeccable, localization, prettier, lint, typechecks, full build)node ./scripts/run-regressions.mjs --filter local-comfyui-headers— 1/1 passednode ./scripts/run-regressions.mjs --filter swarmui— 3/3 passednode ./scripts/run-regressions.mjs --filter image-custom-parameters— 1/1 passednode ./scripts/run-regressions.mjs --filter image-generation-timeout— 1/1 passedpnpm smoke:ui— 7/7 passed (desktop Chromium)Manual verification notes
Authorizationheader.Unexpected token '<', "<!DOCTYPE "....Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Notes:
docs/media/comfyui.mdis updated in this PR. Thedocs-i18npacks are not — a[docs-i18n] docs/media/comfyui.mdfollow-up issue still needs opening (or translation before merge). NoCHANGELOG.mdedits (release PRs only). No version bump.UI evidence (if applicable)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.