Skip to content

fix: propagate depth and persistent parameters in DaytonaREPL#71

Merged
alexzhang13 merged 1 commit intoalexzhang13:mainfrom
rovle:fix/daytona-depth-propagation
Jan 26, 2026
Merged

fix: propagate depth and persistent parameters in DaytonaREPL#71
alexzhang13 merged 1 commit intoalexzhang13:mainfrom
rovle:fix/daytona-depth-propagation

Conversation

@rovle
Copy link
Contributor

@rovle rovle commented Jan 25, 2026

DaytonaREPL was not propagating depth and persistent parameters.

The missing depth propagation meant LLM sub-calls from Daytona sandboxes always arrived at LMHandler with depth=0, so other_backends routing for recursive sub-calls didn't work.

Also added the persistent parameter which was missing.

Changes

  • Propagate depth through _build_exec_script(), sandbox-side llm_query()/llm_query_batched(), and host-side _handle_llm_request()
  • Add persistent parameter with NotImplementedError (for now!)

  - Add depth parameter to _build_exec_script() and embed in sandbox-side
    llm_query()/llm_query_batched() requests
  - Pass depth=self.depth in LMRequest and send_lm_request_batched()
  - Add persistent parameter with NotImplementedError

Signed-off-by: rovle <lovre.pesut@gmail.com>
Copy link
Owner

@alexzhang13 alexzhang13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I didn't notice this before because I only ran through some basic unit tests. I should probably update those as well to add mock sub-LM calls too.

@alexzhang13 alexzhang13 merged commit b052ed1 into alexzhang13:main Jan 26, 2026
3 checks passed
ShaneIsley pushed a commit to ShaneIsley/rlm that referenced this pull request Jan 29, 2026
Merged 4 commits from upstream (alexzhang13/rlm):
- fix: ensure docker env uses shared workspace dir (alexzhang13#48)
- fix: resolve type mismatch in usage summary propagation (alexzhang13#55)
- feat: add Daytona sandbox support (alexzhang13#36)
- fix: propagate depth and persistent parameters in DaytonaREPL (alexzhang13#71)

Resolved conflicts in rlm/core/types.py and rlm/environments/__init__.py
to integrate Daytona with our registry-based environment system.

https://claude.ai/code/session_01VU6KvWSCkKinCMxQDXdNxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants