Repository navigation
feat(mcp): T1 아니요 뒤 요청 값이 이미 코드에 있으면 기존 값으로 되돌리라고 전달함 (BDT-95) - #71
Merged
Merged
Conversation
detect.ask.rollback-if-applied. 에이전트가 알아챈 T1에서만 적용하고, 직접 요청의 아니요는 그대로 둬요. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
데모에서 "6500를"로 나와서, 조사를 괄호 밖 "값"에 붙였어요. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
바뀐 결정 사항 찾기 · PR #71
@k0nghaa 이 PR에서 결정 사항이 바뀐 것 같은데 확실하지 않아요.
+const agentDeclinedStep = `아니요면 저장하지 않아요. 요청 값이 코드에 이미 들어갔는지 코드의 지금 값을 직접 읽어 확인해요. 요청 값과 같으면 그곳을 기존 결정 사항 값으로 되돌리고 "${T1_COPY.rolledBack}"를 {requested}·{current}만 채워 글자 그대로 보여 준 뒤 멈추고 기다려요. 아직 요청 값이 아니면 아무것도 고치지 않고 "${T1_COPY.notChanged}"를 보여 준 뒤 멈추고 기다려요. 되돌리는 것 말고는 지금 값대로도 코드를 쓰지 않아요.`;
+ input.trigger === 'agent'
+ ? agentDeclinedStep
+ rolledBack:
+ '코드에 이미 들어간 값({requested})을 기존 결정 사항 값({current})으로 되돌렸어요. 다른 작업을 시작해 주세요.',결정 사항은 그대로 두었어요. 바뀐 게 맞으면 Claude Code에서 "결정 사항을 바꿔 줘"라고 말해 주세요. 바뀐 게 아니면 이 댓글은 넘어가셔도 돼요. |
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.
관련 이슈
BDT-95 [개발] T1 "아니오" 뒤 롤백 지시: 요청 값이 이미 코드에 있으면 기존 값으로 되돌리게 하기
https://linear.app/pj-3/issue/BDT-95
무엇을 바꿨나요
apps/mcp-server/src/hooks/t1-hooks.ts: 에이전트가 작업 중에 알아챈 T1에서 "아니요"를 고르면, 에이전트에게 넘기는 안내(additionalContext)를 바꿨어요.rolledBack문구를 보여 준 뒤 멈춰요notChanged를 보여 줘요packages/t1/src/copy.ts: 되돌린 뒤 보여 줄 문구rolledBack을 더했어요.t1-hooks.test.ts,t1.test.ts)와 두 패키지 README 표를 고쳤어요.사람이 직접 요청한 경우(되돌림 질문
revertAsk)의 "아니요"는 이슈의 "하지 않는 것"에 따라 그대로 뒀어요.왜 바꿨나요
"아니요"를 고르면 위키는 그대로인데, 요청 값이 이미 코드에 들어가 있으면 코드만 다른 값으로 남았어요. 위키
detect.ask.rollback-if-applied에 정해진 규칙인데 구현이 빠져 있었어요.apps/detect/src/t1/copy.ts와 CLAUDE.md를 가리키지만, 지금 T1 안내는 MCP 서버 hook과packages/t1에 있어서 그쪽을 고쳤어요.어떻게 확인했나요
pnpm check통과 (타입, 린트, 포맷, 테스트)sandbox.menu.latte-price(v5, 5000원)로 시험했어요. 요청은 "메뉴판(sandbox/menu.ts)에서 라떼 가격을 6500원으로 바꿔 줘", 답은 "아니요".notChangedgit diff직접 확인하지 못한 부분
detect.ask.cancel-keeps-wiki,rollback-if-applied,confirm-before-register,direct-request-skip-warn)의 적용 범위가 아직 "최상단 CLAUDE.md"예요. BDT-108 이후 실제 위치는 hook과packages/t1이에요.🤖 Generated with Claude Code