#7528: feat: Adds slash command suggestions to chat
app: web-ui
Implements slash command suggestions in the chat input, showing available commands as the user types.
Adds command history navigation using arrow keys for quick access to previous commands.
AI: Assisted Development
Testing: Unit test Added and Tested in live environment build.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
Adds chat slash-command suggestions UI (new command registry + dropdown styling) and introduces command history persistence in UI settings, with ArrowUp/ArrowDown navigation in the chat textarea.
Changes flow through the existing `OpenClawApp` state → `renderApp` → `renderChat` props pipeline: `UiSettings.chatCommandHistory` is loaded from localStorage, exposed on `AppViewState`, and then used by `ui/src/ui/views/chat.ts` to render suggestions and implement history navigation while composing.
<h3>Confidence Score: 3/5</h3>
- Generally safe to merge, with a few UX/accessibility pitfalls worth fixing before shipping broadly.
- Changes are localized to the UI chat view and settings persistence, and the logic is straightforward. Main concerns are user-facing behavior issues (suggestions disappearing when arguments are typed, history navigation clobbering drafts / stealing caret movement) and some minor robustness/a11y semantics gaps. I couldn’t run tests in this environment (no node/pnpm), so confidence is moderate.
- ui/src/ui/views/chat.ts (history navigation + suggestion behavior); ui/src/ui/app-chat.ts (history write timing); ui/src/ui/storage.ts (settings validation)
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
**Context used:**
- Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8))
- Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13))
<!-- /greptile_comment -->
Most Similar PRs
#11711: feat(webui): add terminal-style input history navigation
by stephenschoettler · 2026-02-08
81.0%
#7316: fix: /chat dashboard performance
by felipcsousa · 2026-02-02
79.8%
#3721: fix(ui): webchat not displaying chat responses
by maxmaxrouge-rgb · 2026-01-29
79.4%
#6521: fix: addressed style issue for chat compose and thread on mobile
by spencer-rafada · 2026-02-01
78.1%
#14309: fix(ui): resolve chat event session key mismatch
by justonlyforyou · 2026-02-11
77.9%
#7127: fix(webchat): add regenerate flag to prevent context leak on response…
by craihub · 2026-02-02
77.6%
#9490: Add Internationalization (i18n) Support
by luuman · 2026-02-05
77.2%
#6440: feat(ui): add model picker dialog with provider filtering
by igorls · 2026-02-01
77.1%
#22798: feat(webchat): ChatGPT-style multi-chat threads with generated titles
by opnsec · 2026-02-21
76.4%
#6690: UX: clearer /queue and /subagents output
by kamb5686 · 2026-02-01
75.9%