1.6 KiB
1.6 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec |
|---|---|---|---|---|---|---|
| 01-frontend-selection | Frontend slash command selection | done | 1 | plan.md | ../../specs/ui/requirements/slash-command-composer.md |
Task 01: Frontend Slash Command Selection
Acceptance
- Selecting a slash command in the shared TipTap chat composer inserts the selected slash command into the draft and never calls
onSubmit. - Focus stays in the composer with the caret after the inserted command text.
- The stale
handleAgentCommand -> onSubmit('/cmd')plumbing is removed or made unreachable.
Verification
cd apps
pnpm --filter @kandev/web typecheck
Files likely touched
apps/web/components/task/chat/slash-command-types.tsapps/web/components/task/chat/tiptap-suggestion.tsxapps/web/components/task/chat/slash-command-menu.tsxapps/web/components/task/chat/tiptap-input.tsxapps/web/components/task/chat/chat-input-body.tsxapps/web/components/task/chat/chat-input-container.tsxapps/web/components/task/chat/use-chat-input-container.tsapps/web/components/task/chat/chat-input-body.test.tsxapps/web/hooks/use-inline-slash.ts
Dependencies
None.
Inputs
- Spec scenarios for non-sending selection and explicit send.
- Existing
decideSubmitShortcuttests inapps/web/components/task/chat/use-tiptap-editor.test.ts. - Existing
session.available_commandsstate inapps/web/lib/state/slices/session-runtime.
Output contract
Report files changed, whether use-inline-slash.ts was deleted or updated, the typecheck result, and any remaining stale prop references.