File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/app/src/pages/session Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import { showToast } from "@opencode-ai/ui/toast"
1919import { findLast } from "@opencode-ai/util/array"
2020import { extractPromptFromParts } from "@/utils/prompt"
2121import { UserMessage } from "@opencode-ai/sdk/v2"
22- import { combineCommandSections } from "@/pages/session/helpers"
2322import { canAddSelectionContext } from "@/pages/session/session-command-helpers"
2423
2524export type SessionCommandContext = {
@@ -450,7 +449,7 @@ export const useSessionCommands = (input: SessionCommandContext) => {
450449 } )
451450
452451 input . command . register ( "session" , ( ) =>
453- combineCommandSections ( [
452+ [
454453 sessionCommands ( ) ,
455454 fileCommands ( ) ,
456455 contextCommands ( ) ,
@@ -460,6 +459,6 @@ export const useSessionCommands = (input: SessionCommandContext) => {
460459 permissionCommands ( ) ,
461460 sessionActionCommands ( ) ,
462461 shareCommands ( ) ,
463- ] ) ,
462+ ] . flatMap ( ( x ) => x ) ,
464463 )
465464}
You can’t perform that action at this time.
0 commit comments