Skip to content

Fix/portretry check on login - #12

Merged
Ajimaru merged 2 commits into
devfrom
fix/portretry-check-on-login
Sep 23, 2026
Merged

Ajimaru merged 2 commits into
devfrom
fix/portretry-check-on-login

Conversation

@Ajimaru

@Ajimaru Ajimaru commented Sep 23, 2026

Copy link
Copy Markdown
Owner

This pull request updates the plugin to version 0.1.1 and changes when the port retry conflict check runs in the frontend JavaScript. Instead of running immediately when the page loads (which could cause API errors due to missing session or base URL), the check is now triggered after user login, ensuring proper API context and avoiding failed requests.

Version bump:

  • Bumped the plugin version in pyproject.toml from 0.1.0 to 0.1.1.

Frontend logic improvements:

  • Removed the immediate call to checkPortRetryConflict() at DOM-ready time from autoconnectplus.js, preventing API calls before the client is fully initialized.
  • Added a new onUserLoggedIn handler to the ViewModel in autoconnectplus.js that calls checkPortRetryConflict() after the user logs in, ensuring API requests are made with a valid session and base URL.

Ajimaru and others added 2 commits September 23, 2026 09:02
The check ran at DOM-ready, before OctoPrint's client had its base URL
set, so every page load requested /undefined/api/plugin/autoconnectplus
(404) and the conflict warning never showed. The API is login-protected
anyway, so run the check from the view model's onUserLoggedIn.

Also stop ignoring editor/assistant files in .gitignore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Ajimaru Ajimaru self-assigned this Sep 23, 2026
@Ajimaru Ajimaru added the bug Something isn't working label Sep 23, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@Ajimaru
Ajimaru merged commit bb951c4 into dev Sep 23, 2026
5 checks passed
@Ajimaru
Ajimaru deleted the fix/portretry-check-on-login branch September 23, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant