Skip to content

Align PicoClaw runtime workspace layout#100

Merged
RussellLuo merged 2 commits into
OpenCSGs:mainfrom
jialudev:align-picoclaw-openclaw-layout
May 25, 2026
Merged

Align PicoClaw runtime workspace layout#100
RussellLuo merged 2 commits into
OpenCSGs:mainfrom
jialudev:align-picoclaw-openclaw-layout

Conversation

@jialudev
Copy link
Copy Markdown
Collaborator

@jialudev jialudev commented May 22, 2026

Align the PicoClaw sandbox creation flow with OpenClaw by using a consistent runtime-root layout, mount structure, and gateway logging behavior across both runtimes.

@jialudev jialudev force-pushed the align-picoclaw-openclaw-layout branch from bdb2546 to 6c5b80b Compare May 22, 2026 08:25
@jialudev jialudev requested a review from RussellLuo May 22, 2026 08:45
Comment thread internal/agent/workspace.go Outdated
return "", err
}
return filepath.Join(agentHome, hostWorkspaceDir), nil
return picoclawsandbox.WorkspaceRoot(agentHome), nil
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This helper now hard-codes the PicoClaw workspace layout, but it is still used from runtime-agnostic paths such as HubPublishSpec().

That means a non-PicoClaw agent, especially OpenClaw, can resolve its exported workspace snapshot from the wrong root: .picoclaw/workspace instead of .openclaw/workspace.

The template-overlay path is still correct because each runtime provisions its own workspace root, but this shared helper no longer looks safe as a generic agent-layer API.

Could we either:

  1. make this helper runtime-aware, for example resolve by got.RuntimeKind, or
  2. remove the default workspace-root assumption from agent/workspace.go and let each runtime or caller provide the host workspace root explicitly?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Optimized.

@RussellLuo RussellLuo merged commit 7915100 into OpenCSGs:main May 25, 2026
@jialudev jialudev deleted the align-picoclaw-openclaw-layout branch May 27, 2026 12:33
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