Skip to content

fix: merge PR #1390 #1389 #1383 #1381#1555

Closed
xuwei-xy wants to merge 9 commits intosipeed:mainfrom
xuwei-xy:fix-pr-batch-15
Closed

fix: merge PR #1390 #1389 #1383 #1381#1555
xuwei-xy wants to merge 9 commits intosipeed:mainfrom
xuwei-xy:fix-pr-batch-15

Conversation

@xuwei-xy
Copy link

Summary

Merges fixes from open PRs #1390 #1389 #1383 #1381

jamesrossdev and others added 9 commits March 11, 2026 20:14
Wire the existing-but-unused `AgentConfig.Skills` field through
`ContextBuilder` into `SkillsLoader` so each agent only sees the skills
it is configured to access.

Changes:
- `pkg/skills/loader.go`: Add `BuildSkillsSummaryFiltered(allowedNames)`;
  `BuildSkillsSummary()` now delegates to it with nil (all skills).
- `pkg/agent/context.go`: Add `skillsFilter []string` field and
  `WithSkillsFilter()` builder method; `BuildSystemPrompt()` uses the
  filter; `GetSkillsInfo()` reflects filtered count via `available` key.
- `pkg/agent/instance.go`: Call `contextBuilder.WithSkillsFilter(skillsFilter)`
  after `skillsFilter` is populated from `agentCfg.Skills`.

Behaviour: empty/nil filter → all skills (no change from before);
non-empty filter → only listed skills appear in the system prompt and
`/skills` output. The system prompt cache is unaffected (filter is
constant for a ContextBuilder's lifetime).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@CLAassistant
Copy link

CLAassistant commented Mar 14, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
4 out of 5 committers have signed the CLA.

✅ kiannidev
✅ linhaolin1
✅ RafiulPaceProjects
✅ jamesrossdev
❌ OpenClaw-User


OpenClaw-User seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@wj-xiao wj-xiao closed this Mar 14, 2026
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.

7 participants