Files
skillshare/ui
Willie 0cc1c25d67 fix(server): keep local edits when the dashboard updates an agent (#967)
Updating an agent from the dashboard replaced the file with the remote
version even when the user had edited it since install. Skills were already
protected: update skips them and offers a forced retry. Agents had the
recorded file hash to compare against, but the update never looked at it.

An agent whose file no longer matches its recorded hash is now skipped with
the same message as a skill, so the Updates tab offers Force Retry and the
agent's own page asks before overwriting. The check runs only once a newer
version is about to be written, so an edited agent that is already at the
remote version still reports up to date.

Assigning targets to an agent from the dashboard rewrites its frontmatter.
That rewrite now carries the recorded hash, as it does for skills, so it is
not mistaken for a local edit.

The confirmation on the agent's page no longer tries to list the local
changes: that list is served for skills only and showed a load error.
2026-11-20 17:23:26 +08:00
..
2026-04-19 09:29:18 +08:00

Dashboard development

From ui/ inside the devcontainer:

  • pnpm lint checks TypeScript and React code with Oxlint.
  • pnpm lint:typed runs the same configuration with type information from tsrs. CI runs this check and pnpm format:check for the dashboard.
  • pnpm format applies Oxfmt; pnpm format:check checks formatting without writing.
  • pnpm typecheck checks project references with tsrs. pnpm build runs it before Vite.
  • pnpm test runs the dashboard tests with Vitest.