Skip to content

Sync Open Knowledge from agents-private#536

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jul 8, 2026
Merged

Sync Open Knowledge from agents-private#536
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

Copybara-translated commits from agents-private. Rebase-merge this PR so the prepared commits land directly on public main.

…sent dialog) (#2497)

A newly-created git worktree of an OK project re-prompted the "Setup
OpenKnowledge in this folder?" consent dialog. discoverProject's
linked-worktree carveout classifies an un-initialized worktree (no
<worktree>/.ok/config.yml) as 'fresh', which shows the dialog.

Seed the new worktree from the root right after 'git worktree add', in
createWorktree, beside the existing auto-sync inheritance:

- initContent(worktree, { contentDir }): the same writer the consent and
  create-new flows use. Materializes .ok/config.yml (+ .ok/.gitignore +
  .okignore). Its presence flips discovery 'fresh' to 'managed', so the
  worktree opens silently. writeIfMissing, so a committed config is never
  clobbered. content.dir is inherited from the root.
- writeProjectAiIntegrations(worktree, editors): the same writer the setup
  flows use. Mirrors the exact editors the root wired (detected via the OK
  MCP sentinel), so agents/editors work out of the box. The published MCP
  entries and .claude/launch.json recipe are the resilient /bin/sh chain
  (project-path-independent), so writing them under the worktree path is
  the adaptation.

Sharing mode is inherited for free: .git/info/exclude lives in the shared
git common dir, so a local-only root's exclude already covers the
worktree's seeded .ok/ and editor configs, and they stay untracked. The
seed performs only file writes and never stages anything.

GitOrigin-RevId: 8666c84d7d45d8cf8f6958ee840b2690549c7c34

@inkeep-internal-ci inkeep-internal-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/28922409878). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.

@inkeep-oss-sync inkeep-oss-sync Bot merged commit b529455 into main Jul 8, 2026
1 check passed
@inkeep-oss-sync inkeep-oss-sync Bot deleted the copybara/sync branch July 8, 2026 06:31
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