Skip to content

Discord でも画像の内容をモーダルで決められるようにする - #293

Merged
omni-stove-agent[bot] merged 1 commit into
mainfrom
feat/discord-image-modal
Dec 4, 2026
Merged

omni-stove-agent[bot] merged 1 commit into
mainfrom
feat/discord-image-modal

Conversation

@codyNog

@codyNog codyNog commented Dec 4, 2026

Copy link
Copy Markdown
Member

目的

Discord では目的だけをボタンで選び、何を描くかは会話で聞いていた。ほかのプラットフォームと同じく、「画像生成したい」だけでカードを出し、残りをモーダルでまとめて決められるようにする。

実装方針

  • Chat SDK の Discord アダプタはモーダルを開けない。上流の対応(feat(discord): support modals opened from buttons vercel/chat#1211)のリリースは待たず、アダプタを継承して補う。#1211 はファイル欄を扱わないので、取り込んだ後もその分は残る
  • Discord のモーダルは 5 項目までなので、参照画像の欄はスレッドの画像が 0 枚なら追加欄、2 枚までなら各画像の使い方とし、3 枚以上で使い方が決まっていなければ会話で聞く
  • 投稿済みのカードにある目的のボタンは引き続き動くように残す

確認方法

  • Discord で「@agent 画像生成したい」と送り、カードの「内容を決める」からモーダルを開いて送信すると、画像が届く
  • 画像を 1〜2 枚添付して頼むと、モーダルで各画像の使い方を選べる
  • 画像を添付せずに頼むと、モーダルで参照画像を追加できる
  • make eval-conversation ARGS="--aspect image --repeat 3" で、説明のない依頼にもカードが出る

見て欲しいポイント

  • 実際の Discord では未確認で、ファイル欄の形式と 3 秒以内に開けるかは実機で確かめる必要がある
  • 実モデルの eval は未実行で、モデルがツールを呼ばずに聞き返すとカードは出ない
  • モーダルで追加した画像の URL は期限が切れると更新できず、後日の参照や描き直しが失敗する可能性がある
  • Discord ではこれまで届かなかった画像カードの断りを、押した人への DM で伝える

Chat SDK の Discord アダプタはモーダルを開けないので、継承したアダプタで補う。
Discord 専用の目的カードをやめ、どのプラットフォームでも同じカードとフォームを使う。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0118w5k8EsSJin1fmpRkTXxb
@codyNog codyNog self-assigned this Dec 4, 2026

@omni-stove-reviewer omni-stove-reviewer 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.

LGTM

自動コードレビュー実施済み (指摘 0 件)。

@omni-stove-agent
omni-stove-agent Bot merged commit f0f7f4e into main Dec 4, 2026
8 checks passed
@omni-stove-agent
omni-stove-agent Bot deleted the feat/discord-image-modal branch December 4, 2026 01:48
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