Repository navigation
fix(ui): check agents on the Updates tab - #966
Conversation
After a full check, a skill whose remote did not answer shows "Check failed". The only ways to look at it again were to check everything once more, which with many skills takes a while and re-runs the ones that already answered, or to update it without knowing whether an update exists (#963). Ticking rows on the Skills Updates tab now offers "Check N selected". It checks those tracked repos and skills only, and every other row keeps the result it had. GET /api/check/stream takes the names to limit the check to, as GET /api/update/stream already does. The action is not offered for agents: the dashboard check does not cover them, so it would report each one as failed.
Pressing Check on the Agents Updates tab marked every agent "Check failed". The page marks the items of both kinds as checking and turns the ones without a result into failures, but the check stream only ever looked at the skills source, so no agent got a result. The stream now reports agents as well, using the checks the CLI runs for `skillshare check agents`, and counts their remotes in the progress total. A check limited by names still covers tracked repos and skills only. A locally edited agent can now show "Modified locally". The link that lists local changes reads skills only, so it is left out for agents.
Codex Review Summary: ✅ CompletedThis 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: 9928572fa1
ℹ️ 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".
| () => {}, | ||
| () => {}, | ||
| (result) => { | ||
| applyCheckResult(result); |
There was a problem hiding this comment.
Limit selected-check results to the selected skill units
When a tracked repository is installed for both skills and agents, the two independent checkouts can have the same repo directory name. Checking only the selected skills repo still calls applyCheckResult over all updatable resources, whose tracked-repo loop matches only repoOf(item) without checking the resource kind. Consequently, a current skills checkout overwrites a previously detected update or local modification in the agents checkout with “Up to date.” The names-limited response intentionally contains no agent results to correct this. Restrict result application to the checked skill units so unselected agent statuses remain unchanged.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 36cfda9.
Confirmed: installing a mixed repository with --track --kind skill and --track --kind agent gives both sources a checkout with the same folder name, and the tracked_repos loop in applyCheckResult copied the skills repo status to the agents in the other checkout. After a full check showed the agents repo as "Update available", checking only the skills repo turned it into "Up to date".
What changed: the tracked_repos loop now applies a status to skills only. The same class had one more instance in the same function, the per-skill loop, where a skill result could land on an agent of the same name; it now matches skills only too. applyUpdateResults already compared the kind, and the Dashboard page reads tracked_repos for skills only, so nothing else needed a change.
Verification: reproduced in the browser against a real server before the fix and repeated after it (full check on the Agents tab, "Check 1 selected" on the same-named skills repo, back to the Agents tab: the agents repo keeps "Update available"). There is no rendered test for it, because the dashboard test rules keep status display out of rendered tests.
A mixed repository installed with --track for both kinds gives the skills source and the agents source a checkout with the same folder name. The check reports a tracked repo of the skills source under tracked_repos, but the Updates tab copied that status to every item whose repo folder matched, whatever its kind. A full check hid this because the agents' own results are applied afterwards. "Check N selected" returns no agent results, so checking the skills repo replaced an agents repo's "Update available" or "Modified locally" with "Up to date". The per-skill results had the same gap: a skill result could land on an agent of the same name. Both loops now match skills only, as the update results already do.
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
main now has #965 as one squashed commit with the same content as the commit this branch was stacked on. The conflicts are resolved with this branch's version, which already includes it; the tree is unchanged.
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Linked Issue
None. Found while working on #965, which lists it under "Not covered".
Was stacked on #965, which is merged;
mainis merged into this branch, so the diff is this change only (9928572faand36cfda981).What changed
On the Agents Updates tab, Check for updates marked every agent Check failed.
The page marks the updatable items of both kinds as checking and turns every item without a result into a failure.
GET /api/check/streamonly ever checked the skills source, so no agent got a result.skillshare check agentswas not affected.doneevent now also carriesagents, produced by the checks the CLI runs (check.CheckAgents, thencheck.EnrichAgentResultsWithRemote). An agent is named by its path without.md.startevent counts the agents' remote branches insourcesandtotal, so the progress total still equals the network calls made.names(the Check N selected button from feat(ui): check only the selected skills on the Updates tab #965) still covers tracked repos and skills only, and checks no agent.update_availableshows Update available,driftedanddirtyshow Modified locally,errorshows Check failed, anything else Up to date.36cfda981). A mixed repository tracked for both kinds has a checkout with the same folder name in each source, and the page copied the skills repo's status to the agents of the other one. A full check hid that, because the agents' own results follow; Check N selected returns none, so it turned an agents repo's Update available into Up to date.GET /api/checkis unchanged. Its one consumer is the Dashboard page, which shows skills and tracked repos.Screenshots
After Check for updates on the Agents tab: a tracked agent repo behind its remote, an agent whose remote is gone, an up-to-date agent, and two agents edited locally.
Checks
make checkin the devcontainer: passed.pnpm lint:typed(0 errors),pnpm format:check,pnpm build.TestHandleCheckStream_ReportsAgents: a tracked agent repo whose origin moved on is reported asupdate_available, and its remote is the one unit of work. It failed before the fix.TestHandleCheckStream_NamesLimitTheChecknow also has an outdated agent repo and asserts that a check limited by names reports no agent.skillshare check agents --jsonreported, and the Skills tab kept its results from the same check.--kind skilland--kind agent, agents checkout behind its remote. After a full check, Check 1 selected on the skills repo turned the agents repo into Up to date before36cfda981and leaves Update available after it.python3 scripts/ai-context.py check: ok.Not run: website build (no website change).
Not covered
localalthough it has a recorded source (no file hashes recorded) shows Up to date, as a skill in that state does.Checklist
make check) — for code changes