Skip to content

fix(init): name the agent files the first sync kept - #943

Merged
runkids merged 1 commit into
mainfrom
runkids/init-reports-kept-agents
Nov 17, 2026
Merged

runkids merged 1 commit into
mainfrom
runkids/init-reports-kept-agents

Conversation

@runkids

@runkids runkids commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)
  • Approved feature or large change (the linked issue has the approved label)

Linked Issue

Closes #938

Summary

init syncs agents quietly. An agent file a tool already had under an agent's name was kept without a word, so init said "Synced" while the tool went on loading its own file.

  • init now prints one line per tool: claude: kept local agents: helper.md (sync agents --force replaces them). It lists up to five names.
  • In symlink mode what is kept is the whole agents folder, so the line says that instead.
  • The per-tool agent warnings a quiet run did not print (file-link fallback, prune failure) are shown too.
  • init.md and its four translations gain one sentence.

A plain skillshare sync agents is unchanged: it still shows a kept file as the count 1 local.

Checks

  • make check in a devcontainer: exit 0.
  • Run by hand in a container with an isolated HOME: init printed the line above; sync agents --force then replaced the file with a link.
  • New test TestFirstSyncReportsAgentFileKeptInTool fails without the change.

Not run: website build, UI tests, the Windows runbook.

Not covered:

  • Without file-link privilege on Windows, an agent file identical to the source that skillshare did not write is listed as kept, and --force does not replace it. That behavior is older than this PR; the new line only makes it visible.
  • The five-name cap is written again in cmd/, next to the one in internal/sync.
  • Project-mode init runs no first sync, so nothing changes there.

Checklist

  • I've read CONTRIBUTING.md, including its AI-assisted contributions section
  • I've reviewed every line of the diff and can explain it
  • Tests included and passing (make check) — for code changes
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

init syncs agents quietly, and an agent file a tool already had under an
agent's name was kept without a word: init said "Synced" while the tool
went on loading its own file. A plain sync shows this only as a count.

The quiet agent run now returns a line per tool that names the kept
files and the command that replaces them, and init prints it with the
skill warnings. In symlink mode what is kept is the whole agents folder,
so the line says that instead.

Closes #938
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T05:33:33.536661Z ecbe212 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@runkids
runkids merged commit d2cc0d8 into main Nov 17, 2026
9 checks passed
@runkids
runkids deleted the runkids/init-reports-kept-agents branch November 17, 2026 05:39
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.

init does not report agent files its first sync kept

1 participant