fix(app): enable composer shortcuts on drafts (#33956)

This commit is contained in:
Brendan Allan
2026-06-26 04:05:36 +08:00
committed by GitHub
parent b60c0a5e8c
commit fae100fe72
4 changed files with 74 additions and 49 deletions
+3
View File
@@ -13,6 +13,7 @@ import {
SessionComposerRegion,
} from "@/pages/session/composer"
import { useSessionKey } from "@/pages/session/session-layout"
import { useComposerCommands } from "@/pages/session/use-composer-commands"
/**
* The `/new-session` draft page. Unlike `session.tsx`, this only renders the prompt
@@ -28,6 +29,8 @@ export default function NewSessionPage() {
const route = useSessionKey()
const [searchParams, setSearchParams] = useSearchParams<{ draftId?: string; prompt?: string }>()
useComposerCommands()
let inputRef: HTMLDivElement | undefined
const composer = createSessionComposerState()