L/docs updates agent#387
Merged
Merged
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 345ce8f. Configure here.
_collect_from_package used importlib.import_module(directory.name) which
checks sys.modules first — if any previously imported module shares that
name (e.g. 'tasks'), the cached module is returned silently, yielding
wrong or zero tasks.
Replace with importlib.util.spec_from_file_location using a unique
synthetic name (_hud_collect_pkg_{name}) and clean up sys.modules
afterward, matching the pattern already used by _import_tasks_from_module.
Add tests verifying that a pre-cached sys.modules entry with the same
name does not cause a collision, and that the synthetic name is cleaned
up after import.
Co-authored-by: Jaideep Chawla <jdchawla29@gmail.com>
Co-authored-by: Jaideep Chawla <jdchawla29@gmail.com>
…ollision-36f3 Fix importlib module name collision in _collect_from_package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note
Medium Risk
Mostly documentation and example additions, but it also changes CLI task discovery to import packages via explicit module specs, which could affect
hud sync tasks/hud evalbehavior in some project layouts.Overview
Adds new Platform docs for Agents (QA workflows, automations, and chat agents/A2A) and a guide for exposing an MCP server as an A2A chat endpoint, plus updates navigation to surface these pages.
Introduces
examples/05_a2a_simple_client.py, a minimal streaming A2A client for interacting with HUD chat servers.Hardens CLI task collection in
hud/cli/utils/collect.pyby importing task packages via an explicitimportlibspec with a unique module name and cleaning upsys.modules, reducing name collisions/leaked modules during package-based task discovery.Reviewed by Cursor Bugbot for commit b88c123. Bugbot is set up for automated code reviews on this repo. Configure here.