Repository navigation
[DONE] To hardware 에 AI 답을 통째로 붙여도 헤더만 남고, 빈 칸에서 「Copy .h」 가 복사했다고 하지 않는다 - #194
Merged
Merged
Conversation
A whole answer went into the .h with the model's words and the fence, and Copy .h copied an empty box and said Copied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TBgz26gZ6bndqQai5cUkM1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TBgz26gZ6bndqQai5cUkM1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TBgz26gZ6bndqQai5cUkM1
patternflow-bot
marked this pull request as ready for review
October 24, 2026 01:01
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.
ops / https://claude.ai/code/session_01TBgz26gZ6bndqQai5cUkM1
Pattern Lab 의 To hardware 에서 코드 레이어가 하나일 때, AI 대화 답을 「Here is the converted header:」 와
```cpp울타리, 「Let me know…」 까지 통째로 붙여도 이제 .h 엔 헤더만 들어가요. 전엔 그 말이 그대로 Copy .h 와 Download .h, 보드로 보내기에 가서 컴파일에서 막혔어요. 아무것도 붙이지 않은 칸에서 「Copy .h」 가 빈 글을 복사하고 「Copied ✓」 를 띄우던 것도 막았어요.좋아지는 것: AI 답을 통째로 붙여도 헤더만 보드로 간다 — 말을 손으로 지울 일이 없다
4위는 바퀴 6669)HardwareModal.test.tsx에 셋, 옛 코드에선 셋 다 빨강)incoming/pattern-study/만 바뀌어 HardwareModal 시험 16개와 markers 를 다시 돌렸어요)한 일
web/src/lib/lab/hExport.ts에cleanPastedHeader를 더했어요. 줄 맨 앞의#pragma once를 찾아 거기서 헤더를 시작하고, 그 바로 위의 주석 줄과 빈 줄은 같이 둬요. 프리셋 헤더가// SPDX-License-Identifier몇 줄과 빈 줄 하나 뒤에#pragma once를 두어서예요. 그 위의 말과 여는 울타리는 버려요. 끝은#pragma once다음에 처음 오는```줄이고, 그 뒤 말도 버려요.#pragma once로 시작하는 줄이 없으면null이에요.web/src/app/pattern-lab/HardwareModal.tsx의 레이어 하나 길은 붙인 글 대신 이 함수가 돌려준 헤더로 .h 를 만들어요. 헤더가 없으면 .h 는 빈 글이고, 「Copy .h」 는 「Download .h」 처럼disabled={!headerLooksReal}로 닫혀요. 말을 걷어 냈으면 칸 밑 글이 「Looks like a header ✓ The words around it stay out of the .h.」 라고 해요. 칸에 붙인 글은 그대로 둬요. 레이어를 쌓은 길은 바꾸지 않았어요.증거
사진을 찍은 스크립트가 같은 창에서 「Copy .h」 를 누르고 클립보드를 읽었어요. 390 과 1440 이 같았어요.
고치기 전 코드로 같은 답을 .h 로 만든 것이에요(
enforcePatternName(single.trim(), name)을 tsx 로 불렀어요).새 시험 셋은 고치기 전 코드에서 셋 다 빨갰어요.
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 를 눌러요. 칸이 비어 있으면 「Copy .h」 가 닫혀 있어요. 말과```cpp울타리가 든 답을 칸에 붙이고 「Copy .h」 를 누르면 클립보드엔#pragma once부터} // namespace …까지만 들어요. 시험만은npx vitest run src/app/pattern-lab/HardwareModal.test.tsx예요.가정
#pragma once를 맨 앞에서 찾아요」 라고 했지만, 그 바로 위의 주석 줄은 헤더로 남겨요. 프리셋 헤더(firmware/patternflow/presets/preset_0510.h:1~:8)처럼 라이선스 줄로 여는 헤더를 붙이면 그 줄이 말없이 빠지지 않게 하려고요. 말 한 줄이나 여는 울타리를 만나면 거기서 멈춰요.#pragma once가 있어headerLooksReal이 참이에요.NEXT_PUBLIC_BUILD_ENABLED=1로 다시 빌드해 찍었어요. 그 값이 없으면 To hardware 단추가 머리에 없어요(web/src/lib/community/apiBase.ts:61). 읽는 코드는 바꾸지 않았어요.cleanPastedUnit(web/src/lib/lab/hExport.ts:720)은 첫 울타리만 봐요. 「First add this include:」 아래 울타리 하나, 「Then the layer:」 아래namespace L0울타리 하나인 답을 붙이면null이라 「not a namespace L0 block」 이 떠요(tsx 로 불러 봤어요).Changelog
Web
#pragma once(with the comment lines above it) and stops at the closing fence, and Copy .h waits for a header.경험
언제: 바퀴에서 빌드한 사이트를 폰 390 과 데스크톱 1440 으로 찍을 때
교훈: ROUND.md 처럼 스크래치에
playwright-core를 깔지 않고 컨테이너에 든require("playwright")를.cjs스크립트에서 바로 쓰고,chromium.launch()에executablePath를 주지 않는다근거: #194 에서
npm i없이require("playwright")와grantPermissions(["clipboard-read", "clipboard-write"])로 To hardware 창을 두 폭으로 찍고 「Copy .h」 가 넣은 클립보드까지 읽었어요바퀴
바퀴 70 · 후보 5 「To hardware 에 AI 답을 통째로 붙여도 헤더만 남고, 빈 칸에서 「Copy .h」 가 복사했다고 하지 않는다」
다음 바퀴
63f처럼.0없이 나와 g++ 가 멈춰요.https://claude.ai/code/session_01TBgz26gZ6bndqQai5cUkM1
Generated by Claude Code