Repository navigation
fix(native-chat): suggest verified OMP terminal commands - #20672
Conversation
Co-authored-by: Nafisul Haque <[email protected]>
|
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 (3)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change adds a curated slash-command registry for the Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The OMP picker and command classification changes are internally consistent, with no actionable merge risk identified. 🚥 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 — the new curated OMP slash catalog and its tests, checked against the OMP built-in registry the issue links.
- New
OMP_COMMANDScatalog (src/shared/native-chat-slash-commands.ts) — 22 verified OMP built-in commands wired intoCOMMANDS_BY_AGENTasomp: OMP_COMMANDS; no other production logic touched. All names exist in the linked OMP v18.1.21 registry, no duplicates, and/helpis correctly omitted. - OMP catalog tests (
native-chat-slash-commands.omp.test.ts) — pin the verified names, dedup,getVerifiedNativeChatCommands('omp'), null profile,pifallback, filter/completion/dispatch, classification, and session-report precedence. - Mobile classification cases (
mobile-native-chat-send-classification.test.ts) —/switchand/compact focusclassify ascommand;/help//smolasunknown-token.
OMP is a PTY-lane agent (isAgentSessionHandleProvider covers only claude/codex), so the catalog feeds picker suggestions, send classification, and envelope surfacing only — the structured-composer getHostClaimed path is not reached for omp, and dispatch still writes /cmd to the OMP TUI, which matches the "in Terminal" descriptions. Focused shared tests (18) and broader native-chat tests (78) pass; the changed-code quality gate reports 0 findings. Mobile vitest could not run in this environment (missing expo/tsconfig.base.json), an infra limitation rather than a code issue.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
Typing
/in OMP Chat now offers OMP commands such as/model,/plan,/context, and/usage, instead of the generic/clearand/helpmenu. OMP continues to run commands in Terminal.What Changed
Add a curated 22-command OMP catalog to the existing shared desktop/mobile source. Reuse current filtering, keyboard handling and command classification. Session-reported catalogs retain precedence; no OMP skill profile or transport changes.
Why
OMP lacked its own catalog. Verified command names against the read-only OMP built-in registry. After independent implementation and secondary comparison with #20630, adopted its broader verified catalog and Terminal-specific descriptions, with Nafisul Haque credited as co-author. Corrected version-dependent
/switchand/renamedescriptions against the available source: no promise of switch arguments or automatic title generation.Linked Issue
Fixes #20627
Related: #20630 (superseded catalog candidate); #18618 (separate RPC integration).
Visual Proof
Hidden Electron/CDP component fixture using the production catalog hook, picker, keyboard handler and style tokens. Before loads the base commit's catalog. Verified 22 rows, absence of
/help, bounded scrolling, light/dark rendering, Tab completion without dispatch, Escape without dispatch, and one/contextcallback on Enter. This fixture records dispatch callbacks; it does not prove full-app PTY execution. Both native windows remained hidden and unfocused.Testing
fb7eee19cb85SHA256); both source-description findings resolved.Review
Static shared data only; no new process, IPC, network access, dependencies or execution-host policy. The catalog is curated, not installed-version discovery. A suggestion does not acknowledge successful command execution; interactive selectors remain in Terminal.
Agent skill upstream boundary
Checklist