Skip to content

보내기 취소: 발송 지연 큐와 취소 API - #70

Merged
littlebit0 merged 21 commits into
mainfrom
feat/issue-34-undo-send
Nov 26, 2026
Merged

littlebit0 merged 21 commits into
mainfrom
feat/issue-34-undo-send

Conversation

@littlebit0

Copy link
Copy Markdown
Owner

Refs

Refs #34

배경

IMAP/SMTP에는 보내기 취소가 없어 서버가 발송을 늦춰야 한다. 이슈 1단계(짧은 지연 큐)만 구현한다.

변경

  • 서버: SendQueue(메모리). POST /mail/send는 delaySeconds(0/5/10/20/30, 기본 5)만큼 대기 후 발송하고 {id}를 반환. POST /mail/send/:id/cancel은 발송 전 200, 이미 발송 409, 없는 id 404. 종료 시(SIGINT/SIGTERM) 대기 중 메일은 즉시 발송.
  • 클라이언트: 설정에 보내기 취소 시간 선택, 작성 후 "보내기 취소" 스낵바(한/영 문구).

검증

  • 서버 tsc, 테스트 통과(취소, 지연 0 후 409, 404/잘못된 지연, flush 1회 발송).
  • 클라이언트 analyze, test 통과. macOS 디버그 빌드는 성공해 앱이 기동하고 서버(4134)와 함께 메인 화면까지 확인. 화면 클릭 조작 권한이 없어 설정 화면과 스낵바 동작은 직접 확인하지 못함.

미확인/후속

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-26T19:29:25.591571Z
We couldn’t complete this review. Comment @codex review to try again.
41367a6 New commits
🔒 Security Review ✅ Completed 2026-11-21T16:32:56.064157Z 4979b1a Manual request

Security findings

Finding details are still loading. Check the individual review comments.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1e8c2521ce

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/server/src/mail/SendQueue.ts Resolved
Comment thread apps/server/src/mail/SendQueue.ts Resolved
- flush가 진행 중인 발송 promise를 기다리고 중복 발송하지 않음
- 취소된 큐 항목도 보존 기간 후 제거
- 취소 스낵바를 대기 중인 스낵바 뒤로 밀리지 않게 즉시 표시하고 실제 발송 시점까지만 노출
@littlebit0

Copy link
Copy Markdown
Owner Author

Codex 지적 3건을 1eae0bf에서 반영했습니다.

@codex review

언어 (최우선)

리뷰 제목·본문·요약·지적 사항은 모두 한국어로 작성하세요.

댓글작성

지적은 문제, 재현 조건, 수정 방향 순서로 짧게 쓰세요.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 1eae0bf51d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛡️ Codex Security Review · Automatically triggered

Here are some automated security review suggestions for this pull request.

Reviewed commit: 1eae0bf51d

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Comment thread apps/server/src/mail/SendQueue.ts Resolved
@littlebit0

Copy link
Copy Markdown
Owner Author

Codex 지적 1건을 dbab32f에서 반영했습니다.

@codex review

언어 (최우선)

리뷰 제목·본문·요약·지적 사항은 모두 한국어로 작성하세요.

댓글작성

지적은 문제, 재현 조건, 수정 방향 순서로 짧게 쓰세요.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dbab32fd66

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/server/src/mail/SendQueue.ts Resolved
@littlebit0

Copy link
Copy Markdown
Owner Author

Codex 지적 2건을 59ae6db에서 반영했습니다.

@codex review

언어 (최우선)

리뷰 제목·본문·요약·지적 사항은 모두 한국어로 작성하세요.

댓글작성

지적은 문제, 재현 조건, 수정 방향 순서로 짧게 쓰세요.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 59ae6dbba6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- awaitSendOutcome: pending/sending인 동안 2초부터 15초까지 백오프하며 5분까지 조회
- SendQueue 결과 보관 기본값 60초에서 10분으로 늘려 클라이언트 조회 범위 이상으로 맞춤
- 다시 작성 라우트에 초안별 ObjectKey를 줘 이미 열린 작성 화면 상태를 재사용하지 않음
- 회귀 테스트 추가
@littlebit0

Copy link
Copy Markdown
Owner Author

Codex 지적 2건을 ecb4be1에서 반영했습니다.

@codex review

언어 (최우선)

리뷰 제목·본문·요약·지적 사항은 모두 한국어로 작성하세요.

댓글작성

지적은 문제, 재현 조건, 수정 방향 순서로 짧게 쓰세요.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ecb4be1677

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/client/lib/core/app_router.dart Resolved
@littlebit0

Copy link
Copy Markdown
Owner Author

Codex 지적 1건을 0ca917d에서 반영했습니다.

@codex review

언어 (최우선)

리뷰 제목·본문·요약·지적 사항은 모두 한국어로 작성하세요.

댓글작성

지적은 문제, 재현 조건, 수정 방향 순서로 짧게 쓰세요.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0ca917d58e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

별도 push로 쌓은 복구 화면은 발송 성공 후에도 context.go로 스택 전체가 교체되어 아래의 작성 중인 메일이 사라졌다. 쌓인 화면이면 pop하고, 아니면 기존처럼 메일함으로 이동한다. 되돌리기 스낵바와 실패 폴링은 루트 ScaffoldMessenger를 쓰므로 pop 이후에도 유지된다.
@littlebit0

Copy link
Copy Markdown
Owner Author

Codex 지적 1건을 82a8b99에서 반영했습니다.

@codex review

언어 (최우선)

리뷰 제목·본문·요약·지적 사항은 모두 한국어로 작성하세요.

댓글작성

지적은 문제, 재현 조건, 수정 방향 순서로 짧게 쓰세요.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 82a8b99d1a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@littlebit0

Copy link
Copy Markdown
Owner Author

Codex 지적 1건을 30be151에서 반영했습니다.

@codex review

언어 (최우선)

리뷰 제목·본문·요약·지적 사항은 모두 한국어로 작성하세요.

댓글작성

지적은 문제, 재현 조건, 수정 방향 순서로 짧게 쓰세요.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 30be1517e4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

실패 항목이 쌓여도 메일 영역이 밀려나지 않는다. '보기' 대화상자 안에서 스크롤하며 다시 작성·삭제한다.
@littlebit0

Copy link
Copy Markdown
Owner Author

Codex 지적 1건을 4979b1a에서 반영했습니다.

@codex review

언어 (최우선)

리뷰 제목·본문·요약·지적 사항은 모두 한국어로 작성하세요.

댓글작성

지적은 문제, 재현 조건, 수정 방향 순서로 짧게 쓰세요.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 4979b1a623

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 724cbfb752

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a8c4169d05

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

취소 대기 시간 안에 두 통을 보내면 새 스낵바가 앞 메일의 '보내기 취소'를 지워
서버에 대기 중인 메일을 취소할 수 없었다. 앱 전역 대기 발송 목록과 건수 배너를
두고 목록에서 각 건을 취소할 수 있게 했다. 서버 발송 시각이 지나면 목록에서 뺀다.
@littlebit0

littlebit0 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner Author

Codex 지적 2건을 dc7721c, b15d7c1에서 반영했습니다.

@codex review
##언어 (최우선)

  • 모든 리뷰 코멘트와 요약은 한국어로 작성합니다. 무조건 한국어로 작성합니다. 예외의 경우는 아래와 같습니다.
  • 코드 식별자, 파일 경로, 명령어, 인용한 코드는 원문 그대로 둡니다.
    ##댓글작성
  • 작성 시 사용 안내는 절대적으로 작성하지 않습니다. 리뷰에 관련된 내용만 작성합니다.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 03065cc920

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

응답이 늦게 도착하면 서버 기준 남은 시간이 그대로 표시돼 실제보다 길게
취소를 안내했다. 요청 시작부터 응답 수신까지 걸린 시간을 빼서 보수적으로
남은 시간을 잡는다.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

# Conflicts:
#	apps/client/lib/core/app_router.dart
#	apps/client/lib/core/i18n/language_controller.dart
#	apps/client/lib/features/message/compose_page.dart
#	apps/client/lib/features/settings/settings_page.dart
#	apps/client/lib/services/mail_api_client.dart
#	apps/server/package.json
#	apps/server/src/api/routes.ts
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@littlebit0
littlebit0 merged commit 69b362c into main Nov 26, 2026
2 checks 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