Skip to content

feat(desktop): 技能 使用 button — composer prefill lands (last backlog item) - #706

Merged
jackwener merged 1 commit into
mainfrom
feat/use-skill-prefill
Jul 9, 2026
Merged

feat(desktop): 技能 使用 button — composer prefill lands (last backlog item)#706
jackwener merged 1 commit into
mainfrom
feat/use-skill-prefill

Conversation

@jackwener

Copy link
Copy Markdown
Member

The 使用 button was deferred pending a prefill mechanism — the mechanism already existed (ComposerHandle.setText, the maka://compose pathway) and just needed the seam wired:

  • 使用 on enabled 内置/已安装 skill rows → jump to chat view, ensure a session (create only if none active), seed the composer with 「使用 <技能名> 技能:」 and focus. Human-in-the-loop preserved — never auto-sends (the maka://compose rule).
  • Placeholder honesty: the composer advertised '/' quick-invoke and '@' add-context — neither is implemented; copy is now 描述任务…. (When a real slash-invoke ships, the 使用 seed and the placeholder can both upgrade.)
  • Template-row grid fix: 3 children in a 2-col grid without placement — auto-flow shattered the 技能示例 rows (icon on the wrong row); explicit grid-template-areas.

Desktop 2297/2297 exit-code gated + full typecheck + dead-css + CI alignment auditor clean; before/after captures verified.

… setText seam

Closes the last recorded backlog item. Clicking 使用 on an enabled
skill (内置/已安装 rows) jumps to the chat view, ensures a session
(creates one only if none is active), and seeds the composer with
「使用 <技能名> 技能:」 — same human-in-the-loop rule as maka://compose:
never auto-sends. Rides ComposerHandle.setText; no new IPC.

Also two honesty/geometry fixes found on the way:
- composer placeholder advertised '/' quick-invoke and '@' context —
  neither syntax exists; the copy is 描述任务… now
- the skill-template rows put 3 children in a 2-col grid with no
  placement — auto-flow dropped the meta line under the icon column and
  shattered the row; explicit grid-template-areas fix it

Desktop 2297/2297 + typecheck + dead-css + alignment auditor clean;
module-skills capture verifies the 使用 row form matches the reference.
@jackwener
jackwener merged commit 721c87d into main Jul 9, 2026
3 checks passed
@jackwener
jackwener deleted the feat/use-skill-prefill branch July 9, 2026 17:37
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