Selenium 실측 overflow 정보를 에스컬레이션 report에 추가
- build_escalation_report 결과에 Selenium overflow px 정보 추가 - Kei가 실측 overflow를 인식하고 popup 결정을 내림 (7건) - 미완: Kei popup 결정이 상단/하단좌 조립에 미반영 + 결정 과격 (전부 팝업) - 다음: popup 결정 조립 반영 + Kei 가이드 개선 (일부만 팝업, 핵심은 유지) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -621,6 +621,15 @@ async def generate_slide(
|
|||||||
if fit_analysis.needs_escalation or has_overflow:
|
if fit_analysis.needs_escalation or has_overflow:
|
||||||
from src.kei_client import call_kei_fit_escalation
|
from src.kei_client import call_kei_fit_escalation
|
||||||
report = build_escalation_report(fit_analysis)
|
report = build_escalation_report(fit_analysis)
|
||||||
|
# Selenium 실측 overflow 정보를 report에 추가 (calculate_fit과 실측이 다를 수 있음)
|
||||||
|
selenium_overflow_lines = []
|
||||||
|
for zn, zd in filled_measurement.get("zones", {}).items():
|
||||||
|
if zd.get("overflowed"):
|
||||||
|
selenium_overflow_lines.append(
|
||||||
|
f" ❌ {zn} zone: 실측 {zd.get('scrollHeight')}px / 가용 {zd.get('clientHeight')}px → +{zd.get('excess_px', 0)}px 초과"
|
||||||
|
)
|
||||||
|
if selenium_overflow_lines:
|
||||||
|
report += "\n\nSelenium 실측 overflow:\n" + "\n".join(selenium_overflow_lines)
|
||||||
logger.info(f"[Stage 1.8] round {fit_round+1} 에스컬레이션 필요")
|
logger.info(f"[Stage 1.8] round {fit_round+1} 에스컬레이션 필요")
|
||||||
kei_result = await call_kei_fit_escalation(
|
kei_result = await call_kei_fit_escalation(
|
||||||
fit_report=report,
|
fit_report=report,
|
||||||
|
|||||||
Reference in New Issue
Block a user