@@ -13,11 +13,9 @@ import "../../styles/prism-material-oceanic.css";
1313import "./../../styles/HomeInput.css" ;
1414
1515import { HomeInputProps , iconMap , QuickTask } from "../../models/homeInput" ;
16- import { TeamConfig } from "../../models/Team" ;
1716import { TaskService } from "../../services/TaskService" ;
1817import { NewTaskService } from "../../services/NewTaskService" ;
1918import { RAIErrorCard , RAIErrorData } from "../errors" ;
20- import { apiService } from "../../api/apiService" ;
2119
2220import ChatInput from "@/coral/modules/ChatInput" ;
2321import InlineToaster , { useInlineToaster } from "../toast/InlineToaster" ;
@@ -78,29 +76,24 @@ const HomeInput: React.FC<HomeInputProps> = ({
7876 input . trim ( ) ,
7977 selectedTeam ?. team_id
8078 ) ;
79+ console . log ( "Plan created:" , response ) ;
8180 setInput ( "" ) ;
8281
8382 if ( textareaRef . current ) {
8483 textareaRef . current . style . height = "auto" ;
8584 }
8685
87- if ( response . session_id && response . session_id !== null ) {
86+ if ( response . plan_id && response . plan_id !== null ) {
8887 showToast ( "Plan created!" , "success" ) ;
8988 dismissToast ( id ) ;
9089
91- // Navigate to create page (no team ID in URL anymore)
92- console . log ( 'HomeInput: Navigating to plan creation with team:' , selectedTeam ?. name ) ;
93- console . log ( 'HomeInput: Navigating to plan creation with session:' , response . session_id ) ;
94- console . log ( 'HomeInput: Plan created with session:' , response . session_id ) ;
95-
96- navigate ( `/plan/${ response . session_id } ` ) ;
90+ navigate ( `/plan/${ response . plan_id } ` ) ;
9791 } else {
9892 showToast ( "Failed to create plan" , "error" ) ;
9993 dismissToast ( id ) ;
10094 }
10195 } catch ( error : any ) {
10296 dismissToast ( id ) ;
103-
10497 // Check if this is an RAI validation error
10598 let errorDetail = null ;
10699 try {
0 commit comments