Fix import/console-tab bugs in a0 and add package run tests - #70
Merged
Merged
Conversation
- subagents.py hard-imported the optional claude_agent_sdk at module level, so importing a0.adapters crashed whenever the SDK was absent even though ClaudeAgentAdapter guards the same import. Make the import degrade gracefully with a stand-in AgentDefinition. - transcripts is a standalone page, not a metadata-driven console tab; its page-nav UI_META (path, no tab_id/sections) was aggregated by collect_ui_meta(), producing an unrenderable placeholder tab. Drop it from the console tab collection. - Fix stale import in test_aggregate_round_trips_through_cache_breakdown (cache_breakdown is a module function, not an attribute of a removed energy_registry instance). - Remove dead test_energy_registry_persistence.py: it targets an EnergyRegistry class / set_active_provider_persistent API that no longer exists (provider selection moved to the conduct slot). - Add tests/test_a0_package.py: imports every a0/ submodule, asserts the subagent registry loads without the optional SDK, and runs the a0.a0 CLI end-to-end. https://claude.ai/code/session_018fWZmwRbdzw3WAofM8bARB
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.
https://claude.ai/code/session_018fWZmwRbdzw3WAofM8bARB