Repository navigation
[DONE] To hardware 에 붙인 헤더가 창을 닫거나 쪽을 다시 불러와도 남는다 - #203
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XQHHGQiXZWWSWXzZb2pNyp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XQHHGQiXZWWSWXzZb2pNyp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XQHHGQiXZWWSWXzZb2pNyp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XQHHGQiXZWWSWXzZb2pNyp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XQHHGQiXZWWSWXzZb2pNyp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XQHHGQiXZWWSWXzZb2pNyp
patternflow-bot
marked this pull request as ready for review
October 24, 2026 03:48
This was referenced Oct 24, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 25, 2026
engmung
pushed a commit
to engmung/Patternflow
that referenced
this pull request
Oct 25, 2026
Patternflow-lab#183 Patternflow-lab#184 Patternflow-lab#186 Patternflow-lab#187 Patternflow-lab#189 Patternflow-lab#191 Patternflow-lab#192 Patternflow-lab#193 Patternflow-lab#194 Patternflow-lab#196 Patternflow-lab#197 Patternflow-lab#198 Patternflow-lab#199 Patternflow-lab#200 Patternflow-lab#202 Patternflow-lab#203 Patternflow-lab#204 Patternflow-lab#205 Patternflow-lab#206 Patternflow-lab#208 Patternflow-lab#209 Patternflow-lab#210 Patternflow-lab#214 Patternflow-lab#217 Patternflow-lab#218 Patternflow-lab#221 Patternflow-lab#222 Patternflow-lab#223 Patternflow-lab#227 Patternflow-lab#237 Patternflow-lab#238 Patternflow-lab#239 Patternflow-lab#240
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lsh / https://claude.ai/code/session_01XQHHGQiXZWWSWXzZb2pNyp
Pattern Lab 의 To hardware 에 붙인 헤더가 이제 창을 Esc 나 바깥 판, × 로 닫아도, 쪽을 다시 불러와도 남아요. 전엔 붙인 글이 창 안에만 있어서 닫는 순간 사라졌고, AI 에게 다시 물어야 했어요. 붙인 글은 그 탭에 그 글이 답한 번역 프롬프트에 묶여 남고, 코드나 램프, 판 크기가 바뀌면 돌아오지 않아요.
좋아지는 것: To hardware 를 닫거나 새로 고쳐도 붙인 헤더가 남는다 — AI 에게 다시 묻지 않는다
체크리스트
98a758d, 그새 움직이지 않음)한 일
web/src/lib/lab/hardwarePastes.ts(새 파일): 붙인 글을 sessionStorage 의patternflow_lab_hardware_pastes_v1에 둬요. 열쇠는 그 글이 답한 프롬프트에서 노브의 지금 위치(, current …)를 뺀 것을 FNV-1a 로 줄인 값이에요.web/src/app/pattern-lab/HardwareModal.tsx: 창이 열릴 때 레이어 하나의 칸과 쌓은 레이어마다의 칸을 그 열쇠로 되살려요. 칸을 고칠 때마다 지금 칸에 든 글만 적어서, 답할 프롬프트가 없어진 글은 다음 고침에 빠져요. 레이어 하나의 열쇠는 이름 없이 만든 프롬프트예요. 이름은 조립할 때enforcePatternName이 다시 찍어서예요.web/src/lib/lab/persist.ts: 머리 주석의 「lab 이 localStorage 밖에 두는 것」에 이 키를 더했어요. 헤더가 창과 같이 사라진다고 하던 주석 둘(HardwareModal.tsx의 바깥 판 닫기, 시험 머리)을 지금 일로 고쳤어요.web/src/app/pattern-lab/HardwareModal.test.tsx: Esc · 바깥 판 · × 로 닫고 다시 열기, 프로젝트를 저장했다 다시 읽는 새로 고침, 쌓은 레이어 다시 열기, 노브 돌리기(하나 · 쌓은 것), 코드 · 램프 모드 · 판 크기를 바꾸면 빈 칸, 칸을 비우면 잊기.beforeEach에서 sessionStorage 를 비워요.증거
사진을 찍은 스크립트가 처음 연 Lab 에서 To hardware 를 열고 헤더를 붙인 뒤 Esc 로 닫고, 쪽을 다시 불러와 To hardware 를 또 열었어요. 칸엔 붙인 221자가 그대로 있고 「Looks like a header ✓」 와 「Next →」 가 살아 있어요.
고침을 커밋한 뒤
git show origin/dev:web/src/app/pattern-lab/HardwareModal.tsx로 옛 창을 깔고 새 시험을 돌렸어요. 남는지 보는 여섯이 빨갰어요.열쇠도 망가뜨려 봤어요. 노브 위치를 빼지 않게 하니 「keeps a stack's translations when a knob turns」 하나가 빨갰고, 열쇠를 늘 같은 값으로 두니 코드 · 램프 모드 · 판 크기를 바꾸는 셋과 쌓은 레이어 다시 열기가 빨갰어요. 고친 코드에선 다 초록이에요.
web/에서 다섯 검사의 끝줄이에요.links-absolute와roadmap은gh가 원래 레포를 못 읽는 컨테이너라skipped예요. PR 의drift.yml이 다시 돌려요.실행법
web/에서NEXT_PUBLIC_BUILD_ENABLED=1 npm run build && npx next start -p 3100다음/pattern-lab을 열고 머리의 To hardware 를 눌러요. 칸에#pragma once로 시작하는 헤더를 붙이고 Esc 로 닫아요. 쪽을 다시 불러와 To hardware 를 열면 칸에 그 헤더가 있고 「Next →」 가 열려 있어요. Code 에서 한 줄을 고치고 열면 칸이 비어 있어요. 시험만은npx vitest run src/app/pattern-lab/HardwareModal.test.tsx예요.가정
lib/lab/cppPrompt.ts:302), 노브를 돌린 뒤 되살린 헤더는 보드에서 옛 위치로 시작해요. 노브 한 칸에 AI 에게 다시 묻게 하는 것보다 낫다고 봤어요. 쌓은 레이어는 뼈대가 노브를 지금 값으로 다시 써서 이 차이가 없어요.NEXT_PUBLIC_BUILD_ENABLED=1로 다시 빌드해 찍었어요. 그 값이 없으면 머리에 To hardware 단추가 없어요. Code 패널 편집기가 비어 보이는 것은 이 컨테이너가 jsdelivr 를 막아서예요.web/src/lib/lab/capture/shaderStore.ts:12~:14주석은 「the lab does not persist its project, so every reload mints new layer ids」 라고 하는데, 지금 프로젝트는 레이어 id 째 저장돼요(lib/lab/serialize.ts:259).Changelog
Web
경험
언제: 바퀴에서 사진을 찍으려고 띄운
next start를 끌 때교훈:
pkill -f "next start -p 3100"을 다른 명령과 한 Bash 에 묶지 말고,ps aux | grep "[n]ext start"로 pid 를 골라 끈다(그 셸의 명령줄에도 같은 글이 있어 셸까지 죽는다)근거: #203 에서 pkill 과 사진 커밋을 한 명령에 묶었더니 exit 144 로 셸이 죽어 커밋이 하나도 되지 않았어요
바퀴
바퀴 77 · 후보 12 「To hardware 에 붙인 헤더가 창을 닫거나 쪽을 다시 불러와도 남는다」
다음 바퀴
lang="en"쪽에서 Paste 가 한국어window.prompt를 띄워요.https://claude.ai/code/session_01XQHHGQiXZWWSWXzZb2pNyp
Generated by Claude Code