Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): sticky provider options and Grok composer affordances #5426

ClosedEnzoTironi(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/5426/headopened View on GitHub

Showing 4 changed files with 28 additions and 16 deletions (loading 2).

x
0 of 4 viewed, 4 left
28 additions and 15 deletionsapps/web/src/components/chat/ChatComposer.tsxModified
View file
@@ -1084,6 +1084,9 @@
if (composerTrigger.kind === "slash-command") {
+ // Plan/default only matter when the provider honors interactionMode.
+ // Grok maps plan → `/plan` text on send; OpenCode and others with
+ // showInteractionModeToggle=false hide these no-op built-ins.
const builtInSlashCommandItems = [
id: "slash:model",
@@ -1092,20 +1095,24 @@
label: "/model",
description: "Switch response model for this thread",
- {
- id: "slash:plan",
- type: "slash-command",
- command: "plan",
- label: "/plan",
- description: "Switch this thread into plan mode",
- },
- {
- id: "slash:default",
- type: "slash-command",
- command: "default",
- label: "/default",
- description: "Switch this thread back to normal build mode",
- },
+ ...(composerProviderControls.showInteractionModeToggle