Merge pull request #6957 from uinstinct/submit-message-listener
chore: remove submit message listener
This commit is contained in:
commit
06ec34e91c
2 changed files with 0 additions and 12 deletions
|
|
@ -52,7 +52,6 @@ export type ToIdeFromWebviewProtocol = ToIdeFromWebviewOrCoreProtocol & {
|
|||
|
||||
export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & {
|
||||
setInactive: [undefined, void];
|
||||
submitMessage: [{ message: any }, void]; // any -> JSONContent from TipTap
|
||||
newSessionWithPrompt: [{ prompt: string }, void];
|
||||
userInput: [{ input: string }, void];
|
||||
focusContinueInput: [undefined, void];
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ import { streamResponseAfterToolCall } from "../redux/thunks/streamResponseAfter
|
|||
import { store } from "../redux/store";
|
||||
import { cancelStream } from "../redux/thunks/cancelStream";
|
||||
import { refreshSessionMetadata } from "../redux/thunks/session";
|
||||
import { streamResponseThunk } from "../redux/thunks/streamResponse";
|
||||
import { updateFileSymbolsFromHistory } from "../redux/thunks/updateFileSymbols";
|
||||
import { findToolCallById, logToolUsage } from "../redux/util";
|
||||
import {
|
||||
|
|
@ -220,16 +219,6 @@ function ParallelListeners() {
|
|||
dispatch(setTTSActive(status));
|
||||
});
|
||||
|
||||
// TODO - remove?
|
||||
useWebviewListener("submitMessage", async (data) => {
|
||||
void dispatch(
|
||||
streamResponseThunk({
|
||||
editorState: data.message,
|
||||
modifiers: { useCodebase: false, noContext: true },
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
useWebviewListener("addContextItem", async (data) => {
|
||||
dispatch(
|
||||
addContextItemsAtIndex({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue