Skip to content

feat(web): show agent/skill model & effort in the dashboard#25

Merged
protonspy merged 1 commit into
mainfrom
feat/dashboard-model-effort
Jun 8, 2026
Merged

feat(web): show agent/skill model & effort in the dashboard#25
protonspy merged 1 commit into
mainfrom
feat/dashboard-model-effort

Conversation

@protonspy

Copy link
Copy Markdown
Owner

Summary

Follow-up to #24 (agent-skill-model-effort). That PR let agents/skills carry model/effort in frontmatter, but the read-only web dashboard hid them (ResourceView strips the frontmatter and the header only showed description/tools/inclusion). This surfaces them.

  • Backend (internal/session/session.go): Artifact gains Model/Effort (json, omitempty), populated from frontmatter in listAgents and listSkills.
  • Frontend (types.ts, ResourceView.tsx): the Artifact type gains model?/effort?, and the resource header renders them next to tools when present.

Verification

  • make check (gofmt + go vet + go test -race ./...) ✅ (session coverage 83.7%)
  • vite build (frontend typecheck/build) ✅
  • pre-push test gate ✅

TDD: added TestOverviewArtifactModelEffort (RED → GREEN) asserting agents/skills surface model/effort and omit them when absent.

Risks

Low. Additive, read-only dashboard metadata; omitempty means artifacts without the keys are unchanged. No backend logic beyond two fm.AsString reads per artifact.

🤖 Generated with Claude Code

Surfaces the model/effort frontmatter (added by #24) in the read-only web
dashboard. The session overview now reads `model`/`effort` for agents and
skills into the Artifact metadata, and ResourceView renders them in the header
alongside tools. Follow-up to agent-skill-model-effort.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@protonspy protonspy merged commit 6cbfb64 into main Jun 8, 2026
3 checks passed
@protonspy protonspy deleted the feat/dashboard-model-effort branch June 8, 2026 16:58
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