Skip to content

Comments

Fix node loading hang when invoke URL ends with /app#67

Merged
lstein merged 2 commits intofeature/multiuserfrom
copilot/fix-node-loading-hang
Feb 20, 2026
Merged

Fix node loading hang when invoke URL ends with /app#67
lstein merged 2 commits intofeature/multiuserfrom
copilot/fix-node-loading-hang

Conversation

Copy link

Copilot AI commented Feb 20, 2026

Summary

When navigating to the Workflow Editor with a URL like http://localhost:9090/app, the OpenAPI schema fetch was constructed using window.location.href, producing http://localhost:9090/app/openapi.json — a path that doesn't exist. The request hung silently, preventing node templates from ever loading.

Fix: Replace window.location.href.replace(/\/$/, '') with window.location.origin so the schema is always fetched from the server root regardless of the current URL path.

// Before — breaks when URL path is non-root (e.g. /app)
query: () => `${window.location.href.replace(/\/$/, '')}/openapi.json`,

// After — always resolves to http(s)://host:port/openapi.json
query: () => `${window.location.origin}/openapi.json`,

Related Issues / Discussions

QA Instructions

  1. Start InvokeAI and navigate directly to http://localhost:9090/app
  2. Open the Workflow Editor — nodes should load without hanging

Merge Plan

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)
Original prompt

This section details on the original issue you should resolve

<issue_title>[bug]: Node loading hangs when invoke URL ends with /app</issue_title>
<issue_description>### Is there an existing issue for this problem?

  • I have searched the existing issues

Install method

Invoke's Launcher

Operating system

Linux

GPU vendor

Nvidia (CUDA)

GPU model

No response

GPU VRAM

No response

Version number

feature/multiuser branch

Browser

No response

System Information

No response

What happened

In multiuser mode, I logged in and went to the Workflow Editor tab. A message came up saying Loading nodes... and then hung. The workflow editor UI did not appear and I was unable to load, edit, or run workflows.

This only happens after login when the URL is http://localhost:9090/app. If I manually change the URL to http://localhost:9090/ the nodes load and the workflow editor works as expected.

What you expected to happen

I expect nodes to load correctly without my having to change the URL.

How to reproduce the problem

No response

Additional context

No response

Discord username

No response</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: lstein <111189+lstein@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix node loading hang issue in multiuser mode Fix node loading hang when invoke URL ends with /app Feb 20, 2026
Copilot AI requested a review from lstein February 20, 2026 05:10
Copy link
Owner

@lstein lstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works as advertised

@lstein lstein marked this pull request as ready for review February 20, 2026 05:13
@lstein lstein merged commit 47586fe into feature/multiuser Feb 20, 2026
19 of 25 checks passed
@lstein lstein deleted the copilot/fix-node-loading-hang branch February 20, 2026 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants