Skip to content

fix(cli): discover project skills in worktree sessions#11004

Merged
marius-kilocode merged 1 commit into
mainfrom
fix-worktree-project-skills
Jun 8, 2026
Merged

fix(cli): discover project skills in worktree sessions#11004
marius-kilocode merged 1 commit into
mainfrom
fix-worktree-project-skills

Conversation

@marius-kilocode

@marius-kilocode marius-kilocode commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Agent Manager worktree sessions use the linked worktree checkout as their backend request directory. Project configuration discovery also used that checkout as its upward traversal boundary, so it stopped before reaching the main repository's .kilo directory. As a result, worktree sessions could see global skills but not project-installed skills available in normal sidebar chat.

Use the Git project's shared repository root as the discovery boundary for project config directories and skills, while keeping the linked checkout as the active session and Git-operation directory. This restores project skill discovery without allowing worktree sessions to edit or execute against the main checkout.

This addresses the Discord report. It is separate from #10806, which hardened concurrent Marketplace installation and missing workspace handling but did not change backend discovery from linked worktree directories. No matching GitHub issue was found.

@kilo-code-bot

kilo-code-bot Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (4 files)
  • .changeset/fix-worktree-project-skills.md
  • packages/opencode/src/config/config.ts
  • packages/opencode/src/skill/index.ts
  • packages/opencode/test/kilocode/worktree-project-skills.test.ts

Fix these issues in Kilo Cloud


Reviewed by claude-sonnet-4.6 · 1,125,063 tokens

Review guidance: REVIEW.md from base branch main

@marius-kilocode marius-kilocode enabled auto-merge June 8, 2026 11:33
@marius-kilocode marius-kilocode merged commit 2f3e328 into main Jun 8, 2026
21 checks passed
@marius-kilocode marius-kilocode deleted the fix-worktree-project-skills branch June 8, 2026 11:46
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