Root CLAUDE.md (loaded every conversation) shrank from 34KB to ~8KB.
Module details moved verbatim-in-substance to app/modules/<mod>/CLAUDE.md,
which Claude Code loads only when working in that folder.
- [모듈명] prefix → module table (folder, DB, perm key, docs, static files)
- shared docs read only per task type (old "read 4 docs first" rule dropped)
- large docs: read TOC via grep, then only the needed section
- cross-module dependency list kept in root
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
동기 psycopg/파일 I/O 를 async def 안에서 부르면 쿼리·엑셀 파싱 동안
이벤트 루프가 멈춰 앱 전체(다른 모듈 포함) 요청이 줄줄이 대기했다.
sync def 로 두면 FastAPI 가 스레드풀에서 돌린다.
- await 없는 핸들러 116개는 async 키워드만 제거(AST 로 기계 변환).
- 업로드: await up.read() → up.file.read() (쿠팡 매출/발주 업로드,
경비 첨부 청크 읽기).
- 말레이시아 폼 핸들러 6개: request.form() 은 async 라 _request_form
의존성(인증 뒤에 실행)으로 미리 받아 넘기고 본문은 def.
- Google Sheets writer: httplib2 가 스레드 안전하지 않고 같은 날짜
시트를 동시에 쓰면 섞이므로 RLock 으로 직렬화.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- erp 셸 height:100vh + body overflow:hidden, .erp-page 가 남은 높이 채우고 내부 스크롤
- 휴가 달력: 6주 행이 가용 높이 균등 분할(유동), 날짜 셀 height:100%, 선택일 패널 내부 스크롤
- 쿠팡 출고 폼: 라인 패널 고정 900px 높이 → 가용 높이 채움
- CORM/Order 는 별도 창이라 해당 없음
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>