Skip to content

[codex] export approved managed skills immediately#222

Merged
ScriptedAlchemy merged 5 commits into
masterfrom
codex/export-approved-skills
Jul 2, 2026
Merged

[codex] export approved managed skills immediately#222
ScriptedAlchemy merged 5 commits into
masterfrom
codex/export-approved-skills

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

  • Re-export active managed skills to detected agent hosts when dashboard lifecycle actions approve, disable, archive, or restore a skill.
  • Keep per-agent export failures non-fatal and return skill_exports reports in the dashboard API response.
  • Surface export results in the curation UI and add isolated HOME/USERPROFILE fixtures for dashboard API tests.

Validation

  • git diff --check origin/master...HEAD
  • CARGO_TARGET_DIR=/tmp/tracedecay-target/r1-export-approved-skills cargo check --workspace
  • CARGO_TARGET_DIR=/tmp/tracedecay-target/r1-export-approved-skills cargo test --test agent_suite skill_targets_test -- --nocapture
  • CARGO_TARGET_DIR=/tmp/tracedecay-target/r1-export-approved-skills cargo test --test dashboard_api_test automation_skills -- --nocapture
  • npm run test:dom -- curation-panel.vitest.tsx
  • npm test

Notes: initial bare cargo test attempts hit /scratch/cargo-target disk exhaustion, so verification was rerun with the repo-documented per-task CARGO_TARGET_DIR under /tmp.

TraceDecay'd ~135k tokens during semantic diff/risk review.

@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: 00e1f5593f

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

Comment thread src/dashboard/automation_skills_api.rs
@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 575082b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

ScriptedAlchemy added 3 commits July 2, 2026 09:43
Dashboard approval of a managed skill previously only flipped its
lifecycle state; the overlay/prompt-index export to agent hosts ran only
during `tracedecay install` / `update-plugin`, so approved skills never
reached any agent until the next install.

- Add `AgentIntegration::export_managed_skills` hook that refreshes the
  managed-skill overlay (Cursor, Codex) or prompt index (Claude Code,
  OpenCode, Kimi, Kiro, Copilot, Vibe) for already-detected installs
  without touching other config.
- Add `export_managed_skills_to_agents` sweep that collects per-agent
  success/failure instead of aborting, and run it from the dashboard
  approve/disable/archive/restore handlers; results are reported on the
  response payload as `skill_exports` and export failures never fail
  the lifecycle action itself.
- Surface per-agent export results in the ManagedSkillsSection UI.
- Isolate HOME/USERPROFILE in dashboard API test fixtures so lifecycle
  endpoints never write into the developer's real agent configs.
@ScriptedAlchemy ScriptedAlchemy force-pushed the codex/export-approved-skills branch from d6fd5b5 to 40a11e9 Compare July 2, 2026 09:43
@ScriptedAlchemy ScriptedAlchemy merged commit dc1622c into master Jul 2, 2026
14 checks passed
@ScriptedAlchemy ScriptedAlchemy deleted the codex/export-approved-skills branch July 4, 2026 01:13
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