Skip to content

fix(ui): check agents on the Updates tab - #966

Merged
runkids merged 4 commits into
mainfrom
runkids/agents-check
Nov 20, 2026
Merged

runkids merged 4 commits into
mainfrom
runkids/agents-check

Conversation

@runkids

@runkids runkids commented Nov 20, 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

None. Found while working on #965, which lists it under "Not covered".

Was stacked on #965, which is merged; main is merged into this branch, so the diff is this change only (9928572fa and 36cfda981).

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/stream only ever checked the skills source, so no agent got a result. skillshare check agents was not affected.

  • The stream's done event now also carries agents, produced by the checks the CLI runs (check.CheckAgents, then check.EnrichAgentResultsWithRemote). An agent is named by its path without .md.
  • The start event counts the agents' remote branches in sources and total, so the progress total still equals the network calls made.
  • A check limited by 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.
  • The page gives each agent its result: update_available shows Update available, drifted and dirty show Modified locally, error shows Check failed, anything else Up to date.
  • Modified locally offers a View changes link that reads skills only, so the link is left out for agents.
  • Results for skills are applied to skills only (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/check is 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.

Agents Updates tab after a check, each agent with its own status

Checks

  • make check in the devcontainer: passed.
  • UI: full Vitest run (1001 tests), pnpm lint:typed (0 errors), pnpm format:check, pnpm build.
  • New handler test TestHandleCheckStream_ReportsAgents: a tracked agent repo whose origin moved on is reported as update_available, and its remote is the one unit of work. It failed before the fix.
  • TestHandleCheckStream_NamesLimitTheCheck now also has an outdated agent repo and asserts that a check limited by names reports no agent.
  • End to end in a fresh ssenv with the real binary and a browser: six agents (a tracked agent repo behind its remote, two agents behind, one edited locally, one whose remote was removed, one current). The tab showed the statuses skillshare check agents --json reported, and the Skills tab kept its results from the same check.
  • The same-named repo case, in the browser: the same repository tracked with --kind skill and --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 before 36cfda981 and leaves Update available after it.
  • python3 scripts/ai-context.py check: ok.

Not run: website build (no website change).

Not covered

  • Update on an agent that is edited locally and behind its remote overwrites the local edit without asking. This is in the update path and was already reachable before this change; fix(server): keep local edits when the dashboard updates an agent #967 fixes it.
  • A tracked agent repo with uncommitted changes is skipped by Update with no force button, as a tracked skills repo is.
  • An agent the CLI reports as local although it has a recorded source (no file hashes recorded) shows Up to date, as a skill in that state does.
  • Check N selected stays on the Skills tab.
  • No rendered UI test: the dashboard test rules keep those for writes and deletes, and a check is a read. The page change was verified in the browser.

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

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 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-20T08:38:46.158150Z 36cfda9 Manual request
ℹ️ 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.

@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: 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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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.
@runkids

runkids commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 36cfda981d

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

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.
@runkids
runkids merged commit b80224f into main Nov 20, 2026
10 checks passed
runkids added a commit that referenced this pull request Nov 21, 2026
The Updates tab section never mentioned the Check button, so the new
"Check N selected" action from #965 and the agent coverage from #966
had no documentation before the 0.30.13 release.
@runkids
runkids deleted the runkids/agents-check branch November 24, 2026 11:12
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