Skip to content

feat(web): list trigger characters in the empty thread composer - #235

Merged
nixuuu merged 1 commit into
devfrom
feat/composer-trigger-hint
Nov 6, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/composer-trigger-hint

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 6, 2026

Copy link
Copy Markdown
Member

The empty thread composer now says what the trigger characters do. Apps type these differently, so users asked for the hint in place of a plain "Ask anything…".

Change

  • MentionEditor takes an optional hint (a list of items) and shows it as a second placeholder line under the existing one. It wraps between items, never inside one, so # threads stays together on phone widths. aria-placeholder includes the hint.
  • ComposerBox passes / commands · $ skills · @ files · # threads · ! shell for owner thread composers with mention sources: the new thread, a running thread (under "Steer the agent, or queue for the next turn…") and new side threads. Compact composers and bot composers keep a single line.
  • docs/copy.md §4.9 names this as the one exception to "placeholders show the format, not instructions".

Checked in a browser against the live gateway: new thread at 1280 px light and 360 px dark (the hint wraps after @ files ·). Gates: gen:check, typecheck, lint, format:check and the web build.

Copy audit (§8)

  • Text: / commands · $ skills · @ files · # threads · ! shell. Glossary words (commands, skills, files, threads, shell) match the mention popup labels.
  • Short, no instruction verbs; it disappears on typing, like any placeholder.
  • No trailing period; separators match other · lists in the UI.

The empty thread composer shows a second placeholder line with what each
trigger character does: / commands, $ skills, @ files, # threads and
! shell. The line wraps between items on narrow screens and is left out of
compact composers. docs/copy.md notes this exception to the placeholder
rule.
@nixuuu
nixuuu merged commit 4a1cb9d into dev Nov 6, 2026
15 of 17 checks passed
@nixuuu
nixuuu deleted the feat/composer-trigger-hint branch November 6, 2026 07:40
nixuuu added a commit that referenced this pull request Nov 6, 2026
The mobile thread and new-thread composers now show the same trigger
hint as the web (#235): a second placeholder line `/ commands · $ skills
· @ files · # threads · ! shell`. Mobile has had mentions since #239.

**Change** (`apps/mobile/src/features/threads/ComposerBox.tsx`)
- New `triggers` prop. With it, and when not compact, the placeholder
gets the hint as a second line.
- Each item is joined with a no-break space, so a wrap on a narrow phone
never splits `#` from `threads`.
- `MessageComposer` and `NewThreadScreen` pass `triggers`. Bot chats and
compact composers keep one line.

**Checked:** `typecheck`, `lint`, `format:check`, `expo lint`. The
device check is on a preview APK on a Galaxy Z Fold, folded and
unfolded.

**Copy audit (§8):** same text as the web hint (#235), with the same
glossary words as the mention popup and no instruction verbs.
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