fix(code): offload server config import - #6089
Merged
Merged
Conversation
Importing config initializes profile path validation, which performs filesystem checks that blockbuster rejects on the server event loop. Move the lazy import into the existing workspace bootstrap worker. Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Mason Daugherty (mdrxy)
marked this pull request as ready for review
September 5, 2026 00:26
John Kennedy (jkennedyvz)
approved these changes
Sep 6, 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.
dcode no longer fails server readiness with
BlockingError: Blocking call to os.accesswhile validating an existingDEEPAGENTS_HOME.Importing
deepagents_code.configinitializes the immutable profile path snapshot. That validation intentionally performs filesystem checks, but the server imported it on LangGraph's blockbuster-guarded event loop before entering the existing workspace bootstrap worker.Move the lazy import into that worker and return the environment context manager with the resolved snapshot. This preserves fail-closed profile validation while keeping its filesystem access off the event loop. A subprocess regression exercises startup under
blockbuster_ctxwith an existing configured profile.Made by Open SWE