feat(chat): page-aware suggested prompts beside the composer, sent on click (#1905, #1906) #1911

Merged
sam merged 2 commits from feat/1905-1906-chat-suggestions into main 2026-11-12 13:26:21 +00:00
Owner

Closes #1905 and #1906.

What changed:

  • New ui/src/chat/ChatSuggestions.vue renders the suggestion strip inside ChatComposer.vue above the field, so it is reachable without scrolling to the top, including in the collapsed bar; hidden below the md breakpoint when the bar is collapsed (phone), wrapping when expanded.
  • Clicking a suggestion calls sendMessage({ textOverride: prompt }), which sends immediately while idle (queueing only happens under isSending) and leaves the composer empty.
  • New ui/src/chat/suggestions.ts keys prompt sets off the route name, the same page identity the page tag uses: task-detail (names the open task via params.id), tasks, events, workflows, schedules, settings (meta.settings / settings-* / /settings paths), plus a default set.
  • ChatEmptyState.vue keeps its logo and drops the fixed prompt list; the dead prompt re-emit in ChatTranscript.vue is removed.
  • New ui/test/chat-suggestions.test.ts covers the route-to-prompt-set mapping.

Verified: pnpm test (107 pass), pnpm run typecheck, pnpm run build, task check all pass. Browser check against a vite dev server with a stub API on a scratch port: suggestions render beside the composer on /, /tasks, /tasks/42 (task #42 named), /workflows, /org/schedules, /settings/models; above the field; click on a suggestion sends it (prompt appears as a sent message in the transcript, composer stays empty); at 390px the collapsed bar hides the strip while the field and Send stay in the viewport, and expanded it wraps.

Closes #1905 and #1906. What changed: - New ui/src/chat/ChatSuggestions.vue renders the suggestion strip inside ChatComposer.vue above the field, so it is reachable without scrolling to the top, including in the collapsed bar; hidden below the md breakpoint when the bar is collapsed (phone), wrapping when expanded. - Clicking a suggestion calls sendMessage({ textOverride: prompt }), which sends immediately while idle (queueing only happens under isSending) and leaves the composer empty. - New ui/src/chat/suggestions.ts keys prompt sets off the route name, the same page identity the page tag uses: task-detail (names the open task via params.id), tasks, events, workflows, schedules, settings (meta.settings / settings-* / /settings paths), plus a default set. - ChatEmptyState.vue keeps its logo and drops the fixed prompt list; the dead prompt re-emit in ChatTranscript.vue is removed. - New ui/test/chat-suggestions.test.ts covers the route-to-prompt-set mapping. Verified: pnpm test (107 pass), pnpm run typecheck, pnpm run build, task check all pass. Browser check against a vite dev server with a stub API on a scratch port: suggestions render beside the composer on /, /tasks, /tasks/42 (task #42 named), /workflows, /org/schedules, /settings/models; above the field; click on a suggestion sends it (prompt appears as a sent message in the transcript, composer stays empty); at 390px the collapsed bar hides the strip while the field and Send stay in the viewport, and expanded it wraps.
sam added 1 commit 2026-11-12 13:25:27 +00:00
feat(chat): page-aware suggested prompts beside the composer, sent on click (#1905, #1906)
ci/woodpecker/pr/quality Pipeline is pending
Quality / check (pull_request) Canceled after 0s
7b295df8ff
The suggestion strip moves out of the empty transcript into the composer,
above the field, so prompts stay reachable without scrolling to the top and
show in the collapsed bar where there is room (hidden below the md breakpoint
in the collapsed bar, wrapping when expanded on a phone). Clicking a prompt
calls sendMessage({ textOverride }), which sends at once while no turn runs
instead of filling the composer. Prompt sets are keyed off the current route
name, the same identity the page tag uses: task detail (naming the open task),
tasks, events, workflows, schedules, settings, and a default set. The empty
transcript keeps its logo and no longer owns the fixed prompt list; the dead
prompt re-emit in ChatTranscript is removed.
sam added 1 commit 2026-11-12 13:26:04 +00:00
Merge branch 'main' into feat/1905-1906-chat-suggestions
ci/woodpecker/pr/quality Pipeline was successful
Quality / check (pull_request) Successful in 11m7s
2bec268b29
sam merged commit ea64d84696 into main 2026-11-12 13:26:21 +00:00
sam deleted branch feat/1905-1906-chat-suggestions 2026-11-12 13:26:21 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1911