@@ -173,7 +173,9 @@ const COPY = {
173173 summaryWontFixReasonInvalid : '无需处理(无可执行请求)' ,
174174 summaryWontFixReasonEvaluationPending : '评估中,暂不处理' ,
175175 state_completed_needs_fix : '已处理,待发布' ,
176- state_completed_needs_fix_no_release : '已处理,未发布' ,
176+ state_completed_needs_fix_no_release : '已处理,未创建 PR' ,
177+ state_completed_automation_stopped : '自动修复已停止' ,
178+ state_completed_pr_created : '已处理,PR 已创建' ,
177179 summaryShowFullConclusion : '展开完整结论' ,
178180 summaryBackground : '背景' ,
179181 summarySectionCompleted : '已完成' ,
@@ -185,7 +187,7 @@ const COPY = {
185187 taskLabelsMore : '+{value}' ,
186188 summaryMissingInfo : '判断所需信息' ,
187189 summaryCompletedTitlePlain : '处理结果' ,
188- summaryCompletedNoFollowup : '处理已完成,系统不再自动跟进;如需继续,请使用「重新尝试」提交新任务 。' ,
190+ summaryCompletedNoFollowup : '处理已完成,系统不再自动跟进。' ,
189191 issueDescriptionEmpty : '(该 Issue 没有正文描述)' ,
190192 summarySegmentEvidence : '调查取证' ,
191193 summarySegmentRouteDecision : '方案决策' ,
@@ -649,7 +651,9 @@ const COPY = {
649651 summaryWontFixReasonInvalid : 'No action needed (nothing actionable)' ,
650652 summaryWontFixReasonEvaluationPending : 'Under evaluation' ,
651653 state_completed_needs_fix : 'Handled, pending release' ,
652- state_completed_needs_fix_no_release : 'Handled, not published' ,
654+ state_completed_needs_fix_no_release : 'Handled, no PR created' ,
655+ state_completed_automation_stopped : 'Automation stopped' ,
656+ state_completed_pr_created : 'Handled, PR created' ,
653657 summaryShowFullConclusion : 'Show full conclusion' ,
654658 summaryBackground : 'Background' ,
655659 summarySectionCompleted : 'Completed' ,
@@ -661,7 +665,7 @@ const COPY = {
661665 taskLabelsMore : '+{value}' ,
662666 summaryMissingInfo : 'Information needed to decide' ,
663667 summaryCompletedTitlePlain : 'Outcome' ,
664- summaryCompletedNoFollowup : 'Handling is complete; automation stops here. Use the new-attempt action if you want to continue. ' ,
668+ summaryCompletedNoFollowup : 'Handling is complete; automation stops here.' ,
665669 issueDescriptionEmpty : '(This issue has no body text.)' ,
666670 summarySegmentEvidence : 'Evidence' ,
667671 summarySegmentRouteDecision : 'Route decision' ,
@@ -2440,8 +2444,16 @@ function completionLabel(task) {
24402444 if ( verdict === 'already_fixed_upstream' ) return summaryEnumLabel ( 'summaryVerdict' , 'already_fixed_upstream' ) ;
24412445 if ( verdict === 'needs_info' ) return summaryEnumLabel ( 'summaryVerdict' , 'needs_info' ) ;
24422446 if ( verdict === 'needs_fix' ) {
2443- if ( taskHasProducedPullRequest ( task ) ) return text ( 'resolvedItem' ) ;
24442447 if ( task . pendingGateId ) return text ( 'state_completed_needs_fix' ) ;
2448+ const publicationState = String ( structured . publication_state || '' ) ;
2449+ const automationOutcome = String ( structured . automation_outcome || '' ) ;
2450+ const producedPullRequest = taskHasProducedPullRequest ( task ) ;
2451+ if ( publicationState === 'created' || producedPullRequest ) {
2452+ return producedPullRequest ? text ( 'state_completed_pr_created' ) : text ( 'resolvedItem' ) ;
2453+ }
2454+ if ( automationOutcome === 'stopped_without_pr' ) {
2455+ return text ( 'state_completed_automation_stopped' ) ;
2456+ }
24452457 return text ( 'state_completed_needs_fix_no_release' ) ;
24462458 }
24472459 return '' ;
@@ -2457,7 +2469,10 @@ function completionTone(task) {
24572469 }
24582470 if ( verdict === 'needs_info' ) return 'info' ;
24592471 if ( verdict === 'already_fixed_upstream' ) return 'success' ;
2460- if ( verdict === 'needs_fix' ) return taskHasProducedPullRequest ( task ) ? 'success' : 'muted' ;
2472+ if ( verdict === 'needs_fix' ) {
2473+ const publicationState = String ( structured . publication_state || '' ) ;
2474+ return publicationState === 'created' && taskHasProducedPullRequest ( task ) ? 'success' : 'muted' ;
2475+ }
24612476 return '' ;
24622477}
24632478
0 commit comments