Skip to content

web(841): wire slash completion into chief drawer composer - #845

Merged
xiechimon merged 1 commit into
mainfrom
hp/pacman/t-0162-841
Oct 4, 2026
Merged

xiechimon merged 1 commit into
mainfrom
hp/pacman/t-0162-841

Conversation

@xiechimon

Copy link
Copy Markdown
Owner

Wires the #731 slash registry into the chief drawer composer, which had zero completion wiring: /clear went out as plain text and opened a chief round instead of clearing the input.

What changes

  • Drawer composer consumes the same useComposerWire slash face as the detail composer (menu + accept semantics + skills). No review/stop handles exist on this face, so both rows stay hidden per rule 47.
  • clear semantics match detail: empty the input. It was the only builtin with no visible落点, so runBuiltin now confirms through the shared sonner toaster (已清空, en: Cleared).
  • New spec chief-drawer-slash.spec.ts (6 tests): menu contents + conditional hiding, /clear runs with zero chief POSTs and a visible toast, Tab/no-highlight Enter behavior, mid-prompt literal, /help panel, Esc ladder.

Verification

  • New spec 6/6, neighboring composer-slash / chief-composer-tools / composer-inline-mention 47/47, affected surface 773/773 (/tmp/841-affected.log on the lane).
  • vitest run test/i18n-coverage.test.ts test/completion.test.ts 38/38; biome + web typecheck clean.

Evidence

drawer /clear flow

cleared toast still

The drawer composer had zero completion wiring, so `/clear` went out as
plain text and opened a chief round instead of clearing the input. It now
consumes the same #731 registry through the shared useComposerWire face
as the detail composer: `/` menu with clear/attach/mention/help plus team
skills, review/stop conditionally hidden (no drawer handles, rule 47).

Execute-visible feedback: `clear` was the only builtin with no surface of
its own, so runBuiltin now toasts a light confirmation through sonner.

Tests: new chief-drawer-slash.spec.ts (6), affected surface 773 green,
vitest i18n-coverage + completion 38 green, biome + web typecheck clean.
Evidence: docs/verify/841 (GIF of the full drawer /clear flow).

closes #841
@xiechimon
xiechimon merged commit 6a2f9c0 into main Oct 4, 2026
8 checks passed
@xiechimon
xiechimon deleted the hp/pacman/t-0162-841 branch October 4, 2026 14:11
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