Repository navigation
fix(chat): put the phone's suggestion chip behind a setting, off by default - #223
Conversation
…efault #198 shows Claude Code's suggested next prompt as a dashed chip above the message box on touch screens, with no way to turn it off. It now waits for Settings -> Composer -> Suggestion chip (showSuggestionChip, off by default). The suggestion still stands as the box's placeholder, and Tab still takes it with a keyboard. - settings: showSuggestionChip in Settings, its default and sanitizing, with a unit test. - ui-regression: a phone with default settings shows the suggestion as the placeholder and no chip; a phone with the setting on shows the chip, and a tap puts the suggestion in the box. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (8)
🚧 Files skipped from review as they are similar to previous changes (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughAdds a default-off setting for the suggestion chip, exposes it in Composer settings, and applies it to chip rendering. Mobile regression checks cover the disabled and enabled states. The changelog describes the setting and existing placeholder and Tab behavior. ChangesSuggestion Chip
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The suggestion chip is now opt-in while placeholder and Tab acceptance remain available. No material merge-blocking risk is evident; normal checks are sufficient. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 8 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
…etting # Conflicts: # CHANGELOG.md
## Change Installed apps are on v0.3.36. This PR prepares v0.3.37: the app and plugin versions go up together, and the Unreleased notes move under the dated release heading. This release trims UI that 0.3.36 added or kept. Everything in it is under **Changed**: - The agent icon choice (Clawd, the Codex app mark) leaves Settings → Appearance. Panes show the provider logos again, also where an icon was chosen in 0.3.36. The color palettes stay (#219). - **Report a problem** leaves the composer on every screen, and **Hide keyboard** leaves it on phones. Tapping the transcript or dragging it down still puts the keyboard away (#221). - The phone's suggestion chip is off until Settings → Composer → **Suggestion chip** turns it on. The placeholder and Tab are unchanged (#223). No server or remote-bundle changes. ## Validation - `bun scripts/release-notes.ts 0.3.37` passes. - Fast checks and Integration and browser must pass before the squash merge. After the merge, publish with `gh workflow run release.yml --ref main -f version=0.3.37`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
…he mic button and a phone's Agents list (#559) ## Change Four defaults, chosen while looking at the demo on a fresh browser. - **Sidebar rows default to Two lines.** A workspace row says what its agent is doing, with the workspace and folder under it. **One line** stays in Settings → Appearance. - **The suggestion chip is on by default.** On a touch screen the chip above the message box takes Claude Code's suggested next prompt; #223 had turned it off until chosen. It is still hidden where a mouse is used (Tab takes the suggestion there). - **A phone's Agents list starts folded.** At the width where the sidebar is a drawer (`max-width: 768px`) the list opens folded, with its heading and count; a tap opens it. The fold is not stored, as before. - **The mic shows in a desktop's chat without being turned on.** `voiceInput` was a boolean, off until chosen. It is now `auto | on | off`, default `auto`, and Settings → Voice input → Microphone button is a three-way control. | | desktop chat | phone chat | terminal input line | |---|---|---|---| | Auto (default) | shown where dictation can work | hidden | hidden | | On | shown | shown | shown | | Off | hidden | hidden | hidden | "Can work" is `useVoiceInput`'s `available`: a secure context, and a server key or the browser's own recognition. On Auto a mic that could not work is left out; On keeps today's behavior, disabled with its reason. "Phone" is the composer's own `(max-width: 640px), (pointer: coarse)`, so a tablet counts as one. Decisions worth a look in review: - **A stored `false` reads as `auto`.** Any settings change writes the whole record, so nearly every existing device holds `voiceInput: false` whether or not anyone chose it. Reading it as off would show the mic to new browsers only. The cost: a device that had turned the mic off on purpose sees it again in a desktop's chat. A stored `true` reads as `on`. - **Without a key, Chrome and Edge send the audio to Google or Microsoft** once the mic is pressed. Nothing is recorded before that, and the Settings hint says so, but the button is now there without a choice. - A desktop's composer now asks `GET /api/voice` on mount (one request, shared by every composer). `scripts/chat-history-browser-qa.ts` serves its own fixture and did not answer that route, which made its process exit non-zero; it answers it now. The demo transport already did. The unreleased CHANGELOG line of #521 said One line "stays the default"; it is reworded. ## Validation - `bun run check fast`: workflow syntax, generated types, typecheck, build, unit tests (1648 pass, 0 fail). - `bun run check browser`: the whole lane, 173 PASS, exit 0. - Outside the lane, each with `bun run check run`: `pi-image-browser-qa`, `skill-activity-browser-qa`, `update-browser-qa`, `font-swap-demo-regression`, `keyboard-viewport-demo-regression`, all exit 0. - New in `scripts/ui-regression.ts`: rows are two lines until One line is chosen; a phone shows the chip until Settings turns it off; a phone's drawer opens with Agents folded; a desktop's chat offers the mic and a phone's does not. - New unit tests in `src/lib/settings.test.ts` for the three-way setting, the legacy boolean and where Auto asks for the mic. - One earlier run of the lane timed out at "the message sent before the snapshot is a live pending row" (the step #556 also reported); the reruns passed. No screenshot attached. README and site media still show one-line rows. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Fable 5.1 <[email protected]>
Change
#198 shows the prompt Claude Code suggests next as a dashed chip above the message box on touch screens, and there was no way to turn it off. The chip now waits for Settings → Composer → Suggestion chip (
showSuggestionChip), which is off by default, like the quick replies row.showSuggestionChipgets a default and sanitizing insettings.ts, a toggle row inSettingsDialog, and strings inko,jaandzh.[Unreleased] → Changed.Validation
bun run typecheckandbun run test:unit(636 pass, including a newsettings.test.tscase for the default and sanitizing).bun run test:ui(32 PASS): a new 390×844 touch check. With default settings, the suggestion shows as the placeholder and there is no chip. With the setting on, the chip shows, and a tap puts the suggestion in the box. Withmain'sComposer.tsx, which shows the chip without the setting, the check fails at its "no suggestion chip" assertion.🤖 Generated with Claude Code