|
@@ -13,6 +13,7 @@ import { MessageID, PartID } from "@/session/schema"
|
|
|
import { createStore, produce } from "solid-js/store"
|
|
import { createStore, produce } from "solid-js/store"
|
|
|
import { useKeybind } from "@tui/context/keybind"
|
|
import { useKeybind } from "@tui/context/keybind"
|
|
|
import { usePromptHistory, type PromptInfo } from "./history"
|
|
import { usePromptHistory, type PromptInfo } from "./history"
|
|
|
|
|
+import { assign } from "./part"
|
|
|
import { usePromptStash } from "./stash"
|
|
import { usePromptStash } from "./stash"
|
|
|
import { DialogStash } from "../dialog-stash"
|
|
import { DialogStash } from "../dialog-stash"
|
|
|
import { type AutocompleteRef, Autocomplete } from "./autocomplete"
|
|
import { type AutocompleteRef, Autocomplete } from "./autocomplete"
|
|
@@ -643,10 +644,7 @@ export function Prompt(props: PromptProps) {
|
|
|
type: "text",
|
|
type: "text",
|
|
|
text: inputText,
|
|
text: inputText,
|
|
|
},
|
|
},
|
|
|
- ...nonTextParts.map((x) => ({
|
|
|
|
|
- id: PartID.ascending(),
|
|
|
|
|
- ...x,
|
|
|
|
|
- })),
|
|
|
|
|
|
|
+ ...nonTextParts.map(assign),
|
|
|
],
|
|
],
|
|
|
})
|
|
})
|
|
|
.catch(() => {})
|
|
.catch(() => {})
|