Skip to content

feat(native-chat): add verified OMP slash commands - #20630

Closed
nafisul-haque wants to merge 1 commit into
stablyai:mainfrom
nafisul-haque:feat/omp-chat-slash-commands
Closed

nafisul-haque wants to merge 1 commit into
stablyai:mainfrom
nafisul-haque:feat/omp-chat-slash-commands

Conversation

@nafisul-haque

@nafisul-haque nafisul-haque commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Orca now suggests OMP's own commands when you type / in Chat, instead of falling back to the generic clear/help menu. OMP still runs the commands in its terminal.

What Changed

  • Add a curated 22-command OMP catalog shared by desktop and mobile, checked against OMP v18.1.21.
  • Describe terminal-only selectors accurately and distinguish model selection, session switching, and priority service tier.
  • Cover OMP catalog membership, case-insensitive prefix filtering, and desktop/mobile send classification, including /switch @smol versus unsupported /smol.
  • Preserve existing PTY transport, skill profiles, live-catalog precedence, and SSH support gates.

Why

OMP previously inherited generic suggestions, including /help, which is not a built-in in the checked release. This small terminal-backed change does not implement RPC discovery or in-chat command output.

Related work: #18618 (RPC adapter), #17609 and #20612 (model controls). This PR does not replace or depend on them.

Linked Issue

Fixes #20627

Visual Proof

Before After
OMP slash picker before OMP slash picker after

These are GitHub attachments, not committed files. The displayed conversation is an explicit synthetic fixture in a disposable non-Git folder.

Testing

  • Tested locally on macOS arm64 using a hidden Electron renderer and Playwright CDP; no test windows shown.
  • Automated classification/catalog regression coverage added to existing desktop/shared and mobile suites.
  • Node 24.21.0; pnpm 12.0.0; OMP 18.1.21.
  • Passed: pnpm tc; oxlint on the three changed files; oxfmt applied to those files.
  • Passed: mobile classification suite, 6 tests.
  • Passed: desktop/shared targeted suites, 93 tests across 4 files.
  • Rendered checks: 22 entries, search in light/dark mode, Arrow navigation, Escape without dispatch, Tab completion without dispatch, exact single-line clear/text/delayed-Enter PTY writes, cleared drafts, and no optimistic user bubbles.
  • Bare /model opened OMP's Terminal selector. /context returned its no-selected-model warning in the credential-free session.
  • /fast status was delivered, but OMP argument completion required one additional Enter in Terminal before reporting Fast mode is off. The existing transport is intentionally unchanged; a Chat dispatch marker does not prove successful command execution.
  • Existing description matching means /mod ranks /model first and also returns /switch and /plan.
  • Not run locally: full lint/test/build suites, Linux/Windows runtime checks, SSH end-to-end, or mobile visual checks. CI must cover broader checks.

AI Disclosure

OpenAI GPT-6 Astra assisted through Oh My Pi with source research, the catalog/test patch, staged-diff review, and publication. The targeted checks and hidden-renderer smoke verification were agent-run.

Review

  • Cross-platform and SSH/local: no path, shortcut, transport, execution-host ownership, or direct-SSH OMP gate changes. Folder workspaces remain supported.
  • Agents and integrations: other agents' catalogs, live-session command authority, Git providers, and skill profiles are unchanged. The same shared catalog supplies mobile.
  • Performance and UI: one static catalog; existing picker rendering, filtering, tokens, and mobile result cap are reused. Desktop light/dark behavior was checked.
  • Security: no new IPC, network probe, local command execution, dependency declaration, or skill-installer code. OMP still owns command validation and execution.

No release/version changes.

Agent skill upstream boundary

  • Not applicable: no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation are copied or translated.

Notes

The catalog is a curated v18.1.21 baseline, not plugin/skill discovery or per-version negotiation. Interactive command output and selectors remain in Terminal view. The initial smoke PTY picked up an ambient plugin configuration; it was stopped, and the subsequent run used an explicit env -i launch with isolated HOME and PI_CODING_AGENT_DIR.

Author

Nafisul Haque — @nafisul-haque

X/Twitter: not provided; no handle is listed on my GitHub profile.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots attached through GitHub
  • AI-assisted staged-diff review completed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • Full pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass, or CI coverage verified

@nwparker

Copy link
Copy Markdown
Contributor

Superseded by merged #20672 (f1a901e97451), which adds the verified OMP slash-command catalog and current-main desktop/mobile coverage. The issue is already fixed in main, so this conflicting draft should not be merged separately; credit to the original author for the catalog and proof direction.

@nwparker

Copy link
Copy Markdown
Contributor

Closing as superseded by merged #20672; the issue is fixed on current main.

@nwparker nwparker closed this Sep 19, 2026
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.

OMP Chat UI slash picker only shows /clear and /help

2 participants