Actions
개선 #945
완료됨개선 #942: [부모] Codex App식 thread/turns/list 기반 이전 히스토리 lazy-load 및 transcript virtualization 이식
[Runtime] turn page prepend merge와 history page 상태 모델
개선 #945:
[Runtime] turn page prepend merge와 history page 상태 모델
시작일:
2026/07/06
완료일:
2026/07/06
진척도:
100%
추정시간:
설명
상위 일감: #942
책임:
-
thread/turns/listpage를 현재 thread 앞쪽 history로 병합하고, cursor/loading/error/complete 상태를 runtime store에 보존한다.
수행 내용:
- RuntimeThreadState 또는 thread UI state에 older-history state를 추가한다:
nextCursor,backwardsCursor,hasOlder,loading,error,lastLoadedCursor,itemsView,pageLimit. - turn page의
Turn.items를 기존 RuntimeThread item/turn group 모델로 변환한다. - prepend merge는 turn/item id 기준으로 중복을 제거하고 기존 activeTurn, pending request, local UI state를 보존한다.
-
thread/turns/items/list가 미지원이므로 summary/full 선택에 따른 누락 가능성을 상태에 표시하거나 Protocol child 결정에 맞춘다. - 현재
RUNTIME_THREAD_ITEM_LIMIT=500tail slice와 충돌하지 않도록 lazy-loaded history 보존 정책을 결정한다. - thread/restored, thread/restoring, thread switch, live delta 이벤트와의 우선순위를 정리한다.
인수 기준:
- success, no-more-history, duplicate page, partial error, thread switch 중 stale response 무시 테스트가 있다.
- lazy-loaded 과거 item/turn이 limit 정책 때문에 즉시 잘리지 않는다는 회귀 테스트가 있다.
- #689의 renderer windowing 동작과 상태가 충돌하지 않는다.
Actions