Repository navigation
fix: resolve test suite failures (Epic #342) - #343
Merged
Merged
Conversation
Fixes: - #335: Add billing_error detection in Claude Code execution - #336: Surface credit balance errors with helpful message - #337: Add credentials_imported/injected fields to deploy-local response - #338: Update at-capacity test for BACKLOG-001 queuing behavior - #339: Fix created_agent fixture usage (dict → dict["name"]) - #340: Add injection_result to subscription response; skip invalid tokens in auto-assign - #341: Fix relative path in slack_watchdog test using __file__ Smoke tests: 677 passed, 22 skipped, 0 failed Co-Authored-By: Claude Opus 4.5 <[email protected]>
This was referenced Apr 15, 2026
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.
Summary
Fixes 7 distinct test failures identified in Epic #342. All tests now pass.
Changes
UnboundLocalError: execution_idin agent containerbilling_errordetection in_diagnose_exit_failure()credentials_importedandcredentials_injectedto responsestatus: "queued"per BACKLOG-001created_agent["name"]instead of dict directlyinjection_resultfield; fixed auto-assign to skip invalid tokens__file__-based pathFiles Modified
docker/base-image/agent_server/services/claude_code.py- billing_error handlingsrc/backend/db/subscriptions.py- Skip subscriptions with invalid/legacy tokenssrc/backend/models.py- Added credential fields to deploy-local modelssrc/backend/routers/subscriptions.py- Addedinjection_resultto responsesrc/backend/services/agent_service/deploy.py- Credential injection supporttests/test_notifications.py- Fixedcreated_agentfixture usagetests/test_parallel_task.py- Updated at-capacity test expectationstests/unit/test_slack_watchdog.py- Fixed relative pathTest Plan
test_notifications.py::TestAgentNotifications(4 tests) - PASStest_subscriptions.py::TestCredentialInjection::test_injection_on_assignment- PASStest_subscriptions.py::TestSubscriptionAutoAssign::test_round_robin_distribution- PASStest_parallel_task.py::test_async_mode_at_capacity_queues_task- PASSunit/test_slack_watchdog.py(28 tests) - PASSCloses #342, #335, #336, #337, #338, #339, #340, #341
🤖 Generated with Claude Code