You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SandboxClientOptions.workspaceRoot vs WorkspaceSpec.root — duplicate configuration #2171
There are two independent configuration paths for the same concept:
SandboxClientOptions.workspaceRoot — read by *SandboxClient.create() to set the sandbox state's internal root
WorkspaceSpec.root — read by AbstractBaseSandbox (WorkspaceSpecApplier) for spec apply / mount calculations
If a user sets only one and not the other, the sandbox may behave inconsistently (e.g., exec commands use one path while mount/bind logic uses another).
Questions:
Are these two values intentionally redundant, or is this a legacy design that should be consolidated?
If we keep only WorkspaceSpec.root as the single source of truth, could *SandboxClient.create() read workspaceSpec.getRoot() instead of options.getWorkspaceRoot()?
Would a PR to remove SandboxClientOptions.workspaceRoot and redirect everything through WorkspaceSpec.root be accepted?
At present, I am not particularly familiar with the harness module, so I cannot provide a clear answer to you. You can wait for now, or follow other issues. We warmly welcome your contribution.
Activity
chcodex commentedon Jul 13, 2026
@chickenlj @jujn Can you help me answer this question?
jujn commentedon Jul 13, 2026
At present, I am not particularly familiar with the harness module, so I cannot provide a clear answer to you. You can wait for now, or follow other issues. We warmly welcome your contribution.
chcodex commentedon Jul 13, 2026
@chickenlj This code was committed by you. Could you help clarify this issue?
chcodex commentedon Jul 14, 2026
chcodex commentedon Jul 14, 2026
@chickenlj @LearningGp @fang-tech @flystar32 @AlbumenJ @guanxuc @JGoP-L @shiyiyue1102 @jujn @KomachiSion
Is there anyone who can help answer this question?
refactor(sandbox): unify workspace root to WorkspaceSpec.root
fix(harness): use dynamic workspace root in middleware prompt
merge(main): 同步远程主分支并以官方实现替换本地 agentscope-ai#2171 工作区根覆盖