Repository navigation
fix(status): count extension-converted agents as synced - #392
Conversation
An agent target with an extension writes each agent under output_ext (reviewer.toml) with transformed content, and the manifest tracks that output name. status, doctor and the dashboard's Sync tab counted synced agents by looking for the source name and comparing with the source content, so every converted agent was missing: status showed 0/N with drift, doctor said the same, and the Sync tab kept them pending after a successful sync. For an extension target, count an agent as synced when the manifest tracks an output with the same stem and that file still matches its recorded hash. Matching by stem avoids loading the extension spec in status paths. doctor keeps reporting leftover broken links for these targets. Refs #391
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f403ea5a6f
ℹ️ 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".
Counting an extension output as synced from its output hash alone missed the common case: the user edits the agent in the source and runs status to see whether a sync is due. The output still matched the manifest, so status, doctor and the dashboard reported no drift although the next sync would regenerate it. Sync now records a SHA-256 of the source each output was converted from in the manifest (sources), and status counts an output only when both the output and that fingerprint are current. Outputs recorded by earlier releases have no fingerprint and count as current until the next sync records one, so upgrading does not show the 0/N the report was about. Refs #391, Codex review on #392.
|
@codex review |
…us' into runkids/391-extension-agent-status
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d589e4f92f
ℹ️ 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".
Two agents that flatten to the same name matched the same manifest entry and were both counted, so status could report 2/2 with one output on disk. Each manifest key now satisfies one agent. Refs Codex review on #392.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c43bb763f9
ℹ️ 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".
…414) * fix(diff): compare extension agent outputs and apply target filters #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 * chore(release): request 0.24.6 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
Extension outputs were matched to an agent by stem alone. A plain copy that sync tracked before the target enabled an extension (reviewer.md) passed for the converted output, so status, doctor, diff and the Sync tab reported the target in sync while the next sync would write reviewer.toml and prune the copy. Only a transform records a source fingerprint, so an output without one is no longer counted as converted. Outputs written before fingerprints existed (before 0.24.5) show as pending until the next sync, which is what they were already reported as before #392. Refs #415
Type
proposals/only — see CONTRIBUTING.md)Linked Issue
Refs #391
Summary
An agent target with an
extensionwrites each agent underoutput_ext(reviewer.toml) with transformed content, and the manifest tracks that output name.status,doctorand the dashboard's Sync tab counted synced agents by looking for the source name and comparing with the source content, so every converted agent was missing:0/Nwith drift after a successful sync.internal/sync: addSyncedExtensionOutputs(). An agent counts as synced when the manifest tracks an output with the same stem and the file still matches its recorded hash. Matching by stem avoids loading the extension spec in status paths.cmd/skillshare:countLinkedAgentstakes the agents config and uses the new counter for extension targets (global and projectstatus,status --json).doctordoes the same and keeps reporting leftover broken links.internal/targetsummary: the dashboard'sManagedCountuses the new counter for extension targets.Known limit: an output left by a previous
output_extstill counts as synced until the next sync. Telling it apart would require running the extension fromstatus, which it does not do.Tests
TestStatus_AgentsExtension_CountsConvertedOutputs(integration): two agents through anoutput_ext: tomlextension;status --jsonreports2/2,drift: false,doctorreports2/2 linked. Fails against a binary built frommain.TestSyncedExtensionOutputs_CountsTrackedRenamedOutputs(unit): counts the renamed output, and not after it was edited.make checkin the devcontainer: all unit and integration tests pass.Checklist
make check) — for code changes