Skip to content

fix(agent): read user-level SKILL.md from client disk on remote workspace#312

Merged
bobleer merged 1 commit intoGCWing:mainfrom
bobleer:feat/skills-remote-user-local-skill-md
Mar 31, 2026
Merged

fix(agent): read user-level SKILL.md from client disk on remote workspace#312
bobleer merged 1 commit intoGCWing:mainfrom
bobleer:feat/skills-remote-user-local-skill-md

Conversation

@bobleer
Copy link
Copy Markdown
Collaborator

@bobleer bobleer commented Mar 31, 2026

Summary

In a remote (SSH) merged session, SkillLocation::User paths refer to the client machine (e.g. Windows %AppData%), while SkillLocation::Project paths are POSIX paths on the SSH host.

Previously, find_and_load_skill_for_remote_workspace always read SKILL.md via WorkspaceFileSystem, so user-level skills were incorrectly resolved from the remote side.

Changes

  • User-level: read {path}/SKILL.md on the local machine with tokio::fs::read_to_string.
  • Project-level: unchanged — still use WorkspaceFileSystem::read_file_text against the SSH workspace.

Verification

  • cargo check -p bitfun-core passes.

…pace

Remote merge sessions use host paths for SkillLocation::User and SSH paths
for SkillLocation::Project. Load user skills via local fs and project skills
via WorkspaceFileSystem.
@bobleer bobleer changed the title fix(agent): remote workspace 下用户级 SKILL.md 从本机读取 fix(agent): read user-level SKILL.md from client disk on remote workspace Mar 31, 2026
@bobleer bobleer merged commit 9dc2d70 into GCWing:main Mar 31, 2026
4 checks passed
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.

1 participant