Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Review readiness checklist
✅ 4/4 boxes ticked. This pull request was already a draft. Its draft status will be preserved after every issue above is resolved. |
리뷰 · 우선순위 58 / 80이 PR은 커스텀 프롬프트 레이어 편집 창에서, 레이어를 넘나들며 잠깐 넣어 둔(parked) 수정이 닫기·저장 때 조용히 사라지던 구멍을 막습니다. 예전에는 지금 화면에 보이는 레이어만 dirty로 봤어요. 다른 레이어에 넣어 둔 글은 메모리 Map에만 있고, 닫거나 다른 레이어를 저장하면 확인 없이 버려졌습니다. 지금은 저장된 형제 레이어( 라인 라인 라인 메인테이너의 판단이 필요한 지점 저장 확인에서 parked 레이어는 항상 버리고 현재 레이어만 쓸지, “다시 편집” 외에 parked를 저장하는 길이 필요한지 정해 주세요. 지금 UX는 데이터 손실을 막되, 확인 문구는 닫기용 버리기 문장을 그대로 씁니다. 저장용 문구·버튼(예: 다른 레이어 수정을 버리고 저장)을 나눌지, 아니면 저장 전에는 확인만 하고 진행 라벨을 Save로 둘지 정책이 필요합니다. 너의 추천 방향과 base 이 댓글은 grok-bot이 작성했습니다 |
In-dialog navigation parked drafts in memory, but the close/save guard only considered the currently visible layer, so edits parked on other layers were silently discarded. Track whether any parked draft differs from its persisted sibling and route close and save through the existing discard confirmation so unsaved custom prompt-layer text is never lost without a prompt.
77558d7 to
23cf7a3
Compare
|
Rebased onto current dev; gui tests pass (14/14). This change is behavior-only (parked draft protection in CustomLayerDialog) with no visual difference, so there is no meaningful screenshot to attach — requesting \gui-screenshot-waived\ from a maintainer if the gate requires it. cc @lidge-jun |
|
Consolidated into #5540 in native Stack #5505. Source head: All 1 unique source contribution commit(s) match their carried commits by stable Git patch ID. The follow-up distinguishes Save confirmation from close/discard in all ten locales and tests parked-edit preservation and zero PUT on close. Prepared aggregate checks passed 200 runtime/configuration tests and 20 GUI/locale tests. Combined route/probe rerun passed 119 tests with one POSIX skip; combined GUI tests, typecheck, structure, privacy and ratchet checks passed. Full cross-platform CI, POSIX execution, docs build and independent review remain pending. Closing this duplicate standalone review entry at the author's request after verifying migration. This is not a merge or release claim; remaining integration checks and reviews are tracked on the draft replacement. Original branches are retained. |
Summary
parkedDirty), comparing against the saved layers viaothersRefwithout widening effect deps.requestClose/requestSavewith adiscardActionstate, so the existing discard confirmation appears whenever a parked draft is dirty — including a Save initiated from another layer.Verification
cd gui && bun test tests/codex-set-stack.test.tsx— 14 pass, 0 fail (includes the new regression test).bun x tsc --noEmit(root) andcd gui && bun x tsc -b— both clean.Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.