mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-02-16 13:47:34 +00:00
Merge branch 'main' into feat/add-i18n
This commit is contained in:
@@ -4361,7 +4361,7 @@ function ChatInterface({ selectedProject, selectedSession, ws, sendMessage, mess
|
|||||||
// Send Cursor command (always use cursor-command; include resume/sessionId when replying)
|
// Send Cursor command (always use cursor-command; include resume/sessionId when replying)
|
||||||
sendMessage({
|
sendMessage({
|
||||||
type: 'cursor-command',
|
type: 'cursor-command',
|
||||||
command: input,
|
command: messageContent,
|
||||||
sessionId: effectiveSessionId,
|
sessionId: effectiveSessionId,
|
||||||
options: {
|
options: {
|
||||||
// Prefer fullPath (actual cwd for project), fallback to path
|
// Prefer fullPath (actual cwd for project), fallback to path
|
||||||
@@ -4378,7 +4378,7 @@ function ChatInterface({ selectedProject, selectedSession, ws, sendMessage, mess
|
|||||||
// Send Codex command
|
// Send Codex command
|
||||||
sendMessage({
|
sendMessage({
|
||||||
type: 'codex-command',
|
type: 'codex-command',
|
||||||
command: input,
|
command: messageContent,
|
||||||
sessionId: effectiveSessionId,
|
sessionId: effectiveSessionId,
|
||||||
options: {
|
options: {
|
||||||
cwd: selectedProject.fullPath || selectedProject.path,
|
cwd: selectedProject.fullPath || selectedProject.path,
|
||||||
@@ -4393,7 +4393,7 @@ function ChatInterface({ selectedProject, selectedSession, ws, sendMessage, mess
|
|||||||
// Send Claude command (existing code)
|
// Send Claude command (existing code)
|
||||||
sendMessage({
|
sendMessage({
|
||||||
type: 'claude-command',
|
type: 'claude-command',
|
||||||
command: input,
|
command: messageContent,
|
||||||
options: {
|
options: {
|
||||||
projectPath: selectedProject.path,
|
projectPath: selectedProject.path,
|
||||||
cwd: selectedProject.fullPath,
|
cwd: selectedProject.fullPath,
|
||||||
@@ -4423,7 +4423,7 @@ function ChatInterface({ selectedProject, selectedSession, ws, sendMessage, mess
|
|||||||
if (selectedProject) {
|
if (selectedProject) {
|
||||||
safeLocalStorage.removeItem(`draft_input_${selectedProject.name}`);
|
safeLocalStorage.removeItem(`draft_input_${selectedProject.name}`);
|
||||||
}
|
}
|
||||||
}, [input, isLoading, selectedProject, attachedImages, currentSessionId, selectedSession, provider, permissionMode, onSessionActive, cursorModel, claudeModel, codexModel, sendMessage, setInput, setAttachedImages, setUploadingImages, setImageErrors, setIsTextareaExpanded, textareaRef, setChatMessages, setIsLoading, setCanAbortSession, setClaudeStatus, setIsUserScrolledUp, scrollToBottom]);
|
}, [input, isLoading, selectedProject, attachedImages, currentSessionId, selectedSession, provider, permissionMode, onSessionActive, cursorModel, claudeModel, codexModel, sendMessage, setInput, setAttachedImages, setUploadingImages, setImageErrors, setIsTextareaExpanded, textareaRef, setChatMessages, setIsLoading, setCanAbortSession, setClaudeStatus, setIsUserScrolledUp, scrollToBottom, thinkingMode]);
|
||||||
|
|
||||||
const handleGrantToolPermission = useCallback((suggestion) => {
|
const handleGrantToolPermission = useCallback((suggestion) => {
|
||||||
if (!suggestion || provider !== 'claude') {
|
if (!suggestion || provider !== 'claude') {
|
||||||
|
|||||||
Reference in New Issue
Block a user