Skip to content

fix: relabel Playbooks "Edit" button to "Edit & Run" (#959) - #1387

Merged
dolho merged 1 commit into
devfrom
feature/959-playbooks-edit-label
Jul 1, 2026
Merged

dolho merged 1 commit into
devfrom
feature/959-playbooks-edit-label

Conversation

@vybe

@vybe vybe commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The Playbooks tab's secondary button was labeled "Edit" with a pencil icon, implying it opens an editor for the underlying skill file — a surface that doesn't exist. Reporter reasonably read this as "the button does nothing."
  • Its actual behavior is to prefill /<skill> into the Tasks input and switch to the Tasks tab so you can add instructions/arguments before running.
  • Relabeled to "Edit & Run" with tooltip "Add instructions, then run" so the affordance is honest. The emit/handler/method chain is unchanged — only the user-facing label, tooltip, and an explanatory comment.

Changes

  • src/frontend/src/components/PlaybooksPanel.vue — button text Edit → Edit & Run; tooltip Add instructions before running → Add instructions, then run; added a #959 explanatory comment. Pencil icon kept (the label now disambiguates "edit the invocation, then run").
  • docs/memory/feature-flows/playbooks-tab.md — synced the flow diagram's button labels.

Root cause

The button (runWithInstructions) was never dead — it emits run-with-instructions, which AgentDetail.handlePlaybookRunWithInstructions turns into a Tasks-tab switch + initialMessage prefill (consumed by TasksPanel's immediate:true watcher, guarded by if(newMessage) so the 100 ms prefill-clear doesn't wipe it). The defect was a misleading label/affordance, not broken wiring. Scope was deliberately kept to an honest relabel rather than building a skill-file editor (that would be a separate, larger feature).

Test Plan

  • Vite (dev hot-reload) compiles PlaybooksPanel.vue with no error; live-served render emits " Edit & Run " + title:"Add instructions, then run".
  • Click→behavior chain verified by code trace (emit → handler → Tasks tab + prefill).
  • Manual browser check (needs an agent with ≥1 user-invocable playbook): open agent → Playbooks tab → the per-skill card shows Edit & Run → click → lands on Tasks tab with the input prefilled /<skill> . (Not exercised locally — the only local agent trinity-system has 0 playbooks; not provisioning a fixture agent for a label-only change.)
  • No backend change; tests/test_playbooks.py (backend skill listing) unaffected. No frontend unit-test harness exists.

Fixes #959

The Playbooks tab's secondary button was labeled "Edit" with a pencil
icon, implying it opens an editor for the underlying skill file — a
surface that doesn't exist. Its actual behavior is to prefill
`/<skill> ` into the Tasks input and switch to the Tasks tab so the
user can add instructions/arguments before running.

Relabel to "Edit & Run" and update the tooltip ("Add instructions,
then run") so the affordance is honest about what it does. The
emit/handler/method chain is unchanged — only the user-facing label,
tooltip, and an explanatory comment. Sync the playbooks-tab feature
flow diagram to match.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@dolho

dolho commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Review — LGTM ✅

Label-only change (#959), all checks green. PlaybooksPanel.vue button Edit → Edit &amp; Run (correct HTML-entity escaping → renders "Edit & Run"), title updated to "Add instructions, then run", plus a clarifying comment that it edits the invocation not the skill file, and the matching ASCII diagram update in playbooks-tab.md. Trivial and safe. Mergeable.

@dolho
dolho merged commit 84d2bd8 into dev Jul 1, 2026
19 checks passed
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.

2 participants