Skip to content

fix(mobile): show the session's commands and skills in the phone's / menu - #25335

Closed
brennanb2025 wants to merge 11 commits into
mainfrom
brennanb2025/mobile-slash-catalog-23219
Closed

brennanb2025 wants to merge 11 commits into
mainfrom
brennanb2025/mobile-slash-catalog-23219

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1280 $\color{#cf222e}{\Huge{\mathbf{−}}}$​211 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1069
Prod 24 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​748 $\color{#cf222e}{\Huge{\mathbf{−}}}$​453 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​295

ELI5

On the phone, typing / in a Claude chat only offered four commands (/model, /effort, /clear, /compact), while the desktop app, on the very same chat, offers everything that Claude session actually loaded: its built-in commands, the repo's own .claude/commands, plugin commands, and a separate list of skills.

The host was already sending that full list to the phone. The phone stored it and then never showed it. This PR shows it, using the same menu code as desktop.

The problem

What you saw: in a structured Claude chat on the phone, / showed /model, /effort, /clear, /compact and nothing else. Your custom commands and every skill were missing, so the only way to run one was to type its exact name from memory. Desktop showed the full list for the same chat.

Why it happened: Claude reports its command and skill catalog when a session starts (and again whenever it changes). The host forwards that catalog to every client on the chat's live update stream, and the phone already saved it into its chat state. But the phone's chat hook never passed it on, so the phone's composer built its / menu from the four host-owned commands alone (capped at 12 rows). Desktop's menu logic lived in desktop-only code, so the phone couldn't reuse it.

What this changes for you

Situation on the phone Before After
Structured Claude chat, type / /model /effort /clear /compact A Commands group with every command the session reported (with its description and argument hint), then a Skills group with every reported skill and its description. Same list and same ranking rules as desktop.
Type after /, e.g. /rev Prefix match over the 4 commands Both groups filter as you type, ranked like desktop: exact name, prefix, substring, letters in order, then description. Filtering covers the whole catalog.
Long catalogs Cut off at 12 rows Up to 50 rows per group (desktop's limit) in a scrolling list that keeps the same height.
Claude chat whose agent hasn't started yet 4 commands The host's list of the workspace's commands and skills, as on desktop.
Pick a row Inserts /name Inserts the command or skill (/name for Claude), ready for arguments. You tap Send.
Send a picked command or skill n/a Exactly the same as typing that text yourself: one message row, as on desktop.
Codex chats, terminal-backed chats, or a host older than the catalog Same commands, 12-row prefix filter Same commands as before; the list now uses desktop's ranking and 50-row limit. No headings (there is only one group).

Desktop changes in one small way: a skill the session reported but whose file Orca couldn't read a description from now shows (and can be searched by) the description the session gave, instead of a blank line.

What changed (mechanism)

  • One menu policy for both apps. Desktop's catalog selection (session report first, otherwise the host-owned fallback, or the curated list for terminal chats) and its row builder (grouping, ranking, name collisions, safe tokens, 50-per-group limit) moved from the desktop renderer into src/shared (native-chat-composer-catalog.ts, native-chat-picker-items.ts, plus the small text-sorting helper they used). Desktop now calls the shared versions through thin wrappers; existing import paths keep working.
  • Reported skills keep their description. The shared helper now returns { name, description } for reported skills, so the phone (which never scans the disk) has something to show.
  • The phone passes the catalog through. useMobileStructuredAgentSession now returns one slashCatalog (the session's reported commands, which it already received, plus the host-supported conversation commands), and it flows controller → overlay → chat view → composer, defined only for structured chats. A new pure module, mobile-native-chat-slash-menu.ts, builds the phone's menu by calling the shared selection and row builder.
  • Phone list UI. The suggestion list is now a virtualized section list with Commands / Skills headings (shown when the session reports any skills, decided per chat rather than per keystroke so they don't flicker as you type; a group with no matching rows is hidden), the argument hint beside the token, and a one-line description. The catalog and the rows are memoized on stable inputs, so the live transcript updating underneath an open menu doesn't rebuild them.
  • No change to how sends work. A picked command or skill is sent exactly like typed text. The host saves the message text as the chat's user row before it dispatches, which is what clears the phone's "sending" bubble, so no new control path is needed.
  • No wire change. No new RPC, field, or permission. The phone only starts reading a field the host already sends. A host from before the catalog existed simply doesn't send it, and the phone shows today's fallback menu. Old phones paired with a new host see nothing different, because the host sends exactly what it sent before.

Why this approach

  • The session's own report is the only list that matches what that session actually loaded (plugin skills, setting filters, commands that only work in the terminal UI already removed), and it refreshes itself on the stream. So the phone reads it rather than scanning the disk or keeping a bigger hand-written list.
  • Moving desktop's policy into shared code means the phone can't drift from desktop. Writing a separate phone-only merge would have created a second copy of the same rules.
  • This follows the common pattern: the host owns the command/skill catalog, every client including mobile consumes the same host-published list through shared client code, commands and skills are kept apart, and a pick inserts text that is sent as an ordinary message.

Differences from the common pattern, labelled:

  • Intended: the catalog comes from the live session's own report pushed on the existing stream (plus a host-side folder scan when no agent is running), not a client-pulled probe. This is the existing desktop design; this PR doesn't change it.
  • Intended: desktop and phone share the row builder itself, not just the selection helpers, so the two lists can't diverge.
  • Intended: a tap inserts /name and you tap Send (desktop can send straight from the highlighted row with Enter; a phone has no Enter-on-row).
  • Intended: the phone opens the menu only for a / at the start of the message (its existing behaviour; Claude only runs commands there).
  • Intended: the phone shows the Commands / Skills headings only in chats whose session reports skills; Codex, terminal-backed and older-host chats (one group only) show no heading. Desktop shows a Commands heading there too because it usually has a skills section from its disk scan.
  • Intended: with no disk scan, the phone orders skills alphabetically (desktop orders by where the skill lives, then name), shows only the session's descriptions, and keeps a not-yet-classified name as a command until Claude's startup report classifies it (usually within seconds). Past 50 skills the surviving set can therefore differ from desktop.
  • Temporary: Codex chats and terminal-backed chats on the phone still get no Skills group (desktop shows skills it finds on disk there). Fixing that needs the Codex chat to report its own catalog, or a new host-side skills read for the phone with its own security review. Follow-up: STA-9461.

Known limitations this PR does not change (they already affect every phone message, typed or picked):

  • If the host accepts a message and then fails to deliver it (for example an unreadable image), the phone's "sending" bubble can stay. Open PR fix(native-chat): the phone keeps a message the host did not deliver, and a failed /compact is said once #24918 owns that.
  • In a very long chat (the phone's 1,024-row window), sending text identical to an old row that the same update drops can leave the "sending" bubble, because the phone matches bubbles by counting identical rows. The real fix is matching by message id, which belongs to the phone's send work (STA-9462).

Community PRs. Thanks to @dudupii (#19680): the shared nativeChatComposerCatalog function (name and shape) and exposing the stream's commands from the phone's chat hook come from that PR. Thanks to @MaoCreate-Wen (#19207) for identifying the gap and the pickable-skill idea. Not carried over: treating reported commands and skills as host controls (that would drop the message row and could re-send text the host already delivered), a phone-only copy of desktop's merge rules, letting any paired phone run a host disk scan of a caller-chosen folder (skills.discover), and a larger hand-written Claude list (it would offer commands Claude keeps for its own terminal screen, like /exit and /login, in chat).

STA-8016 (the phone re-detecting agents each time it opens a new tab) is a different code path and is not touched.

Linked Issue

Fixes #23219

Visual Proof

Phone: Android emulator, the phone app built from this branch, paired to a desktop Orca built from this branch (commit 6e81942; the later merge of main touches none of these files). The chat runs in a test repo with one custom command (/qa-deploy-check) and one skill (/qa-release-notes).

Before (main's phone code, same desktop, same chat): typing / offers only the four host commands, and /qa finds nothing, although the session reported both the custom command and the skill.

Before: the phone's / menu shows only /model, /effort, /clear, /compact

Before: /qa shows no suggestions

After: typing / shows what the session reported. Your own command comes first, with its description, under a Commands heading.

After: the phone's / menu lists the session's commands

After: filtering. /qa narrows the list to the custom command (Commands) and the skill (Skills).

After: /qa shows the custom command and the skill under their headings

After: picking the skill and sending. Tapping /qa-release-notes fills the box; adding for v1 and sending produces one message row and the skill's reply (QA SKILL RAN). Thirty seconds later there was still no leftover "sending" bubble. Picking /qa-deploy-check behaved the same way.

After: one message row for the picked skill and the skill's reply

Unchanged: /model is still the host's model control. Sending /model opens the model sheet and adds no message row.

/model still opens the model sheet

Desktop, same chat, for comparison. Desktop's list starts with the same commands in the same order and shows the same project skill (desktop orders skills by where they live; the phone orders them alphabetically, as noted above).

Desktop / menu, Commands

Desktop / menu, Skills

Not tested on the device: the fallback list for terminal-backed chats. The phone only switches a terminal chat to chat view with a long-press, and the emulator tool can't long-press on Android. Unit tests cover it (mobile-native-chat-slash-menu.test.ts: older host, terminal list, Codex).

Testing

  • Shared: native-chat-composer-catalog.test.ts, native-chat-picker-items.test.ts (builder cases moved from desktop, plus reported descriptions, search by description, 50 cap with a filtered match past row 50), native-chat-slash-commands.test.ts.

  • Phone: mobile-native-chat-slash-menu.test.ts (old host fallback by what the host supports, Codex /goal, terminal list, alphabetical skills, empty report shows nothing rather than the fallback), MobileNativeChatComposer.slash-menu.test.ts (headings, hint, description, picks, render stability while the transcript updates), use-mobile-structured-agent-session-commands.test.tsx (catalog arrives, stays the same object across unrelated updates, clears correctly), send-bridge cases (picked command/skill behaves like typed text; host commands unchanged), and mobile-structured-slash-text-send-retirement.test.tsx, which runs the real reducer, projection, pending-bubble logic and send bridge together to pin that slash text as a pick inserts it (/review, /my-skill args, an image skill, a queued send, a no-reply /context) ends with one message row and no leftover bubble.

  • Desktop regression tests for the composer catalog, picker state and structured session pass unchanged apart from the rename.

  • Typecheck (web, node, mobile, mobile tests), full oxlint, and the changed-code quality checks pass.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

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

Security: no new mobile RPC surface. Cross-platform: client-only; no paths or shortcuts. SSH/WSL: structured Claude chats aren't offered there, so those stay on the terminal list. Folder workspaces: nothing assumes git. Mixed versions: covered above. Performance: menu memoized on stable references; virtualized list.

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)

Author: @BrennanKB5

brennanb2025 and others added 7 commits October 4, 2026 17:33
…h mobile

Moves the composer's catalog selection (session report vs. structured
fallback vs. curated list) and the grouped, ranked, collision-aware picker
row builder from the desktop renderer into src/shared, so the phone can
build its `/` menu with the same policy instead of a copy. The renderer
keeps its import paths through re-exports.

Session-reported skills now carry their reported description. Desktop
still shows the disk scan's description wherever it has one; a reported
skill with no disk description now shows the session's, which also makes
it findable by description in the menu.
…menu

In a structured Claude chat the phone's `/` menu offered only /model,
/effort, /clear and /compact, although the host already streams the full
catalog the running session reported. The phone now exposes that catalog
from its structured session hook and builds the menu with the shared
desktop policy: a Commands group (with argument hint and description) and
a Skills group, ranked the same way, up to 50 rows per group in a
virtualized list. Picking a row inserts its token; sending it takes the
same path as typing the same text.

Older hosts, Codex structured chats and terminal chats keep their current
command source. The menu is memoized on stable inputs so streamed
transcript frames do not rebuild it.
…ne heading

- The structured session hook now returns one memoized `slashCatalog`
  (reported commands + host conversation commands); the controller gates it
  once by lane and threads it to the composer, so the menu no longer waits on
  the model picker loading. Removes `structuredLaneCommands`.
- The catalog selection is memoized apart from the query, so typing only
  re-ranks rows.
- Commands / Skills headings show only when a Skills group is showing, and
  carry the header accessibility role.
- Section shaping moves out of the suggestions component into the hook.
- The send-retirement test is renamed and retitled to what it pins
  (slash-prefixed text retiring against the host row); the inert catalog
  fixture and catalog-change case are gone.
- `sessionReportedSkills` returns `NativeChatSessionSkill`; the command-name
  comment no longer claims names are always curated.
…yped query

Headings now show whenever the session reports skills, so they no longer
appear and disappear as the query filters groups out; empty groups still drop.

Co-Authored-By: Claude <noreply@anthropic.com>
@brennanb2025
brennanb2025 marked this pull request as ready for review October 5, 2026 07:05
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

We couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting @coderabbitai full review.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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: 29bcc709-80fc-4443-b5dc-088e79196cbb
📥 Commits

Reviewing files that changed from the base of the PR and between e02adc5 and 0f825f0.

📒 Files selected for processing (36)
  • mobile/src/session/MobileNativeChatComposer.slash-menu.test.ts
  • mobile/src/session/MobileNativeChatComposer.test.ts
  • mobile/src/session/MobileNativeChatComposer.tsx
  • mobile/src/session/MobileNativeChatComposerSuggestions.tsx
  • mobile/src/session/MobileNativeChatOverlay.tsx
  • mobile/src/session/MobileNativeChatView.tsx
  • mobile/src/session/mobile-file-search-owner-cleanup.test.tsx
  • mobile/src/session/mobile-native-chat-autocomplete.test.ts
  • mobile/src/session/mobile-native-chat-autocomplete.ts
  • mobile/src/session/mobile-native-chat-controller-contract.ts
  • mobile/src/session/mobile-native-chat-send-classification.ts
  • mobile/src/session/mobile-native-chat-slash-menu.test.ts
  • mobile/src/session/mobile-native-chat-slash-menu.ts
  • mobile/src/session/mobile-structured-slash-text-send-retirement.test.tsx
  • mobile/src/session/use-mobile-native-chat-composer-autocomplete.ts
  • mobile/src/session/use-mobile-native-chat-controller.ts
  • mobile/src/session/use-mobile-structured-agent-options.ts
  • mobile/src/session/use-mobile-structured-agent-session-commands.test.tsx
  • mobile/src/session/use-mobile-structured-agent-session.ts
  • mobile/src/session/use-mobile-structured-native-chat-send-bridge.test.ts
  • mobile/src/test-support/section-list-test-double.ts
  • src/renderer/src/components/native-chat/NativeChatComposer.tsx
  • src/renderer/src/components/native-chat/native-chat-composer-state.test.ts
  • src/renderer/src/components/native-chat/native-chat-composer-state.ts
  • src/renderer/src/components/native-chat/native-chat-picker-items.ts
  • src/renderer/src/components/native-chat/use-native-chat-composer-catalog.test.tsx
  • src/renderer/src/components/native-chat/use-native-chat-composer-catalog.ts
  • src/renderer/src/components/native-chat/use-native-chat-picker-state.ts
  • src/renderer/src/lib/locale-text-collators.ts
  • src/shared/locale-text-collation.ts
  • src/shared/native-chat-composer-catalog.test.ts
  • src/shared/native-chat-composer-catalog.ts
  • src/shared/native-chat-picker-items.test.ts
  • src/shared/native-chat-picker-items.ts
  • src/shared/native-chat-slash-commands.test.ts
  • src/shared/native-chat-slash-commands.ts
💤 Files with no reviewable changes (1)
  • src/renderer/src/components/native-chat/native-chat-composer-state.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The change adds shared catalog and picker logic for slash commands and skills, then routes structured session catalog data to desktop and mobile composers. The mobile composer now builds grouped slash-menu and file-autocomplete sections through a hook and renders them with a section list. New tests cover catalog selection, menu behavior, and structured-send outcomes.

Priority: ➖ Normal

Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to 0f825

The phone's slash menu now shows the commands and skills the session reports, grouped and searchable. Older hosts, Codex chats, and terminal-backed chats keep their previous command lists. No concrete defect was found, so the change appears ready to merge with normal checks.

Security Architecture Review

Security architecture risk: 🟡 Moderate · up to 0f825

The phone now inserts repository-supplied command names into drafts without the hidden-character and multiline-token checks applied to skills. A misleading menu entry can therefore insert more text than the user expects. Sending still requires user action and uses the existing session controls.

Retained concerns

  • Medium · security · inferred: The newly exposed mobile catalog lacks a token-safety boundary for command names. Where the at-rest catalog is enabled, repository command filenames containing newlines or display-control characters can become single-line menu entries whose complete text is inserted into the draft. Skills receive token validation, but commands do not. Selection and submission remain user-driven, yet the displayed choice can conceal additional text or a different identifier. Desktop already had the underlying behavior; this PR expands its exposure to mobile.
Security review details

Security Blast Radius

  • inferred — The supported exposure is a user interacting with a structured mobile chat backed by a host’s workspace/account command catalog. An attacker would need influence over a catalog entry, such as a repository command filename, plus user selection and submission. The inspected path does not grant a new caller identity or direct execution authority; downstream effects depend on the existing session’s permissions.

Security Findings and Attack Paths

  • inferred — On the at-rest catalog branch, a crafted command filename can supply a newline-containing or display-spoofing name. Publication preserves that name, the command row displays its token on one line, and selection inserts the complete token. If submitted as ordinary session text, embedded content is preserved in the user-message body. This supports a misleading-selection/draft-injection concern, not a verified permission bypass or automatic code-execution exploit.

Trust Boundaries and Controls

  • observed — Catalog selection does not itself determine privileged dispatch. Existing host-command handling retains attachment restrictions, active-work/prompt admission checks, pending-operation serialization, and runtime fences. Other reported tokens use the existing session-message path.
  • observed — Mobile catalog state is selected by a key containing source identity, agent, and session ID. Subscription callbacks update their captured key, and cleanup closes the previous stream and releases its hold. These ownership controls counter cross-session leakage from delayed catalog updates.

Resilience and Maintainability Implications

  • observed — The existing send journal keys intent by session, retains operation identity for replay, checks payload fingerprints before mutation, and preserves recovery behavior after uncertain delivery or withdrawn queued sends. The new catalog exposure does not replace those controls.

Hardening Proposals

  • proposed — Apply bounded token-safe rejection to command names before constructing selectable rows, including at-rest entries. Reject unsafe identifiers rather than stripping or truncating them, which could change the invoked target. Preserve the existing display sanitization for descriptions and hints, and check hostile-name cases across both consumers.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 29.51% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 61 functions across 35 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: showing session-reported commands and skills in the mobile slash menu.
Description check ✅ Passed The description explains the problem, user-visible changes, implementation, rationale, linked issue, visual proof, testing, and relevant limitations. It provides the required information even though s…
Linked Issues check ✅ Passed Issue [#23219] requires the mobile / menu to show the session-reported commands and skills, while retaining the fallback when no report is available. useMobileStructuredAgentSession exposes `state…
Out of Scope Changes check ✅ Passed The shared catalog and picker extraction supports using the same menu policy on mobile and desktop. Preserving reported skill descriptions supports the mobile skill rows. Composer UI changes and send-…
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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 critical issues — one stale script reference worth cleaning up.

Reviewed changes

  • Shared / menu policy — desktop's catalog selection and row builder move into src/shared (native-chat-composer-catalog.ts, native-chat-picker-items.ts) with a new shared collator (locale-text-collation.ts); the renderer re-exports them so existing import paths keep working.
  • Reported skills keep their description — sessionReportedSkills now returns { name, description? }, and the shared row builder fills a blank disk description with the session's, so the phone (which never scans disk) has row text.
  • Phone catalog plumbing — useMobileStructuredAgentSession exposes one memoized slashCatalog (sessionCommands + conversationCommands), gated once by lane in the controller and threaded overlay → view → composer.
  • Phone / menu UI — mobile-native-chat-slash-menu.ts builds rows through the shared builder, and MobileNativeChatComposerSuggestions.tsx becomes a memoized virtualized SectionList with Commands/Skills headings, argument hint, and a one-line description.
  • Tests — shared builder/catalog cases move from the desktop test file, plus new phone menu, hook-reference-stability, and slash-send-retirement coverage.

ℹ️ Stale benchmark still imports the removed rankSlashCommandSuggestions

config/scripts/mobile-file-ranking-benchmark.mjs still lists rankSlashCommandSuggestions from mobile/src/session/mobile-native-chat-autocomplete.ts (lines 26 and 38), but this PR deletes that function. Running the benchmark now resolves the "after" implementation to undefined and throws TypeError: after is not a function at the first differential case. It is not wired to package.json or CI, so nothing gates on it — it is a cleanup item, not a merge blocker.

Technical details
# Stale benchmark entry for a removed function

## Affected sites
- `config/scripts/mobile-file-ranking-benchmark.mjs:26` — still enumerates `['mobile/src/session/mobile-native-chat-autocomplete.ts', 'rankSlashCommandSuggestions']`.
- `config/scripts/mobile-file-ranking-benchmark.mjs:38` — still branches on `name === 'rankSlashCommandSuggestions'` to shape candidates.

## Required outcome
- Running the benchmark against a baseline must not throw on a function the current tree no longer exports.

## Suggested approach (optional)
- Drop the `rankSlashCommandSuggestions` entry (and its `slash` branch), since the mobile-specific ranker was replaced by the shared `buildNativeChatPickerItems`; or repoint the benchmark at the shared builder if a differential comparison is still wanted.

## Open questions for the human (optional)
- Was `mobile-file-ranking-benchmark.mjs` meant to be retired along with the mobile-only ranker, or does it still have a use?

Pullfrog  | Fix it ➔ | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

…lash-catalog-23219-2

# Conflicts:
#	mobile/src/session/MobileNativeChatComposer.tsx
#	mobile/src/session/MobileNativeChatOverlay.tsx
#	mobile/src/session/mobile-native-chat-controller-contract.ts
#	mobile/src/session/mobile-native-chat-send-classification.ts
#	mobile/src/session/use-mobile-native-chat-controller.ts
#	mobile/src/session/use-mobile-structured-agent-session.ts
#	src/renderer/src/components/native-chat/NativeChatComposer.tsx
#	src/renderer/src/components/native-chat/use-native-chat-picker-state.ts
… answer

Main dropped commands only the desktop chat answers (OMP and OpenClaude
/context) from the phone's terminal-chat list. The shared / catalog
selector now takes that lane's curated list from its caller: desktop
passes the verified catalog, the phone passes getMobileNativeChatCommands.
… / menu inputs

A session-reported command name with whitespace, bidi or zero-width
characters became a / menu row whose tap inserted text the row never
showed. Command names now pass the same token-safety check skill names
do, on desktop and the phone.

Also: test OMP and OpenClaude terminal chats on the phone have no
/context row, drop the phone session hook's redundant catalog memo,
correct two comments, and remove an unchecked test type assertion.
…ntext

The desktop chat answers /context itself, so its terminal-chat menu keeps
the row the phone now leaves out.
@mysteriousHerb

Copy link
Copy Markdown

strangely how inconsistent the desktop and phone chat ui differs. could you please fix the merge conflict and we hope this will get merged?

@nwparker

nwparker commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Thanks for this! The same behavior landed in #30359 (cf7423c), with follow-ups such as #30937: the mobile structured composer reads the session's reported commands and skills and builds the / menu with the shared desktop picker. Closing as superseded.

@nwparker nwparker closed this Nov 5, 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.

Mobile native chat / menu ignores the session-reported slash-command/skill catalog (only shows /model, /effort, /clear, /compact)

3 participants