Skip to content

fix(code): offload server config import - #6089

Merged
Mason Daugherty (mdrxy) merged 2 commits into
mainfrom
mdrxy/code/fix-profile-os-access
Sep 8, 2026
Merged

fix(code): offload server config import#6089
Mason Daugherty (mdrxy) merged 2 commits into
mainfrom
mdrxy/code/fix-profile-os-access

Conversation

@mdrxy

@mdrxy Mason Daugherty (mdrxy) commented Sep 4, 2026

Copy link
Copy Markdown
Member

dcode no longer fails server readiness with BlockingError: Blocking call to os.access while validating an existing DEEPAGENTS_HOME.


Importing deepagents_code.config initializes 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_ctx with an existing configured profile.

Made by Open SWE

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>
@github-actions github-actions Bot added dcode Related to `deepagents-code` fix A bug fix (PATCH) internal User is a member of the `langchain-ai` GitHub organization size: S 50-199 LOC labels Sep 4, 2026

@open-swe open-swe Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Open SWE Review: No issues found

Open SWE reviewed this PR and found no potential bugs to report.

Open in WebView Open SWE trace

@mdrxy
Mason Daugherty (mdrxy) marked this pull request as ready for review September 5, 2026 00:26
@mdrxy
Mason Daugherty (mdrxy) merged commit 90fe4f4 into main Sep 8, 2026
75 of 77 checks passed
@mdrxy
Mason Daugherty (mdrxy) deleted the mdrxy/code/fix-profile-os-access branch September 8, 2026 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dcode Related to `deepagents-code` fix A bug fix (PATCH) internal User is a member of the `langchain-ai` GitHub organization size: S 50-199 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants