Fix private attribute access, zip length validation, test isolation, and monkeypatch module path#128
Draft
Fix private attribute access, zip length validation, test isolation, and monkeypatch module path#128
Conversation
…olation, and module path issues Co-authored-by: Zochory <60674042+Zochory@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix direct access to private attribute _max_depth
Fix private attribute access, zip length validation, test isolation, and monkeypatch module path
Mar 18, 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.
Seven targeted code-quality fixes across encapsulation violations, silent failure modes, and test hygiene issues.
Encapsulation (
streaming_context.py)agent._max_depthandagent._current_effective_max_itersaccesses withgetattrchains that prefer public properties and fall back to private attributes gracefully.Silent mismatch (
runner_callbacks.py)zip(strict=False)with an explicit pre-check that raises a descriptiveValueErrorwhenrun_semantic_tasks_batchedreturns a different number of results than inputs.Test fixes (
test_daytona_rlm_smoke.py)counter→state_valuein_FakeSessionto distinguish it clearly fromexecute_calls.monkeypatch.setattrtarget from the stalefleet_rlm.daytona_rlm.smokepath to the correctfleet_rlm.infrastructure.providers.daytona.smoke.DaytonaSandboxRuntime.Test isolation (
test_ws_chat_helpers.py)from tests.ui.fixtures_ui import ts; replace with a localtsidentity helper to eliminate the unit↔UI fixture dependency._noop_persistclarifying its role.Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.