Skip to content

fix(diff): compare extension agent outputs and apply target filters - #414

Merged
runkids merged 2 commits into
mainfrom
runkids/diff-extension-agents
Oct 5, 2026
Merged

runkids merged 2 commits into
mainfrom
runkids/diff-extension-agents

Conversation

@runkids

@runkids runkids commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)

Linked Issue

Refs #391 (kept open until the reporter confirms)

What changed

#392 fixed status and doctor for targets with an extension, but skillshare diff and the Sync tab (GET /api/diff) still compared *.md files in the target against the source name. After a sync, a codex target (output .toml) kept listing every agent as pending.

  • Both diff paths use sync.ExtensionOutputStatus, the manifest-based check status already relies on (SyncedExtensionOutputs now calls it).
  • Tracked outputs whose source is gone are reported as prune items.
  • Both diffs apply the target's include/exclude and the agents' frontmatter targets, as sync does.

Known cosmetic difference: pending items use the source name (reviewer.md), prune items use the output name (reviewer.toml), because an orphan has no source.

Checks run (devcontainer)

  • make check (fmt, lint, unit and integration tests): passed
  • New integration test TestDiff_AgentsExtension_SyncedOutputsAreNotPending: fails on main, passes on this branch
  • New handler test for /api/diff, plus unit tests for synced, outdated, orphan and excluded agents
  • make check re-run on the final commit: passed
  • Not run: dashboard Sync tab in a browser

Checklist

  • I've read CONTRIBUTING.md
  • Tests included and passing (make check)
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

#392 taught status and doctor to recognise converted extension outputs,
but diff (CLI) and the Sync tab (/api/diff) still compared the target
directory's *.md files against the source name. A target whose extension
renames the output (codex -> .toml) therefore listed every agent as
pending after a sync.

Both diff paths now use the same manifest-based check as status, and
report tracked outputs whose source is gone as prune items. They also
apply the target's include/exclude and the agents' frontmatter targets,
so an agent that sync would skip is no longer shown as pending.

Refs #391
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T07:36:20.371456Z f430e78 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.

The pending feat commits would make Release Please propose 0.25.0. This
batch is meant to ship as the 0.24.6 patch, so ask for that version.

Release-As: 0.24.6
@runkids

runkids commented Oct 5, 2026

Copy link
Copy Markdown
Owner Author

Note for merging: the second commit carries a Release-As: 0.24.6 footer so Release PR #411 proposes 0.24.6 instead of 0.25.0. When squash-merging, keep that footer in the final commit message.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f430e7839f

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/sync/agent_sync.go Resolved
@runkids
runkids merged commit 72ed5ba into main Oct 5, 2026
8 checks passed
@runkids
runkids deleted the runkids/diff-extension-agents branch October 5, 2026 07:40
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