@@ -12,7 +12,7 @@ import React from "react";
1212import { render , screen , fireEvent , waitFor } from "@testing-library/react" ;
1313import { describe , it , expect , vi , beforeEach } from "vitest" ;
1414import InputPrompt , { type InputPromptProps } from "./InputPrompt" ;
15- import type { SkillInfo } from "@/webview/types" ;
15+ import type { SessionMessage , SkillInfo } from "@/webview/types" ;
1616
1717// Mock dependencies
1818vi . mock ( "@/webview/components/SkillsPanel" , ( ) => ( {
@@ -136,8 +136,6 @@ const defaultProps: InputPromptProps = {
136136 selectedSkills : [ ] as SkillInfo [ ] ,
137137 availableSkills : [ ] as SkillInfo [ ] ,
138138 pendingPermissionReply : null ,
139- askPermissions : [ ] ,
140- activeSessionStatus : null ,
141139 tokenTelemetry : {
142140 model : "test" ,
143141 thinkingEnabled : false ,
@@ -413,7 +411,7 @@ describe("InputPrompt", () => {
413411
414412 describe ( "Loading history from messages" , ( ) => {
415413 it ( "loads user messages from messages prop into history" , async ( ) => {
416- const messages = [
414+ const messages : SessionMessage [ ] = [
417415 { role : "user" , content : "First message from history" } ,
418416 { role : "assistant" , content : "Assistant response" } ,
419417 { role : "user" , content : "Second message from history" } ,
@@ -456,7 +454,7 @@ describe("InputPrompt", () => {
456454 } ) ;
457455
458456 it ( "ignores non-user messages when building history" , async ( ) => {
459- const messages = [
457+ const messages : SessionMessage [ ] = [
460458 { role : "user" , content : "User message" } ,
461459 { role : "assistant" , content : "Should be ignored" } ,
462460 { role : "tool" , content : "Should also be ignored" } ,
0 commit comments