diff --git a/ai-hub/app/core/pipelines/question_decider.py b/ai-hub/app/core/pipelines/question_decider.py
index f5db8e2..56b5d4b 100644
--- a/ai-hub/app/core/pipelines/question_decider.py
+++ b/ai-hub/app/core/pipelines/question_decider.py
@@ -32,7 +32,7 @@
* The `code_diff` field must be empty.
* **Decision: 'code_change'**
- * Choose this if the user's request involves modifying or adding to the code (e.g., "fix this bug," "implement this feature," "refactor this function").
+ * Choose this if the user's request involves modifying or adding to the code (e.g., "fix this bug," "implement this feature," "refactor this function", "show me full code").
* You must have all the relevant files with content in `retrieved_paths_with_content` to propose the change.
* The `answer` field can be an optional, high-level summary of the change.
* The `code_diff` field must contain the full and complete git diff showing the exact modifications, could be multiple file diffs.
diff --git a/ui/client-app/src/components/ChatArea.css b/ui/client-app/src/components/ChatArea.css
new file mode 100644
index 0000000..4b4c6d6
--- /dev/null
+++ b/ui/client-app/src/components/ChatArea.css
@@ -0,0 +1,3 @@
+.chat-area-fixed-height {
+ height: calc(100vh - 72px); /* Subtract input + padding */
+ }
\ No newline at end of file
diff --git a/ui/client-app/src/components/ChatArea.js b/ui/client-app/src/components/ChatArea.js
index be3cf35..b897700 100644
--- a/ui/client-app/src/components/ChatArea.js
+++ b/ui/client-app/src/components/ChatArea.js
@@ -1,10 +1,11 @@
-// src/components/ChatArea.js
import React, { useState, useRef, useEffect } from "react";
import ChatWindow from "./ChatWindow";
+import './ChatArea.css';
const ChatArea = ({ chatHistory, onSendMessage, isProcessing }) => {
const [inputValue, setInputValue] = useState("");
const inputRef = useRef(null);
+ const chatScrollRef = useRef(null);
const handleSendMessage = (e) => {
e.preventDefault();
@@ -14,44 +15,47 @@
}
};
+ // Scroll chat to bottom on new message
useEffect(() => {
- if (inputRef.current) {
- inputRef.current.focus();
+ if (chatScrollRef.current) {
+ chatScrollRef.current.scrollTop = chatScrollRef.current.scrollHeight;
}
- }, [isProcessing]);
+ }, [chatHistory]);
return (
-