Skip to content

v1.1.1 — Worker fix

Choose a tag to compare

@romizone romizone released this 26 Jul 03:34
· 10 commits to main since this release

Hotfix: clicking Run produced 'run() got multiple values for argument log'.

Root cause: the background Worker was injecting log/progress/is_cancelled as keyword arguments while BaseTool was also passing them positionally via _args, causing a duplicate-argument error.

Fix: simplified Worker to just call fn(*args, **kwargs) without auto-injection. BaseTool now wraps the user's run() in a closure that captures the log/progress/cancel hooks and passes them as explicit parameters to the wrapped function.

Affects: v1.1.0 only. v1.0 was unaffected (no background thread). v1.1.1 is fully backward compatible.

Workaround for v1.1.0 users: clone v1.0 or wait — this fix is already in main.