Skip to content

fix(skills): custom workspace ACP sessions lose skills #1716

@kaizhou-lab

Description

@kaizhou-lab

Description

When a non-assistant ACP session uses a custom workspace with enabledSkills but no presetContext, skills are completely lost.

Root Cause

  1. Custom workspaces skip setupAssistantWorkspace symlinks to avoid polluting user directories
  2. For native-support backends (claude, codex, etc.), the first-message handler only injected presetContext — it didn't check whether symlinks were actually created
  3. Result: no symlinks + no prompt injection = skills lost

Fix

Check customWorkspace flag in addition to native skill support. When custom workspace is used, always fallback to prompt injection via prepareFirstMessageWithSkillsIndex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions