Repository navigation
docs(native-chat): record why the question answer row has no slash grammar - #21084
Conversation
…ammar The free-text row on an AskUserQuestion card is a plain input on purpose, but nothing said so, and its absence reads as a missing picker rather than a decision. Note the reason at the input.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughAdded a comment to Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This documentation-only change does not alter runtime behavior, so it is ready to merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Comment documents the plain answer row — adds a four-line comment in
NativeChatQuestionCard.tsxstating the free-text answer input deliberately has no/or@grammar, since it answers the question rather than addressing the session, and that grammar belongs to the composer the card replaces.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…ammar (stablyai#21084) The free-text row on an AskUserQuestion card is a plain input on purpose, but nothing said so, and its absence reads as a missing picker rather than a decision. Note the reason at the input.

ELI5
When an agent asks you a question, the card has a "Type your answer" box. Typing
/in it does nothing. That looks broken, but it's on purpose. This adds a comment saying so, so nobody files it as a bug or "fixes" it.What Changed
Comment only — no behavior change, no runtime code touched.
The free-text row on an AskUserQuestion card (
NativeChatQuestionCard.tsx) is a plain input with no/command or@mention autocomplete. Nothing in the code recorded that as a decision, so the absence read as an oversight. Four lines at the input now state the reason.Why
The missing picker is a decision, not a gap:
NativeChatStructuredSession.tsxandNativeChatResolvedView.tsx. So the picker isn't hidden or mispositioned; its owner isn't mounted.Alternative considered and rejected: wiring the composer's picker into the answer row. It was built, and thrown away — it makes the answer row a second command surface with no non-destructive answer to "what does Enter on
/foodo", and it required a second autocomplete call site.Linked Issue
N/A — no issue. This records a decision reached while investigating the behavior.
Visual Proof
N/A— comment only; nothing renders differently.Testing
Comment-only, so there is no behavior to exercise:
pnpm tc— cleanpnpm test src/renderer/src/components/native-chat/NativeChatQuestionCard.test.tsx— 7/7 passpnpm run check:code-quality:changed— passes (0 findings across the changed file)oxfmtdoes not reflow the commentNot run locally: full
pnpm lint,pnpm build. No platform-specific surface — the change is a source comment.Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
No impact on security, cross-platform, SSH/remote, mobile, backwards compatibility, or performance — the change is a comment.
Worth knowing, but deliberately not in scope: desktop replaces the composer with the prompt card, while mobile (
MobileNativeChatView.tsx) stacks the card above a live composer. If running a slash command without abandoning a pending question is ever wanted, that divergence is the thing to resolve — not autocomplete on the answer row.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)