Skip to content

Commit 2ecd115

Browse files
committed
chore: cleanup
1 parent d09cf51 commit 2ecd115

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/app/src/pages/session/use-session-commands.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { showToast } from "@opencode-ai/ui/toast"
1919
import { findLast } from "@opencode-ai/util/array"
2020
import { extractPromptFromParts } from "@/utils/prompt"
2121
import { UserMessage } from "@opencode-ai/sdk/v2"
22-
import { combineCommandSections } from "@/pages/session/helpers"
2322
import { canAddSelectionContext } from "@/pages/session/session-command-helpers"
2423

2524
export 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
}

0 commit comments

Comments
 (0)