Skip to content

docs(native-chat): record why the question answer row has no slash grammar - #21084

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/document-question-answer-row-grammar
Sep 16, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/document-question-answer-row-grammar

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4

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:

  • The row answers this question. A slash command addresses the session — different target.
  • While a prompt is pending the agent is blocked on the tool result, so dispatching a command from here could only do one of two bad things: submit the command text as the answer, or abandon the pending prompt.
  • That grammar belongs to the composer, and both hosts unmount the composer while the card is up — NativeChatStructuredSession.tsx and NativeChatResolvedView.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 /foo do", 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 — clean
  • pnpm test src/renderer/src/components/native-chat/NativeChatQuestionCard.test.tsx — 7/7 pass
  • pnpm run check:code-quality:changed — passes (0 findings across the changed file)
  • Confirmed oxfmt does not reflow the comment

Not run locally: full pnpm lint, pnpm build. No platform-specific surface — the change is a source comment.

  • I manually tested these changes locally — nothing to exercise; no behavior change
  • Automated tests added/updated, or explained why not below — none; a comment has no behavior to pin

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and 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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…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.
@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: c060c415-76d2-4b54-8a86-4b557a58a4f2

📥 Commits

Reviewing files that changed from the base of the PR and between 0cd05bc and ccbe063.

📒 Files selected for processing (1)
  • src/renderer/src/components/native-chat/NativeChatQuestionCard.tsx

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

Added a comment to NativeChatQuestionCard.tsx. The comment documents that the free-text question-answer input does not support slash or mention-command grammar because it replaces the composer.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to ccbe0

This documentation-only change does not alter runtime behavior, so it is ready to merge.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the comment that documents why the native chat question answer row has no slash-command grammar.
Description check ✅ Passed The description is complete and directly matches the comment-only change. It explains the user impact, implementation, rationale, alternatives, testing, visual proof, and scope. The Linked Issue secti…
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Comment documents the plain answer row — adds a four-line comment in NativeChatQuestionCard.tsx stating 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.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@brennanb2025
brennanb2025 merged commit e6a3b5d into main Sep 16, 2026
29 checks passed
ivanvykopal pushed a commit to ivanvykopal/orca that referenced this pull request Sep 20, 2026
…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.
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