@@ -257,7 +257,6 @@ function InlineCommitPanel({
257257 const [ resolvedBranch , setResolvedBranch ] = useState < string | null > ( null ) ;
258258 const successTimeoutRef = useRef < ReturnType < typeof setTimeout > | null > ( null ) ;
259259 const [ isExpanded , setIsExpanded ] = useState ( false ) ;
260- const hasGeneratedRef = useRef ( false ) ;
261260
262261 const hasUncommittedChanges = gitStatus ?. hasUncommittedChanges ?? false ;
263262 const hasUnpushedCommits = gitStatus ?. hasUnpushedCommits ?? false ;
@@ -308,15 +307,6 @@ function InlineCommitPanel({
308307
309308 const handleExpandCommit = ( ) => {
310309 setIsExpanded ( true ) ;
311- // Auto-generate message when expanding for the first time
312- if (
313- ! hasGeneratedRef . current &&
314- ! commitMessage . trim ( ) &&
315- hasPendingGitWork
316- ) {
317- hasGeneratedRef . current = true ;
318- void handleGenerateMessage ( ) ;
319- }
320310 } ;
321311
322312 const handleGenerateMessage = async ( ) => {
@@ -593,7 +583,6 @@ function InlinePrCreatePanel({
593583 const [ prHeadOwner , setPrHeadOwner ] = useState < string | null > ( null ) ;
594584 const [ isExpanded , setIsExpanded ] = useState ( false ) ;
595585 const [ enableAutoMerge , setEnableAutoMerge ] = useState ( false ) ;
596- const hasGeneratedRef = useRef ( false ) ;
597586
598587 const branchFromStatus =
599588 resolvedBranch ??
@@ -646,11 +635,6 @@ function InlinePrCreatePanel({
646635
647636 const handleExpand = ( ) => {
648637 setIsExpanded ( true ) ;
649- // Auto-generate content when expanding for the first time
650- if ( ! hasGeneratedRef . current && ! prTitle . trim ( ) && ! prBody . trim ( ) ) {
651- hasGeneratedRef . current = true ;
652- void handleGenerateContent ( ) ;
653- }
654638 } ;
655639
656640 const handleGenerateContent = async ( ) => {
0 commit comments