Files
Claude eeab6748ae Fix node failing to load, read client ID from config, harden uploads
- CLIENT_ID = YOUR_CLIENt_ID was not a string, so importing the node raised
  NameError and it never appeared in ComfyUI until the source was edited.
  The client ID is now read from onedrive_config.json next to the node or
  the ONEDRIVE_CLIENT_ID environment variable, and the MSAL app is created
  on first use, so a missing ID shows a clear message instead of a crash.
- Folder/file paths are URL-encoded; folder names containing '#', '%' or '?'
  previously uploaded to the wrong place or failed.
- Uploads have a timeout (they could hang the queue forever) and reuse one
  HTTP connection per batch.
- Token cache is loaded once instead of from disk on every run.
- File numbering uses an in-memory counter instead of creating an empty
  marker file in the temp folder for every image.
- Added requirements.txt (msal was never declared) and a .gitignore so the
  sign-in token and client ID are never committed.
- README: setup steps for the client ID; corrected the filename description.

Version 1.1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Lm4YDXhwj49hAA1RKS58Q
2026-10-22 12:00:22 +00:00

5 lines
27 B
Plaintext