Skip to content

feat: add noreply flag to suppress thread reply#3

Merged
Chanki-Min merged 10 commits intomainfrom
NO-REPLY
Mar 6, 2026
Merged

feat: add noreply flag to suppress thread reply#3
Chanki-Min merged 10 commits intomainfrom
NO-REPLY

Conversation

@Chanki-Min
Copy link
Copy Markdown
Owner

Summary

요구사항

채널 멘션 시 항상 스레드에 답장이 달려 간단한 작업에도 불편함이 있었음.

구현

  • @봇 noreply repo:xxx 작업 형태로 noreply 키워드를 포함하면:
    • ⏳→✅/❌ 이모지는 기존과 동일하게 표시
    • 스레드 답장 생략
    • 세션 정보는 chat.postEphemeral로 요청자에게만 전송 (스레드 안에서 보낸 경우 스레드 내부에 표시)
    • 에러 발생 시에도 ephemeral로 요청자에게만 전송
  • DM(AI Assistant 사이드 패널) 핸들러는 변경 없음

Changes

  • src/slack/parser.ts: ParsedMessagenoreply: boolean 필드 추가, \bnoreply\b 파싱
  • src/slack/handler.ts: createMentionHandler에 noreply 분기 추가, postReplyOrEphemeral 헬퍼 추출
  • tests/slack/parser.test.ts: noreply 플래그 파싱 테스트 7개 추가

Test

bun test  # 90 pass / 0 fail

@Chanki-Min Chanki-Min merged commit 69086a3 into main Mar 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant